Scripts - Background cannot update read-only fields after upgrade

Community Alums
Not applicable

We recently upgraded from London to New York.  

After the upgrade, some of our scripts we use in scripts - background can no longer update records, giving the following error: 

Background message, type:error, message: Data Policy Exception: 
	The following fields are read only: field1, field2

Is this something simple like an ACL, or was there a change to the way those scripts are run?
1 ACCEPTED SOLUTION

SanjivMeher
Kilo Patron
Kilo Patron

@Allen A New York Release Issue


Please mark this response as correct or helpful if it assisted you with your question.

View solution in original post

6 REPLIES 6

SanjivMeher
Kilo Patron
Kilo Patron

I think it could be the ACL.

I assume, since users are using scripts-background, they are all admins.

Check the table, you are trying to update, if it has an ACL with admin override unchecked.


Please mark this response as correct or helpful if it assisted you with your question.

Community Alums
Not applicable

Thank you for your response.  On the sys_user table, for example, there are 5 ACL rules with Admin Override = false.  The only recent update was to delete ACL, which shouldn't affect the write ACL, correct? 

What happens, if the user directly go to the table and try to update the record?

Are they allowed to update?


Please mark this response as correct or helpful if it assisted you with your question.

Community Alums
Not applicable

Here's an update:

Going to the list view and the form view, user still cannot edit the field.

It is actually a data policy in place making it read only.  Reversing the data policy allows for the fields to be written, but this data policy has not changed since the upgrade.

Before the upgrade, using a background script could edit the fields just fine, while users could not edit it on the list or form view.

After the upgrade, background script appears to have same restrictions as the list view or form view.