My Products
Help
Kjetil Ringstad
PARTNER

Creating SalesOrder - "An item with the same key has already been added"

by Kjetil Ringstad (Updated ‎09-04-2021 10:06 by Kjetil Ringstad PARTNER )

Hi guys.

We're experiencing a strange issue on one order for one of our customers when creating the salesorder. (POST to salesorder-endpoint)

 
Literally thousands of other orders goes well, but this one is being rejected with the generic error
"An item with the same key has already been added" in the response from the API.
Please see the attached screenshot 500_1.jpg for the error ID and the JSON 500_2.txt used to create it.
 
companyid is 3248788
 
Please advise
 
 
 
6 REPLIES 6

by Yıldırım (Updated ‎07-05-2021 13:10 by Yıldırım VISMA )

This issue has been planned to be fixed in 8.48 version. Visma.net Financials API updates for version 8.48.0 (May 2021) 

Kjetil Ringstad
PARTNER

by Kjetil Ringstad

Removing orderNumber did no difference , and the order could be placed without difficulties in the GUI

Further investigation is needed to conclusively determine the root cause of this issue. We've sent you the details via the ticket you've created. 

Kjetil Ringstad
PARTNER

by Kjetil Ringstad

Thanks, but the orderNumber is unrelated to this, it occurs without it. I'll ask the customer to try register it manually and will update the thread.

by Yıldırım (Updated ‎09-04-2021 12:24 by Yıldırım VISMA )

We've recommended removing that field since it was included in the JSON with value "string" set. Please inform us regarding the UI check results. 

Please also send us the ERP Company ID & Name via developersupport@visma.com 

Thanks.

by Yıldırım

Hello Kjetil, 

 

Have you tried registering the SO with the same values in the UI ?  

-Can you please remove orderNumber field and retry the operation ? 

"orderNumber": {
		"value": "string"
	}