none
Update item via webservice raises errorcode 0x12f5bd80 RRS feed

  • Question

  • Hi,

    i am trying to update an list-item via webservice, but it fails with an errorcode.

    ULS log:

    Batchmgr Method error. Errorcode: 0x12f5bd80. Error message: Bad parameter passed to Web Server Extensions.  Check the information you entered and try again.

    SOAP-result:

    0x80070057 Bad parameter passed to Web Server Extensions.  Check the information you entered and try again."

    Test code:

    static void Main( string[] args )
    {
    	knlemosswebtest04.Lists listsService = new knlemosswebtest04.Lists();
    	listsService.Url = "http://knlemosswebtest04:8081/customer/issuetracking/_vti_bin/lists.asmx";
    
    	listsService.UseDefaultCredentials = true;
    
    	XmlDocument doc1 = new XmlDocument();
    	XmlElement batchElement = doc1.CreateElement( "Batch" );
    
    	batchElement.SetAttribute( "OnError", "Continue" );
    	batchElement.SetAttribute( "ListVersion", "1" );
    	batchElement.SetAttribute( "ViewName", "" );
    
    	batchElement.InnerXml =
    		"<Method ID='1' Cmd='Update'>" +
    		"<Field Name='ID'>116196</Field >" +
    		"<Field Name='Title'>Test</Field >" +
    		"</Method >";
    
    	var result = listsService.UpdateListItems( "Issues", batchElement );
    }
    

    When i change the listname to a simple custom list with just a few columns, it works perfectly, but this list has a lot of lookup-fields and different content-types.

    Still, i don't get it, that it is not possible to update just the "title"-field without an error.

    Thursday, April 19, 2018 8:38 AM

Answers

