Unable to delete record on a custom table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
I have a custom table in a custom application scope,
When right-clicking on the grey bar and hitting delete on a record, nothing happens.
- I have checked the following:
- Reviewed ACL's and confirmed there is an allow ACL for delete action for that table.
- checked the table properties "sys_db_object" and can delete is checked
- I reviewed Cross Scope privileges and ensured that allowed is checked for deleterecordajax
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hi @Scott29 ,
I’ve hit this a few times when working with scoped apps. A couple of things you can check beyond ACLs and table properties:
UI Action Delete – The right-click → Delete option actually uses the “Delete” UI action. If that UI action has conditions/script that don’t pass, nothing will happen. Check the Delete Record UI action on your table and see if it’s active/conditioned correctly.
Business Rules – Make sure there isn’t a “before delete” business rule on the table (or parent table) that’s preventing the delete silently. Sometimes developers put logic to stop deletes but don’t throw an error message.
Cross-scope privileges – You mentioned DeleteRecordAjax is allowed, good. Also double-check if the scoped app has permission for GlideRecord.deleteRecord if you’re calling deletes through script.
UI Policy / Client Script errors – If you only see this behavior in the UI (context menu delete), open your browser console. A broken client script can block the action from completing.
As a quick test, try deleting the same record directly from the list view using the Actions on selected rows → Delete option. If that works, then it’s likely the form UI action that’s misconfigured.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
@Scott29 ,
Ensure that a UI Action exists for record deletion. If not, consider creating one. You can clone a global delete UI Action and customize it for your table. Be cautious when modifying existing actions to avoid unintended side effects...and if your custom table resides within a scoped application, ensure that the Can delete option is enabled in the table's application access settings. Additionally, verify that the necessary cross scope privileges are in place to allow delete operations from other scopes....
If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/