CRMService.Execute(request) unable to process request error
-
6 เมษายน 2550 18:04
when i run the following code i get error unable to process request -- i like the error lies in the request but am uncertain
Im trying to retrieve an opportunities attributes
Dim userRequest As New CRMService.WhoAmIRequest() Dim user As CRMService.WhoAmIResponse = CType(CRMService.Execute(userRequest), CRMService.WhoAmIResponse)TextBox1.Text = TextBox1.Text & user.UserId.ToString & vbCrLf
Dim oppID As CRMService.Lookup = New CRMService.Lookup() Dim GuidValue As Guid = New Guid("E0180D72-E3E2-DB11-A41A-0003FF7EE655") 'Dim Cols As CRMService.AllColumns = New CRMService.AllColumns Dim target As New CRMService.TargetRetrieveOpportunitytarget.EntityId = GuidValue
Dim request As New CRMService.RetrieveRequest()request.Target = target
request.ColumnSet =
New CRMService.AllColumns()request.ReturnDynamicEntities =
True ' TextBox1.Text = TextBox1.Text & request.ColumnSet.ToString & vbCrLf Try Dim response As CRMService.RetrieveResponse = CType(CRMService.Execute(request), CRMService.RetrieveResponse) Catch ex As System.Web.Services.Protocols.SoapExceptionTextBox1.Text = TextBox1.Text &
"Error:" & ex.Message & vbCrLf End Try
ตอบทั้งหมด
-
13 เมษายน 2550 13:31
-
1 มิถุนายน 2550 8:52
Although you are catching a SOAPException, you aren't making full use of the error information. Can you post the contents of:
ex.Detail.InnerXml
I can't see any immediate problems with the code. Are you sure the opportunity ID is valid ?