• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: RCRD_DSNT_EXIST”,”message”:” There are no records of this type

Resolved: RCRD_DSNT_EXIST”,”message”:” There are no records of this type

0
By Isaac Tonny on 17/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

Okay everyone, very much through the looking glass on this one. Many thanks to Barmar, Kryton and bknights whose wisdom has helped get me this far.
The script has changed and is now below. I can upload it and generate a script record and it does actually attempt to run, but now I am getting this error:
“type”:”error.SuiteScriptError”,”name”:”RCRD_DSNT_EXIST”,”message”:”There are no records of this type.”,”stack”:[“createError(N/error)”,”initiateWorkflow(/SuiteScripts/grn20.js:9)”],”cause”:{“type”:”internal error”,”code”:”RCRD_DSNT_EXIST”,”details”:”There are no records of this type.”,”userEvent”:”aftersubmit”,”stackTrace”:[“createError(N/error)”,”initiateWorkflow(/SuiteScripts/grn20.js:9)”],”notifyOff”:false},”id”:””,”notifyOff”:false,”userFacing”:false}
But the record definitely does exist, the ID number and workflow ID are as specified in the workflow.
What else could be causing this problem?
Thank you in advance for any suggestions!

Answer:

There are several things wrong with what you are doing. This really is a RTM situation.
You may be just trying to exercise the API so don’t really care about the type of script but Netsuite does. It parses the NScriptType annotation and is rejecting your script as being non-conforming.
A user event script has a shape like:
Also these lines:
look like they are just hopeful guesses. There is online help for all of this if you are logged in to Netsuite.

If you have better answer, please add a comment about this, thank you!

javascript netsuite suitescript suitescript2.0 workflow
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: How can I write CSS selector(s) that apply to table rows for all td elements on that row after a td with a certain class?

01/04/2023

Resolved: How do I use SetWindowText with Unicode in Win32 using PowerShell?

01/04/2023

Resolved: Shopware 400 Status Error “This value is too long. It should have 255 character or less.” When I Try Updating Database Table

01/04/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.