- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2025 06:53 AM
Hi everyone,
I'm working with a Record Producer where I've added an Attachment variable to allow users to upload files.
However, when users upload files through this variable and submit the form, the attachments show up twice on the target record.
Has anyone else faced this issue?
What I’ve observed:
I'm not using the paperclip icon to upload files — only the Attachment variable.
But still, attachments are appearing twice on the created record.
What I need help with:
Why is this duplication happening?
Is there a way to use the Attachment variable without triggering duplicate attachments?
Should I disable the paperclip icon, or is there a better approach?
Any suggestions or best practices would be greatly appreciated!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2025 07:29 AM
Hi there @Mahnoor_Azhar
try disabling the default attachment option on the Record Producer by unchecking "Add attachment" in the configuration. If that’s not possible, a post-submission script (like a BR) can be used to identify and remove duplicate files by comparing attributes like file name or size.
If this helps kindly accept the solution thanks.
Kind Regards,
Mohamed Azarudeen Z
Developer @ KPMG
Microsoft MVP (AI Services), India
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2025 07:02 AM
Check is there any business rule running on the sys_attachment table to create duplicate attachment record.
Regards,
Siva

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2025 07:03 AM
Take a look at this KB, I'd bet this is your issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2025 07:16 AM
how many attachment variables are there on your record producer?
by default the attachment variable file is not copied to target record.
Some customization must have been done which is causing this, ideally it should copy only once.
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2025 07:45 AM
There are two attachments: one is the default, and the other is the one I created.