Help

Upcoming database upgrades. to improve our reliability at 03:30 UTC on Feb. 25 / 7:30pm PT on Feb. 24. Some users may briefly experience slow load times or error messages. Learn more here

Create record with script: weird error U: Validate this value before parsing

Topic Labels: Scripting extentions
Solved
Jump to Solution
249 1
cancel
Showing results for 
Search instead for 
Did you mean: 

Greetings, folks:

All I want is to create the next record:

let nuevoRegistro = {
                'ALUMNOS': [{ "id": regAlumno.id }],
                'ANHO': [{ "id": registroAnho.id }],
                'CENTRO': [{ "id": registroCentro.id }],
                'isAlta': { name: "Yes" },
                'CLASE': { name: clase },
                'CURSO': [{ "id": regCurso.id }],
            };

With the following function:

let crearRegistros = async function (tabla, nuevoReg) {
    return await tabla.createRecordAsync(nuevoReg);
}

And what do I get when I run this? await crearRegistros(tabla, nuevoRegistro);

U: Validate this value before parsing

I couldn´t find any info about scripting errors. I hope someone did and would like to share what I’m doing wrong. Thanks!

1 Solution

Accepted Solutions

Regarding this problem, I still don´t know why, but it has dissapeared. Now it works.

I suspect I built the record wrong. Thanks a lot!

See Solution in Thread

1 Reply 1

Regarding this problem, I still don´t know why, but it has dissapeared. Now it works.

I suspect I built the record wrong. Thanks a lot!