Good Morning I have a RESTlet that is being used t...
# suitescript
l
Good Morning I have a RESTlet that is being used to generate a PDF and save it to the File Cabinet. It gets used hundreds of times a day, but ~2-3 times a day I’m getting a
DUP_RCRD
error.
Copy code
Error: DUP_RCRD
This record already exists
Stack Trace: nlapiCreateError(RESTletGeneratePdf$8779689:1262)
nlapiSubmitFile(RESTletGeneratePdf$8779689:804)
The Code is
Copy code
var file = nlapiPrintRecord('TRANSACTION', id, 'PDF', null);
file.setFolder(datain.folderId);
nlapiSubmitFile(file);
Has anyone seen this error before, or have some ideas of where I can start looking to figure out whats going on?