Forum Discussion

rickybarker's avatar
2 years ago

FreightTaxCode not validate with MYOB

Hi,

 

We use the WooCommerce plugin to sync orders from Woo to MYOB.

 

We have the file connected however we are getting this error:

 

An error has occurred when syncing your order with MYOB.
Oops! We had a problem processing your order.
Here is the posible errors:
Error code: 400
Name: SerializationError
Message:
Error Type: FreightTaxCode not validate with MYOB

 

Any ideas? all tax codes are set to S15 and i have just eneabled the "I charge freight on sales" via the "Linked Account" menu.

 

We dont actually charge any shipping with our orders. Everything was working fine up untill a couple of days ago, nothing has been changed in Woo or MYOB.

  • kjm's avatar
    kjm
    Trusted Cover User

    from https://woocommerce.com/document/myob/


    SerializationError kinda gives it away. trying to serialize a null is probably your problem

    “Name”: “SerializationError”
    “Message”: null
    “AdditionalDetails”
    “Error converting value {null} to type ‘System.Guid’. Path ‘Lines[0].Item.UID’, line 1, position 454.”,
    “ErrorCode”: 50,
    “Severity”: “Error”,
    “LearnMore”: null

    Ordered items are not found in the MYOB dashboard and under WooCommerce >Settings > MYOB AccountRight  “Create Product in MYOB if Not Found” option is disabled.

    Enable “Create Product in MYOB if Not Found”. 

     

    • Hi kjm,

       

      The "Create Product in MYOB if Not Found" is ticked and selected in WooCom settings.

       

      I have unselected the option and tried to resync invoice manually, and it still produces the same error.

       

      The products already exist in MYOB as the integration has been working.

       

      I have removed the item from MYOB directly, and still same error.

       

      Cheers

       

      • kjm's avatar
        kjm
        Trusted Cover User

        have you put fiddler or postman on the request to see what your sending?

         

        if you capture the request from WooCommerce using Fiddler, browser or something (sorry no experience with Woo) then send that request using Postman to your API you might find some more info. 

         

        Atleast you'd be able to see if the TaxCode in the request from Woo is null or not or if it is a different data type to what MYOB is expecting

         

        On what object is the FreightTax Code?