Page 1 of 1
Update Error: Invalid Value For Type
Posted: Mon Dec 09, 2013 4:47 pm
by Doug Black
I get an error when using the update service with a database.
Console says: {"code":"DBSU252","description":"Invalid value for type 'object':'(object's ID)'"}
The object ID in the console is the correct one in the database. The ACL is set correctly, and reads just fine. Any thoughts?
Update Error: Invalid Value For Type
Posted: Mon Dec 09, 2013 5:38 pm
by Maryna Brodina
Hello! Could you post screenshot of request parameters and error screenshot?
Update Error: Invalid Value For Type
Posted: Mon Dec 09, 2013 6:21 pm
by Doug Black
Here is the mapping:
Here is the Request:
Here is the error:
Update Error: Invalid Value For Type
Posted: Mon Dec 09, 2013 8:44 pm
by Maryna Brodina
Most likely some column in DB has object type, but you send string. Please check.
Update Error: Invalid Value For Type
Posted: Tue Dec 10, 2013 11:57 am
by Doug Black
The type was String originally. If it is set to string, I get an error that the object type is incorrect. If I set it to object, it says no resource for PUT request.
Update Error: Invalid Value For Type
Posted: Tue Dec 10, 2013 6:59 pm
by Maryna Brodina
Hello! Could you post screenshot of your collection in DB which you call so we can see column names and their types?
Update Error: Invalid Value For Type
Posted: Tue Dec 10, 2013 8:39 pm
by Doug Black
Here it is!
Update Error: Invalid Value For Type
Posted: Tue Dec 10, 2013 9:10 pm
by Maryna Brodina
The problem most likely is with acl field. What do you send to this field? Could you post example? You can check here how it suppose to look like http://docs.appery.io/documentation/b...
Update Error: Invalid Value For Type
Posted: Tue Dec 10, 2013 10:31 pm
by Doug Black
You're correct. I removed the ACL request and it worked just fine. Thank you!