Unable to Edit Business Rule Script in ServiceNow – “Cannot edit in read-only editor” Error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello ServiceNow Community,
I am facing an issue while creating a new Business Rule in my ServiceNow instance. When I navigate to the Advanced tab and try to write or edit the script in the Script Editor, I receive the following message:
“Cannot edit in read-only editor”
Because of this issue, I am unable to write or modify the Business Rule script.
Steps to Reproduce:
Log in to my ServiceNow instance.
Navigate to System Definition → Business Rules.
Click New to create a new Business Rule.
Open the Advanced tab.
Try to type or modify the script in the Script Editor.
The editor displays the message “Cannot edit in read-only editor.”
Expected Behavior:
The Script Editor should allow me to write and modify the Business Rule script when creating a new Business Rule.
Actual Behavior:
The Script Editor appears to be in read-only mode, and I cannot enter or modify any code.
Troubleshooting Information:
The issue occurs on the Business Rule form.
The Advanced tab is open.
The Script Editor displays the default executeRule(current, previous) function.
A message saying “Cannot edit in read-only editor” appears when I try to edit the script.
Questions:
What could cause the Business Rule Script Editor to become read-only?
Could this be related to user roles, ACLs, application scope, or instance configuration?
Is there any specific configuration or permission required to edit Business Rule scripts?
How can I troubleshoot and resolve this issue?
I have attached a screenshot showing the issue.
Any suggestions or solutions would be greatly appreciated.
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
this is due to recent security restriction introduced in Zurich
Check if you have snc_required_script_writer_permission role and/or are assigned to "Conditional Script Writer" group.
After upgrading to the Zurich release, admin users are unable to edit script fields
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Harshal G Patil
Your issue would have an answer here https://www.servicenow.com/docs/bundle/zurich-release-notes/page/release-notes/now-platform-security...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Which Servicenow version are your using.
If it is Zurich, Then its added a new scripting privideldge
Refer: https://www.servicenow.com/docs/r/zurich/release-notes/access-management-rn.html
You just explicitly add snc_required_script_writer_permission role to your user and check.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Harshal G Patil,
Your current user needs to be part of Conditional Script Writer group and have snc_required_script_writer_permission role to access script fields, HTML and other fields where you add code.
Please Accept this response as Solution if it assisted you with your question & Mark this response as Helpful.
Kind Regards,
Ehab Pilloor