Thursday, August 15, 2019

Unable to cast transparent proxy to type 'SoapUtility.aifServices.aifPackingSlipService'. in Dynamics 365 Finance & Operations SOAP/API JSON

I was getting the error while trying to create an endpoint to create packing slip through SOAP. I did lot of research and could not find the right solution for this issue.

After breaking my head about 1 day and then I realized that I copied the code from sales order integration and forgot to update some variable. Due to that I was getting this error.

In the below example you can see that I'm using sales order create channel for packing slip. That's not correct.


It worked after making the below change.


1 comment:

  1. The error occurs when there’s a mismatch in the expected service type during a Lifetime Unlimited hosting API call in Dynamics 365 Finance & Operations. To resolve, ensure the correct service reference and proxy class are being used in the integration.








    ReplyDelete

What is the primary purpose of using a Solution in Microsoft Power Platform & ALM?

As organizations embrace low-code development with Microsoft Power Platform , it becomes essential to manage and govern apps, flows, and dat...