You need to sign in to do that
Don't have an account?
Error while using Metadata API
I am getting this error "insufficient access rights on cross-reference id" when I am using checkDeployStatus() for a Deployment Id which I got form Monitor Deployment Section of Setup. This is related to Metadata API.
Method goes like this:
public boolean checkDeploy(String deployId) throws MyException {
DeployResult result;
try {
result = metadataConnection.checkDeployStatus(deployId);
} catch (ConnectionException e) {
e.printStackTrace();
throw new MyException(104);
}
if (!result.isSuccess()) {
writeErrorLog(result,file);
return false;
}else {
writeErrorLog(result,file);
return true;
}
}
I am exectuting above code under two condition:
1. Just after I deployed a zip and polling the status to completed.
2. When I fired a huge deployment which will take a while so I will check the deployment status later. I have the deployment Id.
This is fine under first condition but giving said error on second.
error: insufficient access rights on cross-reference id: <unknown>
pls advice.