to get a personalized navigation.
to get a personalized navigation.
Hi,
This is similar to the error described in https://community.visma.com/t5/Forum-in-Developers-Visma-net/Unable-to-perform-action-confirmShipmen...
I have a problem now where we fail to perform the action /controller/api/v1/shipment/{shipmentNumber}/action/confirmShipment.
The response we get is
{
"message": "Error confirming shipment: Object reference not set to an instance of an object."
}
It works for other customers except this one, but I cannot see what it different here.
The full call that we make is
POST https://integration.visma.net/API/controller/api/v1/shipment/4723828/action/confirmShipment
Can you see if there is something wrong with that call?
When the user performs the action manually in the Visma UI it works as expected, i.e. the shipment delivery update status to "Bekräftad".
/Ronny
Solved! Go to Solution.
A fix for this issue has been deployed and been confirmed to solve the issue.
If it arises again, please let us know.
Thank you.
Adding more info here, just so you know what we have tested.
We tested performing the confirmation using both the new token generated by an app, and from the old way with an access token generated using the VNI flow.
The error is the same.
Hi,
Could you please have a look at the customer in the UI, is there any issues with it?
If not, the issue is probably due to a default value that is set from the customer card in the UI but fails via the API.
Hi Magnus,
The Visma.net consult (Traventus) used by the client found no faulty settings in Visma.Net ERP.
Neither the customer cards or anything else seems to be setup incorrectly, and they see no weird standard values.
What can we do going forward?
Hi,
Could you please check if the user has all the correct roles, as per your earlier case:
https://community.visma.com/t5/Forum-in-Developers-Visma-net/Unable-to-perform-action-confirmShipmen...
If it doesn't help, could you please send an email to developersupport@visma.com, if possible include the JSON that created the order for the shipment so that we can try this on our end.
Hi Magnus,
The user has the correct roles:
The order for the shipment was not created by our system so I am unable to send that. I can however send the order object that can be fetched by the API I guess if that is any help, especially not now since the order has been completed manually in the Visma UI.
Copyright © 2022 Visma.com. All rights reserved.