My Products
Help
RonnyV
CONTRIBUTOR ***

Action confirmShipment fails

by RonnyV

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

7 REPLIES 7
Accepted solution
Magnus Johnsen
VISMA

by Magnus Johnsen

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. 

RonnyV
CONTRIBUTOR ***

by RonnyV

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.

by Magnus Johnsen

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.

RonnyV
CONTRIBUTOR ***

by RonnyV

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?

by Magnus Johnsen (Updated ‎08-11-2023 14:07 by Magnus Johnsen VISMA )

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.

 

RonnyV
CONTRIBUTOR ***

by RonnyV (Updated ‎10-11-2023 10:03 by RonnyV )

Hi Magnus,

 

The user has the correct roles:

RonnyV_0-1699606568171.png

 

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.

RonnyV
CONTRIBUTOR ***

by RonnyV

I have requested the client to look at the customer in the UI, and will let you know what they find out when they respond.