Unable to import File sys_attachment_doc.xml
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2024 07:34 AM
Hi All,
I am trying to migrate the records from one instance to another instance. I was able to import the sys_attachment table but when I am trying to import the sys_attachment_doc xml file after processing it is showing me the below message.
File sys_attachment_doc.xml uploaded, use sys_attachment_doc.xml to access it.
On clicking link it is giving error nothing on that page. Anyone please suggest how I can import the attachments effieciently.
TIA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2024 07:38 AM
are you planning to migrate attachments from 1 instance to another? what's your business requirement here?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2024 10:25 PM
@Ankur Bawiskar I have to migrate the all incidents, change, problem records from single tenant instance to multitenant instance. So, I can export the other records without any issue but unable to import the attachment doc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2024 07:43 AM
Hi @CharanjeetSingh,
Rather than reinvent the wheel, please find the below links, one form the community and the other from ServiceNow support in achieving this.
Community link: https://www.servicenow.com/community/developer-forum/copying-attachment-from-one-instance-to-another... (Kudos @Michael Ritchie )
The ServiceNow support article: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0790002
To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Kudos.
Thanks, Robbie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2024 02:04 AM
Hi @Robbie,
Thanks for your response and guide.
This seems good solution but it will create new records on the target instance and creating new record will result in new sys_id. If sys id will change it will lost the connection with other related records like Case, Incident tasks.