field changes capturing twice in activity log

sivachandrasekh
Mega Contributor
In the activity log, I see that information of custom field changes such as "Requested for domain" is captured.
But in the activity log it is capturing twice and not sure what is the mistake .
 
When I'm updating the work notes it is capturing only one time.find_real_file.png
 
Can anyone let me know why it is capturing twice in activity log. Please see the highlighted red boxes in Screenshot and you can see requested for domain captured twice.
 
 
1 ACCEPTED SOLUTION

AbhishekGardade
Giga Sage

Hello Shiva,

Go to business rules on that table and check for condition 

find_real_file.png

1. If any BEFORE INSERT/UPDATE business Rule contains current.udpate(), then remove it from script.

2. If any AFTER INSERT/UPDATE business Rule contains current.udpate(), then add current.setWorkflow(false) in your script.

Please mark as Correct Answer/Helpful, if applicable.
Thanks!
Abhishek Gardade

Thank you,
Abhishek Gardade

View solution in original post

17 REPLIES 17

Shaun Hillier
Kilo Guru

Hi Siva

The root cause for this issue is that the Server is processing to updates on the same record. A few things can cause this but the most likely is that you have a current.update() in a before business rule.

Check your business rules to make sure that none of them have a current.update();

Start by looking at which script is creating the "Updated by Siva" message.

Regards

Shaun

If this is helpful, please mark it as correct solution 

Hi Shaun,

 

None of the script is Updated the worknote "Updated by Siva" .

 

What i did is, I changed the requested for domain and then added a work note and then Saved the ticket. After that if we see the activity log it is updating twice and i attached the screen shot also for the same.

 

Now on the same request i just updated the requested for domain and Saved the ticket. Please find the attached screen shot and I can see there is no current.update(); in before business rules for the request table.find_real_file.png

 

Any other place I need to check to resolve this issue?

Regards,

Siva

Hi there,

Can you verify if these activities are actually stored twice? Or that it's a visual issue?

If stored once and only visual issue: try to remove the "Requested for Domain" from the Activity log, save, add it back again.

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark

---

LinkedIn

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

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

LinkedIn

Hi Mark,

 

It is storing twice in activity log.

 

find_real_file.png

 

Regards,

Siva