web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :

SoapException:Server was unable to process request on Update using CrmService.

Nishant Rana Profile Picture Nishant Rana 11,325 Microsoft Employee

Hi,

We were receiving the above error on running a custom aspx page.

This page was configured to be called on click of an ISV.config button from an entity’s form.

The page was using CrmService web service to update the entity on which it was being called.

On checking the stack trace, we found that error was coming from within this function of the page

CrmService crmService = new CrmService();
crmService.Url = //web service url
crmService.Credentials = System.Net.CredentialCache.DefaultCredentials;

salesorder salesOrder = new salesorder();
salesOrder.new_issuer = userName;

salesOrder.salesorderid = new Key();
salesOrder.salesorderid.Value = new Guid(poID);

crmService.Update(salesOrder);
There was nothing in the code that could have resulted in the above error as correct guid of the record was getting passed.
After a little more investigation we finally realized that the issue was with a post update callout. The post update callout was the one which was throwing the error.
And as we were updating the record using a custom page, the callout was also getting fired. So finally we corrected the post update callout and the custom page also started working fine.
Bye.

Posted in CRM, Microsoft Dynamics CRM Tagged: CRM

This was originally posted here.

Comments

*This post is locked for comments