Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

Updating Order via SOAP Web service

$
0
0

I'm using Scribe to set up an integration with AX.

During the update process of an order I get this error:

A TargetInvocationException was thrown by the web service.

Exception: System.Web.Services.Protocols.SoapException: Wrong number of elements in key data container in entity key
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at BasicHttpBinding_SalesOrderService.update(EntityKey[] EntityKeyList, AxdSalesOrder SalesOrder)

I know that this is an error due to a misconfiguration on the EntityKeyList object.

I have a similar configuration on Account where I set

EntityKeyList_KeyData_Field = "AccountNum"

EntityKeyList_KeyData_Value = Account number found during the Find

 

I am setting this value on the order update

EntityKeyList_KeyData_Field = "SalesId"

EntityKeyList_KeyData_Value = Order number found during the Find

Why is it working on Account but not on Order?

 


Viewing all articles
Browse latest Browse all 72043

Trending Articles