Doug Black
Posts: 0
Joined: Wed Aug 14, 2013 11:36 am

Update Error: Invalid Value For Type

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?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Update Error: Invalid Value For Type

Hello! Could you post screenshot of request parameters and error screenshot?

Doug Black
Posts: 0
Joined: Wed Aug 14, 2013 11:36 am

Update Error: Invalid Value For Type

Here is the mapping:
Image

Here is the Request:
Image

Here is the error:
Image

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Update Error: Invalid Value For Type

Most likely some column in DB has object type, but you send string. Please check.

Doug Black
Posts: 0
Joined: Wed Aug 14, 2013 11:36 am

Update Error: Invalid Value For Type

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.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Update Error: Invalid Value For Type

Hello! Could you post screenshot of your collection in DB which you call so we can see column names and their types?

Doug Black
Posts: 0
Joined: Wed Aug 14, 2013 11:36 am

Update Error: Invalid Value For Type

Here it is! Image

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Update Error: Invalid Value For Type

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...

Doug Black
Posts: 0
Joined: Wed Aug 14, 2013 11:36 am

Update Error: Invalid Value For Type

You're correct. I removed the ACL request and it worked just fine. Thank you!

Return to “Issues”