to get a personalized navigation.
to get a personalized navigation.
Hi,
We getting "Error creating salesOrder. Object reference not set to an instance of an object." when we post SalesOrder with TenantID authtentication, when we post the same order with Token it works without errors.
This error only occures on a spesific client. Posting with the same code on another client with TenantID works fine. Also tested GET Salesorder from the same client which fails, gives no error.
Please let me know if you need more information.
/Steinar
Hi Steinar, are the update scopes enabled in the 'My Apps' section for this clients specific appstore?
Yes , this is enabled for this client,
Ok, that looks fine! Are you able to retrieve the generic visma.net service token with create scope for this tenant? Be aware that salesorderV2 is NOT using the salesorder specific scopes/endpoints.
Yes, no problem with generating token, tested both in the code, postman and swagger.
A couple of things to check:
Are you able to create other master data in this company using this token?
Is it possible to create the salesorder manually in the UI using the exact same data?
When using this token, the error occurs, only for salesorderV2, get calls are working.
Yes it is possible to create the salesorder manually in the UI.
It is also working posting the same order with Oauth 2.0 flow.
Ok this is helpful information. We need to investigate this further, and because it seems really client sensitive, I advise you to seek country specific support. Please take a look at the following on how to get support. Refer to this post in your initial contact.
Copyright © 2022 Visma.com. All rights reserved.