You need to sign in to do that
Don't have an account?
Ariel Berkman 5
Metadata API call results in 'INVALID_LOCATOR' error.
Hi,
When using the Metadata API to list all the ApexTrigger files (via the listMetadata() call), we are getting a "MALFORMED_ID: bad id XXXXX" error and then all subsequent requests return a "INVALID_LOCATOR: Retrieve result has been deleted" error.
We've been using this method to list (and then extract data) from the Metadata API for quite some time, from many Orgs, and this is the first time we are seeing this behavior.
We've tried both v34 and v35 of the API.
Any idea what could be causing this error?
Thanks in advance,
Ariel.
When using the Metadata API to list all the ApexTrigger files (via the listMetadata() call), we are getting a "MALFORMED_ID: bad id XXXXX" error and then all subsequent requests return a "INVALID_LOCATOR: Retrieve result has been deleted" error.
We've been using this method to list (and then extract data) from the Metadata API for quite some time, from many Orgs, and this is the first time we are seeing this behavior.
We've tried both v34 and v35 of the API.
Any idea what could be causing this error?
Thanks in advance,
Ariel.
It's actually a SOAP call via the Metadata API. The call is to listMetadata(list_metadata_query, api_version_num). The metadata object we are trying to list is ApexTrigger.
Thanks,
Ariel.
Thanks!
[1] https://cs18-api.salesforce.com/services/Soap/m/35.0
The response I'm getting is this:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sf="http://soap.sforce.com/2006/04/metadata"><soapenv:Body>
<soapenv:Fault>
<faultcode>sf:MALFORMED_ID</faultcode>
<faultstring>MALFORMED_ID: bad id xxxxxx__xxxx__c</faultstring>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
(I manually changed the name to xxxxxx__xxxx__c).
The endpoint I used was https://cs22.salesforce.com/services/Soap/m/35.0
Any idea what could be causing this or what I can do about it?
Thanks,
Ariel.
(issued from this commandline: curl --header "Content-Type: text/xml;charset=UTF-8" --header "SOAPAction:urn:listMetadata" --data @req https://cs22.salesforce.com/services/Soap/m/35.0)
Yes, in fact, we've been using the same code on many environments and that's the only one that's runing into these issues.
I did contact Salesfoce support and they told me to inquire about the problem here... Any idea how I can get them to look into this? Given that it's only broken for a specific Org (and it's sandbox), I'm quite sure the code isn't the problem...
Thanks again,
Ariel.