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
Bhaskar S 20Bhaskar S 20 

Getting error when am trying to pull the other object datails...using soap api

System.CalloutException: Web service callout failed: WebService returned a SOAP Fault: INVALID_TYPE: Unknown type:DeployMessage faultcode=sf:INVALID_TYPE faultactor=
please reply how can i resolve this error?
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi Bhaskar,

May I suggest you please check the below link for reference. hope it helps.

Thanks
Rahul Kumar
NagendraNagendra (Salesforce Developers) 
Hi Bhaskar,

DeployMessage(https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_deployresult.htm#DeployMessage) is part of the DeployDetails(https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_deployresult.htm#deploy_details) response that the Metadata API returns.

So it would appear you are trying to call the Soap based Metadata API from Apex. If so, are you using the existing apex-mdapi(https://github.com/financialforcedev/apex-mdapi) library? It knows about DeployMessage.

Also, I would suggest to please double check API name o the object. if it is custom object then it should contain __c ending.

Hope this helps.

Kindly mark this as solved if the information was helpful.

Thanks,
Nagendra