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
mel709mel709 

Retrieval error: "There is an error in XML document (1, 487)"

Whenever I try to retrieve the LastModifiedDate field of an Account, I encounter the following error: "There is an error in XML document (1, 487)". I have no problems retrieving the other fields of the Account, though.
 
Any help will be appreciated. Thanks!
PerGeertPerGeert
I am having the same problem in a vb.net program which runs fine in production. But I had to make to modifications when this problem reappeared. Any response on a solution?
MazAMazA
I managed to get this working finally (cheap approach) by removing anything unwanted from the .wsdl file. I think it's the size of the .wsdl file that messes it up.
 
Example,
Any part that I don't need now looks like the following
<xsd:complexType name="ActivityHistory">
<xsd:complexContent mixed="false">
<xsd:extension base="ens:sObject">
<xsd:sequence />
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
 
BTW, Salesforce should add this as a feature to their .wsdl generator tool where you can select only the elements(sections) that you use.
Maz.
 
01-17-2007 07:20 AM 
SuperfellSuperfell
This is a known issue with .NET 2.0, see this post on the .NET boards, for details of how to get the fix from Microsoft. http://community.salesforce.com/sforce/board/message?board.id=NET_development&message.id=4069