Import update set from XML
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2020 06:31 PM
Hi, As the title says, I'm trying to import an update set from XML. I have 3 XMLs. 1 is working fine but for the other 2 when I'm trying to upload it I get redirected to the Retrieve update set without creating a new record. I've tried several solutions I've found on the internet but it's not working. Can anyone help me how to debug it? Or point out to me where is the logs so I can check and see if there are errors?
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2020 07:41 PM
Hi Kunal, Thank you for answering but I've already looked into this solution. I've tried already having admin and elevated security privileges. but still not working.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2020 10:13 PM
Hi Zoin,
After you have successfully exported data from the source instance, you can import the XML file directly to the target instance. Importing XML does not trigger business rules or update the instance cache.
To import an XML file containing one or more records:
- Sign in to the instance which should receive the data.
- In the banner frame, click the menu arrow next to your name and select the Elevate privileges option.
- In the Activate an Elevated Privilege dialog box, select the security_admin check box and click OK.
- Navigate to any list in ServiceNow. Any list can be used because the XML file contains the destination table name for the records.
- Right-click the list header and select Import XML. (List v3: Click the list menu and select Import XML.)
- In the import screen, click Choose File and select the previously exported XML file.
- Click Upload.
Relations to Other Records
When performing an XML import, it is important to keep in mind that only the current record will be exported and not the records related to it. For instance, while exporting a User record (sys_user table), the groups it belongs to and the roles it has been given will not be part of the XML file. In this context, it might be necessary to export the records describing those relations in separate XML files. In the previous example, the tables User Role (sys_user_has_role table) and Group Member (sys_user_grmember table) will need to be exported too.
In this example, because business rules are not running during an XML import, it is important to also export and import the relations to the roles, since importing the relations to the group will not give the user record the roles the groups contain.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-19-2025 07:15 AM
Thanks I elevated the role to security admin as per your instruction - and it worked the xml update set imported successfully.
Thanks for your help!