“Invalid Argument” Error while setting properties in SLA

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:

SetProperties

On click of it, we got “Invalid Argument” error as shown:

Invalid_Error

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:

  1. Removed the field from the form
  2. Saved and Published the form
  3. Put the field on the form again
  4. Saved and published the form

Now, when we clicked on the Set Properties, it worked and opened the Customer(OOB entity “contact” renamed) form.

SetProperties

Hope it helps !!!

2 thoughts on ““Invalid Argument” Error while setting properties in SLA

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s