Hi.
Recently, my company started getting errors. Specifically, since 9th of August, we’ve started getting the errors on our test environment, while on our production we’ve started getting these errors since 21st. These two dates do not relate to one another in our platform.
However, since these, we’ve randomly started getting errors when we are updating custom objects. Below are the request headers and the request itself:
The request body is as follows:
const requestBody = {
options: [
{
label: "label1",
value: "id1",
description: "description1",
displayOrder: 1,
hidden: false,
},
{
label: "label2",
value: "id2",
description: "description2",
displayOrder: 1,
hidden: false,
},
{
label: "label3",
value: "id3",
description: "description3",
displayOrder: 1,
hidden: false,
},
],
};
Now, the error I’m getting from the response is following:
const err = {
status: "error",
message:
"Property option display orders must be unique. For the property display orders of object type '0-1' in portal 25032844 these options are duplicated: <list of duplicates>",
category: "VALIDATION_ERROR",
subCategory: "PropertyValidationError.DUPLICATE_OPTION_DISPLAY_ORDER",
};
Now, I understand WHY it throws the error - the display orders must be unique. However, it started out of nowhere on a code that’s 4 months old.
Can anyone navigate me/point me in the direction as to what has changed? I’ve gone through the changelog and found no such thing and searching for the property validation error was unsuccessful - I found exactly 0 references to it on google.