The CreatorCon Call for Content is officially open! Get started here.

Attcahment duplication

KiranmaiP
Tera Contributor

In a scoped application, I had a record that includes an attachment named "pasted". When I open this record in Workspace, the same "pasted" attachment appears again—duplicated. If another user (User 2) opens the same record, the "pasted" attachment is added once more. This behavior repeats across multiple users and able to see the same occurring in Classic UI. Additionally, work notes are being updated automatically each time the attachment is duplicated.

Could anyone please help me in identifying

  • What might be causing this repeated attachment behavior?
  • Which components or configurations  could be responsible?
    Please guide through.
3 REPLIES 3

Kieran Anson
Kilo Patron

This could be triggered by:

  1. A display business rule
  2. An onLoad or onChange client script
  3. A script action running on the user.view event

Ankur Bawiskar
Tera Patron
Tera Patron

@KiranmaiP 

please share screenshots.

what debugging did you do from your side?

💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Sarthak Kashyap
Tera Guru

Hi @KiranmaiP ,

 

Please check in script include or business rules that script contains 

GlideSysAttachment.copy(sourceTable, sourceSysId, targetTable, targetSysId)

OR

GlideSysAttachment.write(gr, fileName, contentType, data)

 

Please mark my answer correct and helpful if this works for you

Thanks and Regards,

Sarthak