@colin_mckibben Took out the dash on the second post. The operation doesn’t seem to add though. It only replaces what is there. Can’t see to add more than 1 or 2 source id though.
We have a lifecycle state, disable, that has a lot or sources. I can’ seem to add to that lifecycle state. Has more than 40 sources.
When using the add operation, you need to specify where in the array to add the element. Usually, adding it to the beginning of the array works fine. Try this:
I’m sorry, I thought you were trying to add an account action. It appears you just want to add additional sourceIds to an existing action. In that case, if you know the index number of the action you want to add sourceIds to, you can just replace all the sourceIds with the correct list. For example, if you want to replace the first account actions sourceIds, try this:
If it works in sandbox but not production I recommend you open a support ticket. They have the tools necessary to explore your tenant’s logs to see what is going on.
I have experienced this error if there is a sourceId present that does not exist in your tenat. For example when you delete a source from IDN, it’s sourceId will remain in the accountActions. Would be cool if IDN removed this from here too if a source is deleted, but they do not. I can also echo the replace operator is the way to go for what you are attempting.
Support helped to identify what was going on. Didn’t realize that sources we deleted were still present in the lifecycle states. I’ll have to include in our processes to remove the source id from the lifecycle states.