supriya hirurkar
Posts: 0
Joined: Fri Aug 30, 2013 8:57 pm

Cannot deserialize instance of date from VALUE_STRING value

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.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Cannot deserialize instance of date from VALUE_STRING value

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

supriya hirurkar
Posts: 0
Joined: Fri Aug 30, 2013 8:57 pm

Cannot deserialize instance of date from VALUE_STRING value

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Cannot deserialize instance of date from VALUE_STRING value

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.

supriya hirurkar
Posts: 0
Joined: Fri Aug 30, 2013 8:57 pm

Cannot deserialize instance of date from VALUE_STRING value

Hello Max,

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Cannot deserialize instance of date from VALUE_STRING value

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Cannot deserialize instance of date from VALUE_STRING value

Hi Supriya,

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

supriya hirurkar
Posts: 0
Joined: Fri Aug 30, 2013 8:57 pm

Cannot deserialize instance of date from VALUE_STRING value

Thanks Katya! You are right.

Return to “Issues”