Magento encoding violation using UpdateInventory

  • 123Views
  • Last Post 06 August 2019
  • Topic Is Solved
0
votes
John Cioni posted this 05 August 2019

I'm receiving a SOAP violation of encoding error when trying to use UpdateInventory for Magento v1.  I've tried with constants as well however it looks like it's expecting a different type for some of the fields which Skyvia is trying to all set as WSTR going to Magento.  I couldn't find anywhere to force/cast changes to datatype aside from my source which doesn't seem to be the culprit here.

 

 

Error accessing web service. SOAP-ERROR: Encoding: Violation of encoding rules;"W72070BLKL";"9";"True"

Order By: Standard | Newest | Votes
1
votes
Mariia Zaharova posted this 06 August 2019

Hi John!

 

Most likely, the issue is related to the mapping for the target product_id field. The product_id and sku fields store different values and, thus, it is not recommended to use simple Column mapping in this case. Please change mapping for product_id field like it is shown below:

 

 

Please let us know if this helps.

 

Best regards,

Mariia

  • Supported by
  • John Cioni
0
votes
John Cioni posted this 06 August 2019

This worked perfectly, thanks for the suggestion!

Close