Friday, July 11, 2008

Server was unable to process you request | CRM SDK Error Handling...

Using the CRM 4.0 SDK to write a callout and you get the error massage "Server was unable to process you request".

CRM Throws SOAP Exceptions from the Web Service. That's why you need to use the following to get to the actual error...

VB

Try
.....
Catch ex As System.Web.Services.Protocols.SoapException
MsgBox(ex.Message & " : " & ex.Detail.InnerText)
Catch ex As Exception
...More exception handling logic...
End Try


C#

      try
{
...
}
catch(System.Web.Services.Protocols.SoapException)
{
//Exception handling
throw;
}
catch(Exception)
{
//Exception handling
throw;
}

See http://msdn.microsoft.com/en-us/library/aa681719.aspx
for MSDN's official documentation on CRM 3.0

1 comment:

Unknown said...

Entity name and columnset names are case sentitive. Please check