Customer purchase order number format.

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.
BertusV
Contributing Partner
41 Posts
Contributing Partner
Australia
Contributing Partner

41Posts

0Kudos

2Solutions

Customer purchase order number format.

https://developer.myob.com/api/accountright/v2/sale/order/order_service/

 

the "CustomerPurchaseOrderNumber"  is sting 20 

 

When a user enter a purchase order number with leading zeroes I get a SerializationError "Input string '00124249' is not a valid number....."

 

Given that it is a string and some PO numbers may contain alpha character should this happen?  Should I test and see if it's a number present it differently?  Which other fields would this apply too?

 

Bertus

6 REPLIES 6
John_Dinning
Trusted User
71 Posts
Trusted User
Australia
Trusted User

71Posts

15Kudos

6Solutions

Re: Customer purchase order number format.

Hi Bertus,

 

I have not tried the service order with the API and SDK  but with the item order

https://developer.myob.com/api/accountright/v2/sale/order/order_item/

it accepts a "CustomerPurchaseOrderNumber" with leading zeros or alphanumeric data.

It does not like leading spaces however.

 

If I create a service order directly in AccountRight it also accepts leading zeros and alphanumerics.

 

Are you sure it is the "CustomerPurchaseOrderNumber" field giving the error and not the "Number" or some other field?

 

John.

 

 

 

 

BertusV
Contributing Partner
41 Posts
Contributing Partner
Australia
Contributing Partner

41Posts

0Kudos

2Solutions

Re: Customer purchase order number format.

MYOB Error.png This is the only place I saw the data in my customer's record.  

John_Dinning
Trusted User
71 Posts
Trusted User
Australia
Trusted User

71Posts

15Kudos

6Solutions

Re: Customer purchase order number format.

Can you reproduce the problem yourself with a test company file?

Maybe they are entering the "00124249" in the wrong field.

 

BertusV
Contributing Partner
41 Posts
Contributing Partner
Australia
Contributing Partner

41Posts

0Kudos

2Solutions

Re: Customer purchase order number format.

Tried it in my system.  Works fine.  There always seem to be unreplicatable issues from this one customer.  They do have a slow internet connection.  Not that that should be the problem.

 

Thanks for your input John.

John_Dinning
Trusted User
71 Posts
Trusted User
Australia
Trusted User

71Posts

15Kudos

6Solutions

Re: Customer purchase order number format.

Sometimes the only way is to sit with the customer and watch them (maybe use TeamViewer) but if it's hard for them to reproduce too, you could be there a while.

 

Good luck in tracking it down. 

BertusV
Contributing Partner
41 Posts
Contributing Partner
Australia
Contributing Partner

41Posts

0Kudos

2Solutions

Re: Customer purchase order number format.

Tried that.  Tried saving logs. Debug viewer, etc, etc.  I have found some issues, but it's these curve balls that you just can't replicate.  

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