All replies

  • Here is the complete result from the SOAP-response:

    <Results xmlns="http://schemas.microsoft.com/sharepoint/soap/">
    	<Result ID="1,Update">
    		<ErrorCode>0x80070057</ErrorCode>
    		<ErrorText>Bad parameter passed to Web Server Extensions.  Check the information you entered and try again.</ErrorText>
    		
    		<z:row ows_ContentTypeId="0x010300F2B9740D2B2EDC4E89551D9159203BBB01040057965DAD46E7EE42997877597E34994C" ows_Title="_Test" ows_AssignedTo="2233;#Thomas STESSL" ows_Priority="(1) Very High" ows_KSIStarted="2017-06-01 10:10:00" ows_KSIBriefDescription="&lt;div class=&quot;ExternalClass6B43F99B7FC8457BAC29444CC9BAF509&quot;&gt;&lt;p&gt;​test&lt;/p&gt;&lt;/div&gt;" ows_IssueStatus="Active" ows_KSIChangeStatus="Specifying" ows_ORGID="float;#1.00000000000000" ows_Author="2233;#Thomas STESSL" ows_KSIChangeType="New Feature" ows_Project="k1400" ows_PROJS_ID="__bk4100b6001300430003000300" ows_Project_x003a__x0020_Projektname="REWE AT Hauptauftrag" ows_Customer="k.A. - -" ows_CUSTOMER_ID="__bg40001300" ows_KSIRelatedIssues="" ows_ol_Department="IT-Infrastructure" ows_KSIIssuesOperatorGroup="1;#(None)" ows_ContentType="Change" ows_IssuesAs="5" ows_Resolved="5" ows_IssuesSt="5" ows_Project_x003a__x0020_Projektnumm="k1400" ows_AddInfo="92305;#116196" ows_AddInfo_x003a_Modified_x0020_Lis="92305;#Issues" ows_AddInfo_x003a_Last_x0020_Modifie="92305;#2018-04-19 10:16:35" ows_AddInfo_x003a_Last_x0020_Modifie0="92305;#Thomas STESSL" ows_AddInfo_x003a_Open_x0020_Tasks="92305;#0" ows_AddInfo_x003a_Closed_x0020_Tasks="92305;#0" ows_AddInfo_x003a_OT_x002f_CT="92305;#0 / 0" ows_Customer_x003a__x0020_Kunde="k.A. - -" ows_Customer_x003a__x0020_ORGID="1.00000000000000" ows_Customer_x003a__x0020_KNAPP_Graz="n/a" ows_KSIShowEInsight="0" ows_KSIStatus="string;#Specifying" ows_KSIRelatedChanges="" ows_Project_x003a__x0020_Projektmana="n/a" ows_Project_x003a__x0020_Techn_x002e="RIEDNER Franz-Alois" ows_KSIDocuRequired="0" ows_Project_x003a__x0020_Status="verr_1112" ows_Project_x003a__x0020_ORGID="323.000000000000" ows_Customer_x003a__x0020_Aktiv="JA" ows_KSIEscalation="0" ows_AddInfo_x003a_KSIAllTimeExpendit="92305;#0" ows_Created="2017-06-01 10:10:12" ows_Project_x003a__x0020_Techn_x002e0="riedner" ows_IssuePar="5" ows_KSIHotlineHandoverRequired="0" ows_ID="116196" ows_Modified="2018-04-19 10:16:35" ows_Editor="2233;#Thomas STESSL" ows_owshiddenversion="4" ows__UIVersion="2048" ows__UIVersionString="4.0" ows_Attachments="1" ows__ModerationStatus="0" ows_LinkTitleNoMenu="_Test" ows_LinkTitleVersionNoMenu="_Test" ows_LinkTitle="_Test" ows_LinkTitle2="_Test" ows_SelectTitle="116196" ows_Order="11619600.0000000" ows_GUID="{003CC3BA-B1D3-4781-A50D-F7E86BF22932}" ows_IssueID="116196" ows_IsCurrent="1" ows_FileRef="116196;#customer/issuetracking/Lists/Issues/116196_.000" ows_FileDirRef="116196;#customer/issuetracking/Lists/Issues" ows_Last_x0020_Modified="116196;#2017-06-01 10:10:12" ows_Created_x0020_Date="116196;#2017-06-01 10:10:12" ows_FSObjType="116196;#0" ows_SortBehavior="116196;#0" ows_PermMask="0x7fffffffffffffff" ows_FileLeafRef="116196;#116196_.000" ows_UniqueId="116196;#{B2EB11D3-686E-4455-B995-B0A113C54A1F}" ows_ProgId="116196;#" ows_ScopeId="116196;#{7BB41684-F151-41D4-9A61-2D650D8F8798}" ows__EditMenuTableStart="116196_.000" ows__EditMenuTableStart2="116196" ows__EditMenuTableEnd="116196" ows_LinkFilenameNoMenu="116196_.000" ows_LinkFilename="116196_.000" ows_LinkFilename2="116196_.000" ows_ServerUrl="/customer/issuetracking/Lists/Issues/116196_.000" ows_EncodedAbsUrl="http://knlemosswebtest04:8081/customer/issuetracking/Lists/Issues/116196_.000" ows_BaseName="116196_" ows_MetaInfo="116196;#" ows__Level="1" ows__IsCurrentVersion="1" ows_ItemChildCount="116196;#0" ows_FolderChildCount="116196;#0" ows_LinkIssueIDNoMenu="116196" xmlns:z="#RowsetSchema" />
    	</Result>
    </Results>
    So, the connection to the list works, because the data in "z:row" is the actual data of the list-item.

    Thursday, April 19, 2018 9:06 AM
  • Hi,

    To update the lookup fields, the Xml format as below:

    <Field Name='LookupField'>1;#Test</Field >

    or

    <Field Name='LookupField'>1</Field >

    For SharePoint 2013, I suggest you use CSOM C# or REST API to update list items in client side.

    The following articles for your reference:

    https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/complete-basic-operations-using-sharepoint-client-library-code#sharepoint-list-item-tasks

    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/40833576-5853-4ca4-95cf-b5b1d69f465f/sharepoint-rest-and-c-sample-to-update-list-item?forum=sharepointdevelopment

    Best Regards,

    Dennis


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.


    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.

    Friday, April 20, 2018 9:45 AM
    Moderator
  • Hi,

    Would you please provide us with an update on the status of your issue?

    Best Regards,

    Dennis


    Please remember to mark the replies as answers if they helped. If you have feedback for TechNet Subscriber Support, contact tnsf@microsoft.com.


    Click here to learn more. Visit the dedicated forum to share, explore and talk to experts about Microsoft Teams.

    Tuesday, April 24, 2018 8:22 AM
    Moderator
  • Using CSOM now, via Webservice i did not get it set the value.
    Monday, May 28, 2018 1:11 PM