Unable to delete record from Sys_object_source table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2025 05:42 AM - edited 05-30-2025 05:47 AM
Hi all,
I have a requirement to delete all the records in sys_object_source table where reference CIs are in Retired status.
I am facing an issue while running below script in background
Issue- The below script does query the source record based on the sys_id found in CMDB. When you provide
hard coded value like var retiredCIs = new GlideRecord('cmdb_ci');
Script:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2025 05:49 AM
@Community Alums
did you try deleting 100 records first?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader