SPD Actions: Error calling Web Service. The remote server returned an error: (500) Internal Server Error.

Apr 7, 2010 at 7:15 AM
Edited Apr 7, 2010 at 9:30 AM

Hello,

 i'm pretty new to Sharepoint and i get the following Error Message at the Workflowstatus:

Error calling Web Service. The remote server returned an error: (500) Internal Server Error.

when trying to copy a ListItem. In the Log File there is the Following Error:

04/07/2010 08:21:24.19     w3wp.exe (0x172C)                           0x0A14    Windows SharePoint Services       Workflow Infrastructure           88xr    Unexpected    WinWF Internal Error, terminating workflow Id# 859a4f9e-7d00-4c89-b9b1-0667f5fc8c50    
04/07/2010 08:21:24.19     w3wp.exe (0x172C)                           0x0A14    Windows SharePoint Services       Workflow Infrastructure           98d4    Unexpected    System.Net.WebException: The remote server returned an error: (500) Internal Server Error.     at System.Net.WebClient.UploadDataInternal(Uri address, String method, Byte[] data, WebRequest& request)     at System.Net.WebClient.UploadString(Uri address, String method, String data)     at iLoveSharePoint.Activities.CallWebServiceActivity.<>c__DisplayClass1.<Execute>b__0()     at Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(Object state)     at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2()     at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)     at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)     at Microsoft.SharePoint.SPSecurity.RunWithElevatedP...    
04/07/2010 08:21:24.19*    w3wp.exe (0x172C)                           0x0A14    Windows SharePoint Services       Workflow Infrastructure           98d4    Unexpected    ...rivileges(CodeToRunElevated secureCode)     at iLoveSharePoint.Activities.CallWebServiceActivity.Execute(ActivityExecutionContext executionContext)     at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(T activity, ActivityExecutionContext executionContext)     at System.Workflow.ComponentModel.CompositeActivityExecutor`1.Execute(T activity, ActivityExecutionContext executionContext)     at System.Workflow.ComponentModel.ActivityExecutor`1.Execute(Activity activity, ActivityExecutionContext executionContext)     at System.Workflow.ComponentModel.ActivityExecutorOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)     at System.Workflow.Runtime.Scheduler.Run()   

 

I test thie workaround for this great SPD workflow:

http://edwin.vriethoff.net/2010/04/04/unleash-extra-power-to-sharepoint-2007-workflows/

Adding a List via Webservice works fine, but the UpdateListItems failed.

This is my code:

 

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/env...">
<soap:Body>
<UpdateListItems xmlns="http://schemas.microsoft.com/sharepoint/soap/">
<listName>SourceList</listName> <updates> <Method ID="1" Cmd="Update"> <Field Name="ID">4</Field> <Field Name="Informationen">test</Field> </Method> </updates> </UpdateListItems> </soap:Body> </soap:Envelope>

Maybe anyone can help me with this error.

Coordinator
Apr 13, 2010 at 7:27 AM

Hello Maik,

unfortunately the log message isn't very helpful. It is likely a problem with your soap message. As far as I see the "batch" element is missing in qour request. e.g.

<Batch OnError="Continue" ListVersion="1" 
ViewName="270C0508-A54F-4387-8AD0-49686D685EB2">
   <Method ID="1" Cmd="Update">
      <Field Name="ID">4<Field>
      <Field Name="Field_Name">Value</Field>
   </Method>
   <Method ID="2" Cmd="Update">
      <Field Name="ID" >6</Field>
      <Field Name="Field_Name">Value</Field>
   </Method>
</Batch>

Bye, Christian

Apr 13, 2010 at 7:33 AM

Thanks Christian,

will give it a try.

By the Way, great PowerShell Session at Sharecamp 2010 ;-).

Bye, Maik