My Products
Help
Gabriella Hennings
CHAMPION *

Error when update segmentvalues

by Gabriella Hennings

Hi 

 

When you try to update multiple segment values in a dimension you can error from the API.

please find example json below. 

 

It works fine if you just add one item in the segmentvalues array, but not if you add more than one.

I have tried both in the integration and in swagger, same response from the API.

 

 "message": "VismaId: 91d5b15a-9976-4807-9302-ff15068da787. Object reference not set to an instance of an object."
 {
"segmentValues": [
{
"operation": "Insert",
"value": "310",
"description": {
"value": "Cagil Kayan Widegren"
},
"active": {
"value": true
}
},
{
"operation": "Insert",
"value": "310",
"description": {
"value": "Cagil Kayan Widegren"
},
"active": {
"value": true
}
},
{
"operation": "Insert",
"value": "290",
"description": {
"value": "Sandra Björklin"
},
"active": {
"value": true
}
},
{
"operation": "Insert",
"value": "290",
"description": {
"value": "Sandra Björklin"
},
"active": {
"value": true
}
}
],
"dimensionId": "subaccount",
"segementId": 2,
"description": {
"value": "Resultatenhet"
}
}
GabriellaHennings_0-1702455246952.png

 

Best regards
Gabriella Hennings
Cloud Connection AB
1 REPLY 1
Accepted solution
Gabriella Hennings
CHAMPION *

by Gabriella Hennings

I see now that i have unfortunately have added same object twice in the array of values, most likely that's what causes the error, but you would really wish for some better error message in the response

Best regards
Gabriella Hennings
Cloud Connection AB