You need to sign in to do that
Don't have an account?
CVLG
Insufficient access rights error message on new record for custom object
We have a set of custom objects and some scontrols using AJAX that are used to create a set of new implementation tracking
records from a closed/ won Opportunity and then assign ownership of those new records to the right Implementation Director.
The scontrol has worked fine for months... up until 02/10/06 when we began receiving an error message indicating
"insufficient access rights on cross-referenced id" whenever the AJAX script tried to create a new record.
I have determine the cause but not the fix... When I run the scontrol under the SysAdmin role, it works fine. If I run the scontrol
under the normal but more restrictive Operations Coordinator role, it throws the error for all cases where the new Owner is different than the
logged in user.
I suspect there has been a recent change to the API re: validation of OwnerID. Can anyone confirm and/ or suggest a solution?
Here is the relevant portion of the AJAX script.
Thanks in advance for any clues - this is causing our client MAJOR headaches!
//## CREATING IMPLEMENTATION
var thisImplementationId;
document.write("
saving Implementation record");
var insertImplementationArray = new Array();
insertImplementationArray[0] = implementation;
var implementationSR = sforceClient.Create(insertImplementationArray);
//alert("saved imp..."+implementationSR.length);
//document.write("
STATUS - implementationSR: "+implementationSR.toString());
for (var sri=0;srivar oneSaveResult = implementationSR[sri];
if (oneSaveResult.success == true) {
thisImplementationId = oneSaveResult.id;
} else {
alert("Error while saving Implementation: " + oneSaveResult.errors[0].message);
}
}
records from a closed/ won Opportunity and then assign ownership of those new records to the right Implementation Director.
The scontrol has worked fine for months... up until 02/10/06 when we began receiving an error message indicating
"insufficient access rights on cross-referenced id" whenever the AJAX script tried to create a new record.
I have determine the cause but not the fix... When I run the scontrol under the SysAdmin role, it works fine. If I run the scontrol
under the normal but more restrictive Operations Coordinator role, it throws the error for all cases where the new Owner is different than the
logged in user.
I suspect there has been a recent change to the API re: validation of OwnerID. Can anyone confirm and/ or suggest a solution?
Here is the relevant portion of the AJAX script.
Thanks in advance for any clues - this is causing our client MAJOR headaches!
//## CREATING IMPLEMENTATION
var thisImplementationId;
document.write("
saving Implementation record");
var insertImplementationArray = new Array();
insertImplementationArray[0] = implementation;
var implementationSR = sforceClient.Create(insertImplementationArray);
//alert("saved imp..."+implementationSR.length);
//document.write("
STATUS - implementationSR: "+implementationSR.toString());
for (var sri=0;srivar oneSaveResult = implementationSR[sri];
if (oneSaveResult.success == true) {
thisImplementationId = oneSaveResult.id;
} else {
alert("Error while saving Implementation: " + oneSaveResult.errors[0].message);
}
}
Thanks!
Are you using a workaround right now? I see your case is in process and engineering is trying to track it down.
Just curious if there is a re-usable solution?