duplicate attachments in activity log

Peter Xiang
Tera Expert

Hi all,

 

I have created an Attachment field in the record producer, but after I upload the attachment, two records of the same attachment will appear in the ticket page. What is the reason for this? The HR module I use, There is a method in the record producer script: new sn_hr_core.hr_ServicesUtil(current, gs).createCaseFromProducer(producer, cat_item.sys_id);

Is the question related to this method?

 

PeterXiang_0-1690188987226.png

 

11 REPLIES 11

Hi @Ankur Bawiskar ,

 

1) is this happening on all record producers or specific one

---- Not only this one

2) is this happening for admins or non-admins

Not only admin

 

I find that if I use the attachment type field, there are two duplicate records, but this is not the case if I use the Attachment widget of OOTB

PeterXiang_0-1690192368844.png

PeterXiang_1-1690192384333.png

 

I tried to reproduce, also with a HR Record Producer, out-of-the-box this issue does not occur.

 

Any customizations that you mention? For example Business Rules doing something with attachments?

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

@Peter Xiang 

As mentioned by other members please check any custom BR/logic is present

Check that and share the updates so that we can help further.

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

Hi @Ankur Bawiskar ,

 

I found the same problem in my own PDI after trying it with Create Incident record producer from OOTB, I only created an attachment field

 

PeterXiang_0-1690210759809.png

 

Harish KM
Kilo Patron
Kilo Patron

Hi Please check is there a custom BR to insert attachments? May be it is running on each update on case?

Regards
Harish