Skip to main content
Solved

API calls using odata v4 are failing with 404 error "Not Found"

  • October 14, 2024
  • 6 replies
  • 181 views

Here is the URL that has been working for well over a year
https://companyx.acumatica.com/ODatav4/companyx/PX_OBJECTS_AR_ARADDRESS?$format=json

Starting on October 8th, 2024. the Azure Data Factory pipelines started failing with the error ”ErrorCode=RestCallFailedWithClientError,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Rest call failed with client error, status code 404 NotFound”

I am hunting for a change notification or something regarding the URL needing to be updated or something, but I am not having any luck. 
Thoughts? 

Best answer by Dmitrii Naumov

@PAPutzback has the site been upgraded or something?

I think the URL is case sensitive, so try {{sitename}}/odatav4/Company/PX_Objects_AR_ARAddress?$format=json

View original
Did this topic help you find an answer to your question?

6 replies

Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+7
  • Acumatica Moderator
  • 648 replies
  • Answer
  • October 15, 2024

@PAPutzback has the site been upgraded or something?

I think the URL is case sensitive, so try {{sitename}}/odatav4/Company/PX_Objects_AR_ARAddress?$format=json


  • Author
  • Freshman II
  • 2 replies
  • October 15, 2024

Thanks for the response, I finally figured that out by querying the root url and getting the list of tables back. I searched the doc AcumaticaERP_2024R1_ReleaseNotes_for_Developers.pdf, and did not find anything regarding a case sensitivity change. The document also did not specify that the column CustomerKind in the PX.Objects.AR.Customer table was renamed to CustomerCategory. 

All is good now, Thanks again.


Forum|alt.badge.img
  • Jr Varsity III
  • 28 replies
  • October 15, 2024

@Dmitrii Naumov  Hi Is it safe to update existing project using rest api client? I see the project is updated on Github. Do you have more code sample regarding how to use rest api client? I am trying to move all my SOAP code, is there an easier way?


Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+7
  • Acumatica Moderator
  • 648 replies
  • October 15, 2024

Forum|alt.badge.img
  • Jr Varsity III
  • 28 replies
  • October 17, 2024

Thank you @Dmitrii Naumov  

Do you have code sample for how to pass InvokeAction parameters?


Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+7
  • Acumatica Moderator
  • 648 replies
  • October 18, 2024

@woodyg84 yes, there are examples in the github repo

E.g. 

Console.WriteLine("Release Invoice");
client.WaitActionCompletion(client.InvokeAction(new ReleaseSalesInvoice(new SalesInvoice() { ReferenceNbr = shipment.Orders!.Single().InvoiceNbr, Type = shipment.Orders!.Single().InvoiceType })));

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings