function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

XML_PARSER_ERROR - Unexpected parameter encountered during deserialization

I have an Apex REST service that up until today was fully functional. It's in two sandboxes, one on Spring '13, one on Summer '13 preview, and both are throwing the same error. Now when I send in a valid request, such as:



I'm nearly immediately returned the following:


HTTP/1.1 400 Bad Request
Date: Mon, 20 May 2013 21:20:21 GMT
Content-Type: application/xml;charset=UTF-8
Transfer-Encoding: chunked

<?xml version="1.0" encoding="UTF-8"?>
        <message>Unexpected parameter encountered during deserialization: FirstName</message>


I've tried the same with JSON, and get a similar JSON_PARSER_ERROR with the same message, "Unexpected parameter encountered during deserialization"


Also took a look at a debug log and it only has a handful of lines.


17:20:21.031 (31030000)|EXECUTION_STARTED
17:20:21.031 (31075000)|CODE_UNIT_STARTED|[EXTERNAL]|01pZ00000005X08|REST_AutoRenewalService_V1.doPost
17:20:21.035 (35960000)|CODE_UNIT_FINISHED|REST_AutoRenewalService_V1.doPost
17:20:21.035 (35978000)|EXECUTION_FINISHED


Has anyone seen this error before or have any idea how to fix it?


whats the signature of your apex service look like ?

Pavan Kumar MunjiPavan Kumar Munji

Is this issue resloved i am also facing the same issue.When i pass xml as input for a rest api call, i am getting below error 
Unexpected parameter encountered during deserialization: