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

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

please share the script you are using to insert

Regards
Ankur

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

Community Alums
Not applicable

Hi Ankur, 

I am not using any script to make insertion.

The problem happens when inserting records manually thorough the new record form. 

Hi,

Please check this

1) when was the last time it was working fine

2) Did you recently upgrade

3) Is this table extended by some other table and did you check the table which it has extended has any before insert BR or not

Regards
Ankur

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

@Evandro Sousa 

Any update on this

Regards
Ankur

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