Apifact: Error processing order at source pywintypes.com_error: (-2147352567, 'Exception occurred.', (0, 'SAPbobsCOM.Fields.100.0', 'Invalid field name', 'SAPbobsCOM.chm', -1106, -1106), None)

add_order: Exception occurred, Invalid field name

Issue:

SAP Business One is replying to our add_order instruction with an 'Invalid field name' response.

Applies to:

sap-business-one

Solution:

The field name that the error message is reffering to might be a User-defined field name that got created in SAP for additional order information.

To resolve this issue, first check if the order does not contain additional fields/params in your Stock2Shop console.

  • Go to: S2S console > Queue > View > view order.
  • The additional fields are found under Order Parameters on the bottom right of the order view in the s2s console.

Once you have found the fieldname/param on the order, follow the steps below:

  • Login to your SAP account
  • When logged into the interface switch on system information by pressing ctrl+shift+I.
  • Then hover over the field you are looking for(field that you found on the order in s2s).
  • In the bottom right corner all the info you need will appear, including the correct fieldname.
  • Copy the fieldname exactly as it is, send it to support@stock2shop.com with the description of the issue and they will assist from there.
  • If you didn’t find any field/param on the order in s2s, contact support@stock2shop.com and they will look into the issue.