What is WD_VALIDATION_ERROR

Hey
I am creating data collection functions to insert, update and delete data but suddenly in one function the catch is returning WD_VALIDATION_ERROR and I can’t find any list of this kind of errors.

Please help.

2 Likes

Scary but this error suddenly dissapeared. Still want to know the reasons behind this error.

1 Like

Extremely strange error message from a Wix function but the reason behind the error was a switch line where I hade case 3,4: instead of case 3: new row case 4:

So I thought the whole time the WD VALIDATION was from Wix Data becuase it came back from that catch phrase and that was because the case statement did not work so all values was empty and wrong when trying to update the data collection.

Hours and hours sometimes just because the brain is not on steroids :slight_smile: Just wanted to add this so other people doing the same f**kups I did can find the solution.

2 Likes

Hello Andreas, I am getting the same error trying to post the following to one of my collections. Any thoughts?

[
{
“title”:“%FileNumber%”,
“address”:“%OrderAddress%”,
“roof_type”:“%TextListDetail[0]%”,
“construction_type”:“%TextListDetail[2]%”,
“roof_cover”:“%TextListDetail[3]%”,
“total_bath_count”:“%TextListDetail[4]%”,
“garage_type_parking”:“%TextListDetail[9]%”,
“subdivision”:“%TextListDetail[12]%”,
“air_conditioning”:“%TextListDetail[13]%”,
“property_type”:“%TextListDetail[14]%”,
“fireplace”:“%TextListDetail[15]%”,
“pool”:“%TextListDetail[16]%”,
“no_of_stories”:“%TextListDetail[17]%”,
“water”:“%TextListDetail[18]%”,
“building_quality_score”:“%TextListDetail[20]%”,
“year_built”:“%TextListDetail[21]%”,
“exterior_walls”:“%TextListDetail[22]%”,
“garage_parking_of_cars”:“%TextListDetail[23]%”,
“heating”:“%TextListDetail[24]%”,
“sewer”:“%TextListDetail[25]%”,
“site_area_acres”:“%TextListDetail[26]%”,
“number_of_units”:“%TextListDetail[27]%”,
“building_area_sq_ft”:“%TextListDetail[28]%”,
“assessment_year”:“%AssYearSplit%”,
“apn”:“%TextListDetail[33]%”,
“tax_amount”:“%TextListDetail[34]%”,
“total_assessed_value”:“%TextListDetail[35]%”,
“tax_year”:“%TaxYearSplit%”,
“city”:“%TextListDetail[45]%”,
“county_fips”:“%TextListDetail[46]%”,
“geo_precision”:“%TextListDetail[47]%”,
“zipcode”:“%TextListDetail[49]%”,
“address_full”:“%TextListDetail[51]%”,
“state”:“%TextListDetail[52]%”,
“msa”:“%TextListDetail[53]%”,
“metrodiv”:“%TextListDetail[54]%”,
“unit”:“%TextListDetail[55]%”,
“lat”:“%TextListDetail[57]%”,
“lng”:“%TextListDetail[58]%”
}
]

Thank you.

What is all % for? That must not be correct

The text surrounded by % is a variable populated with text from an automation program that then submits to wix collection with http post function. I think I have solved my issue. I was double entering the item name i.e. "title:“title”:“apple”

Thanks for the response.

have you found any solution?
I got that same error

import {ok, notFound, serverError} from ‘wix-http-functions’; import wixData from ‘wix-data’; // URL looks like: // https://www.mysite.com/_functions/myFunction/John/Doe // or: // https://user.wixsite.com/mysite/_functions/myFunction/John/Doe export function get_apis(request) { let options = { “headers”: { “Content-Type”: “application/json” } }; // query a collection to find matching items return wixData.query(“Stores/Collections”) .limit(1000) .find() .then( (results) => { // matching items were found if (results.items.length > 0) { options.body = { “items”: results.items }; return ok(options); } // no matching items found options.body = { “error”: ${request.path[0]} ${request.path[1]} wasn't found }; return notFound(options); } ) // something went wrong . catch ( (error) => { options.body = { “error”: error }; return serverError(options); } ); }
I got this errror

What does this mean? Is there no answer since 2019???

{
“error”: {
“name”: “Error” ,
“errorGroup”: “User” ,
“code”: “WD_VALIDATION_ERROR”
}
}

Please add your own issue into a new post instead of bumping up an old post that may or may not be relevant to your issue. Explain what you are trying to do, what works, and what doesn’t. Also, add any code in a code block as stated in the Forum Guidelines .

@yisrael-wix

  1. Please add some answer to some off the 100s open question instead of letting customers always bump into non-answered forum posts.

  2. Please add a flag “NO ANSWER FROM SUPPORT AVAILABLE” so that we can filter them out.

1 Like

@kuklick Understand that this forum is not a support site. It is a community of Velo developers and users where coding and development topics are discussed and information shared. There is no assurance that users will find their answers here.

Velo by Wix is a full and robust development environment providing a platform for everything from minor customization to full-blown specialized apps. Wix is constantly working to improve and update existing features and introduce new ones. And for features that are not currently supported, experienced developers can take advantage of the power of Velo to implement it themselves.

Feel free to make your voice heard. The Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.