Options
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
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"
}
}
Best regards
Gabriella Hennings
Cloud Connection AB
Gabriella Hennings
Cloud Connection AB
Solved! Go to Solution.
1 REPLY 1
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
Gabriella Hennings
Cloud Connection AB
