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
Krishna KatveKrishna Katve 

Unable to find a deserializer for the type common.api.soap.wsdl.QueryResult

Please advice about this error
Thanks in advance
ShashankShashank (Salesforce Developers) 
Please let me know if you are still facing this issue. This usually occurs very occasionally when system resources are busy.
Kirill_YunussovKirill_Yunussov
I was getting this error when trying to update an Opportunity object.  Turned out that this was because one (or more) of the fields that I on the object I was updating were not writable.   I think it was either "recordtype.name" or "amount".   What I ended up doing is this:

1) Query for the Opportunity records, including related lists, and certain non-writable fields.
2) Instead of updating the objects I got from the query in Step# 1, create a NEW List of NEW Opportunities for update purposes, and only populate the fields that I want to update.
 
ArrayList<Opportunity> queryOpps = apiCaller.executeQuery(queryString);
ArrayList<Opportunity> updateOpps = new ArrayList<Opportunity>();

for (Opportunity queryOpp : queryOpps) {
    // some condition for update
    if (queryOpp.getAmount() < queryOpp.getProjected_Revenue__c()) {

        // create a new Opportunity, instead of adding the queryOpp to the update list 
        Opportunity updateOpp = new Opportunity();
        updateOpp.setId(queryOpp.getId());
        updateOpp.setStageName("Needs Review");
        updateOpps.add(updateOpp);
    }
}

apiCaller.update(updateOpps);