Help

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

Solved
Jump to Solution
390 0
cancel
Showing results for 
Search instead for 
Did you mean: 
Alberto_Martin
4 - Data Explorer
4 - Data Explorer

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
Alberto_Martin
4 - Data Explorer
4 - Data Explorer

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
Alberto_Martin
4 - Data Explorer
4 - Data Explorer

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!