"SerializationError" when trying to write orders.

This thread is now closed to new comments.
Some of the links and information provided in this thread may no longer be available or relevant.
If you have a question please start a new post.
Erynn
Experienced Cover User
11 Posts
Experienced Cover User
Australia
Experienced Cover User

11Posts

1Kudos

1Solutions

Solved: Go to Solution

"SerializationError" when trying to write orders.

Trying to write orders from my website and getting this error in the Add on connector log file:

 

2019-07-25 16:52:41.7752 LogLevel=Info;CorrelationId=b26fbd0c-6732-4635-9029-79734905203b;DevKey=;CFileId=8409c60a-be74-4e01-aaf9-56e3501d591c;CodeArea=GateExit;ProductCode=0;ProductVersion=2019.2;HttpMethod=POST;Resource=/Sale/Order/Item;Query=;ResponseCode=400;StatusCode=BadRequest;HttpHeaders=x-myob-webapiexception=V1.0;x-myobapi-requestid=b26fbd0c-6732-4635-9029-79734905203b;x-myobapi-elapsed=743;ElapsedMilliseconds=743;ResponseData={
"Errors": [
{
"Name": "SerializationError",
"Message": null,
"AdditionalDetails": "Error converting value \"Product Sales\" to type 'System.Guid'. Path 'Category.UID', line 1, position 245.",
"ErrorCode": 50,
"Severity": "Error",
"LearnMore": null
}
],
"Information": "Warning, error messages have not been finalised in this release and may change"
}

 

We use AccountRight2019.2 with Categories turned on and required (new feature).  We were using Enterprisev19.15 and had this working ok under that.   The new version has us stumped as to how to specify the category correctly.

 

The category ID in myob is "Product Sales"

 

Any help appreciated.

Erynn

 

3 REPLIES 3
Triboss
Valued Partner
99 Posts
Valued Partner
Valued Partner

99Posts

6Kudos

15Solutions

Re: "SerializationError" when trying to write orders.

Looks like you are passing in the Category Display ID text.  You need to pass through the Category UID.

Erynn
Experienced Cover User
11 Posts
Experienced Cover User
Australia
Experienced Cover User

11Posts

1Kudos

1Solutions

Re: "SerializationError" when trying to write orders.

Thanks @Triboss, Where can I go to find that out. From the AccountRight interface the "Category ID"?

 Categories.PNG

Triboss
Valued Partner
99 Posts
Valued Partner
Valued Partner

99Posts

6Kudos

15Solutions

Accepted Solution Solved

Re: "SerializationError" when trying to write orders.

Using this endpoint "/GeneralLedger/Category" reference here:

https://developer.myob.com/api/accountright/v2/generalledger/category/

 

You can't get the UID from within the MYOB application itself.  You need to use the API.

Didn't find your answer here?

Try using advanced search to find a post more easily Advanced Search
or
Get the conversation started and make a new post Start a Post