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
Mega Sage

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.

View solution in original post

5 REPLIES 5

J Siva
Kilo Patron

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

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

KB1124497  

Ankur Bawiskar
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.

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