04/10/2023 08:54 AM
I have duplicate entitlements, one is active the other is inactive, however, when making the API call to create a task, it fails with
Solved! Go to Solution.
04/10/2023 10:43 AM
Hi,
Have you tried renaming the inactive entitlement and trying the same API call.
Does it works or still the same issue?
Thanks
04/10/2023 10:51 AM
Yes, if you rename it works, however, this is not a practical solution as we have a lot of these duplicates due to an issue that has been solved. Is there not a way to only choose Active entitlements in the call, GetEntitlements has a status flag.
04/11/2023 08:33 PM
Annegorman,
The API should default to the active entitlement instead of returning "entitlement value does not exist" error. I assume you already open a FD ticket for this issue?
The only other option I can think of is update the attribute value via custom query job. This is generally not recommended due to the risk of updating the wrong records. If you decide to go this this route, yor custom query job will use the SQL similar to: "update entitlement_values set entitlement_value = CONCAT(entitlement_value, '_RENAMED') where entitlement_valuekey in ([valuekey1],valuekey2],valuekey3],[...])"
The challenge is to get the entitlement_valuekey for the entitlements that need to be renamed.
04/12/2023 05:58 AM
Thanks! No, I have not entered a FD ticket, I will now.