Record producer creating duplicate records in servicenow

msc
Tera Contributor

Hi Everyone,

 

I have an issue in record producer that in record producer creating duplicate records in servicenow.

I was used class less script include to insert record in servicenow to map the producer variables to back record values.

May i know the issue why the record producer creating duplicate values.

10 REPLIES 10

Sandeep Rajput
Tera Patron
Tera Patron

@msc Could you please check if you are using current.insert() in your record producer script or within your script include? If yes then please remove the line as Record producer itself generates a record in the target table and current.insert is not needed in this case.

Hi Sandeep , 

In script part i am calling the script include.

In script include , I am glide record the table and map the variables to backend form fields and  then I am inserting the record , here I have used gr.insert(); 

Abbas_5
Tera Sage
Tera Sage

Hello @msc,

Please refer to the link below:
https://www.servicenow.com/community/itsm-forum/record-producer-creating-duplicated-records/m-p/5314...

 

If it is helpful, please mark it as helpful and accept the correct solution.

Thanks & Regards,

Abbas Shaik

Vishal Birajdar
Giga Sage

Hello @msc 

 

Record producer itself will create a record when you submit it.

Can you provide some more info please....!!!

 

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates