My Products
Help
Anonymous
Not applicable

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

by Anonymous (Updated ‎09-04-2021 10:06 ( )

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
Yıldırım
VISMA

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) 

Anonymous
Not applicable

by Anonymous

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

Yıldırım
VISMA

by Yıldırım

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. 

Anonymous
Not applicable

by Anonymous

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.

Yıldırım
VISMA

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 [email protected] 

Thanks.

Yıldırım
VISMA

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"
	}