Page 1 of 1

Cannot deserialize instance of date from VALUE_STRING value

Posted: Wed Sep 25, 2013 7:11 pm
by supriya hirurkar

While making a POST request in order to create and save a new custom object record, XYZ_Date__c is a compulsory field. When I try to request that, I get 'Cannot deserialize instance of date from VALUE_STRING value'. Any help on this is appreciated.


Cannot deserialize instance of date from VALUE_STRING value

Posted: Wed Sep 25, 2013 7:20 pm
by maxkatz

Is this Salesforce API? Where do you get this error, can you post a screen show of it?


Cannot deserialize instance of date from VALUE_STRING value

Posted: Wed Sep 25, 2013 7:44 pm
by supriya hirurkar

Yes, it is a salesforce API. using POST method as I want to create a new record from my app. Here is the screenshot Image


Cannot deserialize instance of date from VALUE_STRING value

Posted: Wed Sep 25, 2013 7:49 pm
by maxkatz

I'm guessing you are missing some data in request parameters. It's a custom Salesforce object -- so I wouldn't know what exactly is missing. If you can show us a curl-command that works -- we will help you set it up in a service.


Cannot deserialize instance of date from VALUE_STRING value

Posted: Wed Sep 25, 2013 7:55 pm
by supriya hirurkar

Hello Max,

I was not really missing anything. the screen shot had just those many parameters. attaching better screenshots Image Image


Cannot deserialize instance of date from VALUE_STRING value

Posted: Wed Sep 25, 2013 7:55 pm
by supriya hirurkar

Cannot deserialize instance of date from VALUE_STRING value

Posted: Wed Sep 25, 2013 8:19 pm
by maxkatz

What I meant is, the service might require data for Call_Date_c parameter (and others). As I don't know how the service is supposed to work, it's difficult for me so suggest what to do. If you can show me a curl-command that works, we'll help you set it up in Appery.io


Cannot deserialize instance of date from VALUE_STRING value

Posted: Wed Sep 25, 2013 8:27 pm
by Kateryna Grynko

Hi Supriya,

Saleforce won't accept empty request parameters. You should add parameter values.


Cannot deserialize instance of date from VALUE_STRING value

Posted: Wed Sep 25, 2013 8:39 pm
by supriya hirurkar

Thanks Katya! You are right.