# Api error field is not editable?

**URL:** <https://community.shotgridsoftware.com/t/api-error-field-is-not-editable/9763>\
**Category:** Pipeline Integrations\
**Created:** [August 20, 2020, 5:21pm UTC](https://community.shotgridsoftware.com/t/api-error-field-is-not-editable/9763 "2020-08-20T17:21:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nmintrasak](https://avatars.discourse-cdn.com/v4/letter/n/ecae2f/32.png) [@nmintrasak](https://community.shotgridsoftware.com/u/nmintrasak)\
**Post date:** [August 20, 2020, 5:21pm UTC](https://community.shotgridsoftware.com/t/api-error-field-is-not-editable/9763/1 "2020-08-20T17:21:39Z")

</div>

Hi! just wanted to throw this out there if anyone have seen this error.

We have a custom tool that will create version and publish files in shotgun, and it works for admin and dev admin level group, but for other level (i.e. production manager, user) it’s not working. It error out with this:

self.\_sg.update(“Version”, self.\_sg\_version[“id”], version\_data)  
File “/Users/nmintrasak/Library/Caches/Shotgun/bundle\_cache/sg/mcu/v819243/bundle\_cache/git/tk-framework-studio.git/v4.0.1/python/vendors/py2/osx/lib/python2.7/site-packages/pi\_shotgun\_api/shotgun.py”, line 1435, in update  
record = self.\_call\_rpc(“update”, params)  
File “/Users/nmintrasak/Library/Caches/Shotgun/bundle\_cache/sg/mcu/v819243/bundle\_cache/git/tk-framework-studio.git/v4.0.1/python/vendors/py2/osx/lib/python2.7/site-packages/pi\_shotgun\_api/shotgun.py”, line 3314, in \_call\_rpc  
self.\_response\_errors(response)  
File “/Users/nmintrasak/Library/Caches/Shotgun/bundle\_cache/sg/mcu/v819243/bundle\_cache/git/tk-framework-studio.git/v4.0.1/python/vendors/py2/osx/lib/python2.7/site-packages/pi\_shotgun\_api/shotgun.py”, line 3619, in \_response\_errors  
raise Fault(sg\_response.get(“message”, “Unknown Error”))  
Fault: API update() CRUD ERROR #4: The field is not editable for this user: [Version.user]. Rule: Production Manager – PermissionRule 251: DENY update\_field FOR entity\_type =\> , field\_name =\> user, field\_value =\>  
2020-08-20 10:05:55,835 ERROR AGS\_XyzTestLoc\_Planview\_RM\_v002 API update() CRUD ERROR #4: The field is not editable for this user: [Version.user]. Rule: Production Manager – PermissionRule 251: DENY update\_field FOR entity\_type =\> , field\_name =\> user, field\_value =\>

Any thoughts?

Thank you!

---

<div class="post-metadata">

**Author:** ![nmintrasak](https://avatars.discourse-cdn.com/v4/letter/n/ecae2f/32.png) [@nmintrasak](https://community.shotgridsoftware.com/u/nmintrasak)\
**Post date:** [August 20, 2020, 11:47pm UTC](https://community.shotgridsoftware.com/t/api-error-field-is-not-editable/9763/2 "2020-08-20T23:47:28Z")

</div>

Issue resolved.

We changed the permission for Artist for Production Manager to allow ‘edit’.  
Missed the part that Version.user is actually 'Artist" in the permissions - people.

Thanks!

---

<div class="post-metadata">

**Author:** ![DavidMason](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/davidmason/32/193_2.png) [@DavidMason](https://community.shotgridsoftware.com/u/DavidMason)\
**Post date:** [August 21, 2020, 8:40am UTC](https://community.shotgridsoftware.com/t/api-error-field-is-not-editable/9763/3 "2020-08-21T08:40:05Z")

</div>

Nice one @nmintrasak;

 ![](https://global.discourse-cdn.com/shotgunsoftware/original/2X/c/c6a7e2d47248f881eb37eb62dfc42eb579338c8b.jpeg)

---

<div class="post-metadata">

**Author:** ![RachelGomez16199](https://avatars.discourse-cdn.com/v4/letter/r/7c8e57/32.png) [@RachelGomez16199](https://community.shotgridsoftware.com/u/RachelGomez16199)\
**Post date:** [January 18, 2023, 5:49am UTC](https://community.shotgridsoftware.com/t/api-error-field-is-not-editable/9763/5 "2023-01-18T05:49:24Z")

</div>

To resolve this issue:

Login as Administrator, go to salesforce setup and find the child object and the Master-Detail field that matches the field name.  
Edit that Master-Detail field, change it to allow Reparenting.  
Tell your field officers to sync again.  
Note that your salesforce users will have to be careful NOT to accidentally change the parent record without good reason. The way to control this is by creating different page layouts for different user profiles and then making the field read-only. Please see Salesforce documentation for help with this step.

Regards,  
Rachel Gomez
