Record not found when trying to insert records into scoped application table.

evandrosousa
Tera Contributor

I have created a custom table in a scoped application, but when inserting new records into this table I receive the message "Record not found".

Taking a look into the logs a see the following warning when trying to insert any record into this table.

"org.mozilla.javascript.EcmaError: "__ref__" is not defined.

Caused by error in <refname> at line 1

==> 1: __ref__.isNewRecord()"

OBS: There is no Business Rules or scripts running in this tabel yet. 

The problema occurs when I try to insert records using any user, including the sys admin. 

1 ACCEPTED SOLUTION

@evandrosousa 

There must be an issue with this table itself.

Try deleting it and create new one and check if that works fine or not.

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

10 REPLIES 10

@evandrosousa 

There must be an issue with this table itself.

Try deleting it and create new one and check if that works fine or not.

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader