I’m trying to create Relation Database, Here is the Data structures.
Problem :
Error Message : Validation for the nVendorID property failed. Property value does not match the required pattern.
Status Code : 403
Code : 8023
1 . 1 . * (One to many relationship)
2. i’m using Javascript API
I guess that the error you receive is raised because the Voucher object has “” as nVendorID, but this column has validator “Number” in base. Try to pass there some value, for example, change your code like this:
var JohnsPhoneBook = contactStorage.save(new Vouchers({
owner: RedeemVouch,
nVendorID: 7
}));
I have tried the above solution, m getting new error message.
code:1007
message:“Unable to save object - invalid data type for properties - strCategoryID. You can change the property type in developer console.”
statusCode:403
This error means that the object you’re trying save has property srtCategoryID which doesn’t match type declared in table. I guess that you’re passing strCategoryID = “”, but it’s declared type is INT.
You should change your constructor if it’s expected to be INT, or change this property type on console if you expect it to be String.
Sorry i have done necessary changes, still m facing same error message.
I have attached the table schema , relation entity and constructors related to the table schema.
Please have look at the where m going wrong?
Please do let me know, do i need to provide any information to resolve the issue.
Reason leaves the same: you’re passing strings to int fields.
I can order you the following: make changes in your contructors. For all your int fields corresponding rows in contructors should look like this:
this.strCategoryID = args.strCategoryID || 0;
Here strCategoryID is name of int column. This way you set default values for these fields to 0.
Notify me about results please.