Comment duplicated on Save in portal

marianneurnes
Mega Guru

Hi all,

I am trying to debug an error I have in a custom application. I need help locating the source of this error, and I'm not sure how to debug it. The error is as follows:
I have a form in the portal with the Additional comments field. When I fill out additional comments and click Post, it is posted as expected. But if I then click the Save button afterwords, this same comment is posted again. The Save-button has not been adjusted for the custom app. 

This error only happens when filling out the form in the portal, not doing the same backend. The custom table in question extends the task table.  

The update of the form seems to trigger a re-post of the comment, but I'm unable to find the source of this. Does anyone have any good debugging tips for use in the portal? Or have faced a similar issue, and know where I should look? I have gone through business rules, script includes and client scripts created for the custom table.

Any help is appreciated!

2 REPLIES 2

vandna
Tera Guru

Hi, 

 

Have you checked before insert/update business rule?

Save button on portal is just calling the Save ui action or primary ui action script. You can check the primary button script.

Thanks

Pavel87
Kilo Contributor

Hi,

 

Did you had a chance to solve it? I am facing the same issue, when the approver is saving comments in SP, system is populating the comments twice every time. 

I checked that when I am performing such action from the backend perspective (and saving approval comments), system is not creating duplicates, so the issue is somewhere in the "Approval info" widget most probably.

I've used solution from below links, but still the issue persist.

https://community.servicenow.com/community?id=community_question&sys_id=00d3004adba5334423f4a345ca96...

https://community.servicenow.com/community?id=community_question&sys_id=bfc2a8d4dbb0f34413b5fb243996...

 

Thanks