Recently, we were working on SLA. We provided necessary conditions in Applicable When and Success Criteria sections. In Success Actions section, we wanted to update Customer Record(OOB entity “contact” renamed) and clicked on Set properties as shown below:
On click of it, we got “Invalid Argument” error as shown:
To fix this issue, we copied the URL of this window and decoded it. We got the root cause of this issue by looking at the decoded URL. The decoded URL contained the following piece of information:
Error Details: Wrong type of attribute UI properties passed to the attribute “custom_field”.&RequestUri=/SFA/Workflow/entityform.aspx?entityFullName=contact.regardingobjectid&entityname=contact&mode=1&primaryentity=task&readonlymode=true&relatedattributename=regardingobjectid&stepId=UpdateStep30&workflowId=712b088a-9dc1-4b3a-acc2-a1e8e8ebcacf&user_lcid=1033
We found that one of the custom field(“custom_field”) we had created was causing this issue. This field was put on the form.
We understood the problem. We had created a field with same schema name earlier with “Single Line of Text” type and later we realized that the field should have been “Whole Number” type. So, we had deleted and created the field with the same schema name.
To resolve this issue we followed the below steps:
- Removed the field from the form
- Saved and Published the form
- Put the field on the form again
- Saved and published the form
Now, when we clicked on the Set Properties, it worked and opened the Customer(OOB entity “contact” renamed) form.
Hope it helps !!!