WD_VALIDATION_ERROR

Hi all,

I’m getting a new error with code that used to be working fine. Bulk insert and bulk delete of data both returning the error below.

code : “WD_VALIDATION_ERROR”
errorGroup : “User”
name : “Error”

It’s in backend functions with suppressAuth activated.

Any help very gratefully received.

Thanks,

Luke

What did you pass to the bulkInsert and bulkDelete?

When you delete something, make sure the _id is here.

If your .catch looks like this:

.catch( (err) => {
   return err
}

Try returning:

.catch( (err) => {
   return err.message
}

The err.message portion should give you the exact error code with a description. It should better point you in the direction you need to go

It looks like you are encountering an error with your code that is related to validation. The specific error code you provided is “WD_VALIDATION_ERROR”, and it appears to be in a backend function with suppressAuth activated.

There could be a number of reasons why you are seeing this error. One possibility is that there is an issue with the data you are trying to insert or delete. For example, you might be trying to insert data that does not meet the requirements of the database schema, or you might be trying to delete data that is referenced by other data in the database.

Another possibility is that there is an issue with the backend function itself. This could be a problem with the code, or it could be an issue with the environment in which the function is running.

To troubleshoot this issue, it would be helpful to have more information about your code and the environment in which it is running. Can you provide more context about what you are trying to do, and any other relevant details about your setup?