Jump to content
  • 0

API: Error on update record with triggered action


Jarias

Question

When updating a record using the REST API, I encounter the following error:

"Code":"TriggerRuntimeError","Message":"Data change cannot be performed due to triggered action failed. Please contact administrator."

The table has a triggered action to send an email anytime a record is updated or inserted.

The really strange part is that everything works perfectly fine when using chrome.  The error is only thrown in mozilla and only thrown when updating a record.  Inserting a record works as expected.

I am using php & curl to make the requests.

 

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Hi, just to update this post about this kind of error. 

Most likely your API profile doesn't have permissions to all affected tables. It should have at least read permissions to all tables that you are using in select in your trigger, and you need to have update/insert/delete permissions to the tables which are used in update/insert/delete actions. 

You can check the permissions by going to Account > Access Permissions > Web Services Profile, then selecting the Swagger profile you are using and clicking edit. Ensure that 'Enable access to all objects' and 'Profile can create objects' are enabled in the Permission section.

Link to comment
Share on other sites

  • 0
On 11/1/2021 at 9:25 AM, autonumber said:

Hi, just to update this post about this kind of error. 

Most likely your API profile doesn't have permissions to all affected tables. It should have at least read permissions to all tables that you are using in select in your trigger, and you need to have update/insert/delete permissions to the tables which are used in update/insert/delete actions. 

You can check the permissions by going to Account > Access Permissions > Web Services Profile, then selecting the Swagger profile you are using and clicking edit. Ensure that 'Enable access to all objects' and 'Profile can create objects' are enabled in the Permission section.

this started happening to us. It will happen randomly to batches. Sometimes 1 out of 10, sometimes 10 out of a 400 batch.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...