The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Attachment Variable Causing Duplicate Attachments on Record Producer Submission

Mahnoor_Azhar
Giga Expert

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!

1 ACCEPTED SOLUTION

Its_Azar
Tera Guru

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.

☑️ If this helped, please mark it as Helpful or Accept Solution so others can find the answer too.




Kind Regards,

Mohamed Azarudeen Z

Developer @ KPMG

 Microsoft MVP (AI Services), India

View solution in original post

5 REPLIES 5

J Siva
Tera Sage

Hi @Mahnoor_Azhar 

Check is there any business rule running on the sys_attachment table to create duplicate attachment record.

Regards,

Siva

Zach Koch
Giga Sage
Giga Sage

Take a look at this KB, I'd bet this is your issue

KB1124497  

If this information helped resolve your issue, please remember to mark response correct and thumbs up to help future community members on this information, thanks!

Ankur Bawiskar
Tera Patron
Tera Patron

@Mahnoor_Azhar 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

There are two attachments: one is the default, and the other is the one I created.