I'm using the UpdateListItems webservice to insert items into a list but sometimes it does not return the record that was just created, normally it does. I need the ID of the record that was just made to use in a lookup of another list.
Has anyone seen this before? I only see it happening to non-SCA users. Its not my server so I don't have any backend access.
Thanks
Request:
<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/envelope/'><soap:Body><UpdateListItems xmlns='http://schemas.microsoft.com/sharepoint/soap/'><listName>COAFlight</listName><updates><Batch OnError='Continue'><Method ID='1' Cmd='New'><Field Name='Start_x0020_Time'>2015-07-02T18:25:47Z</Field><Field Name='End_x0020_Time'>2015-07-19T18:25:49Z</Field><Field Name='Flight_x0020_Hours'>408</Field> ....... <Field Name='OpAltitudeAGL'>13870</Field></Method></Batch></updates></UpdateListItems></soap:Body></soap:Envelope>
Response:
<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"><soap:Body><UpdateListItemsResponse xmlns=\"http://schemas.microsoft.com/sharepoint/soap/\"><UpdateListItemsResult><Results><Result ID=\"1,New\"><ErrorCode>0x00000000</ErrorCode><ID /></Result></Results></UpdateListItemsResult></UpdateListItemsResponse></soap:Body></soap:Envelope>
Working Response for reference:
<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"><soap:Body><UpdateListItemsResponse xmlns=\"http://schemas.microsoft.com/sharepoint/soap/\"><UpdateListItemsResult><Results><Result ID=\"1,New\"><ErrorCode>0x00000000</ErrorCode><ID /><z:row ows_ContentTypeId=\"0x010023DA7BA7A22FD14DA089ACA142031221008BE3582507AF344893EC30154050729B\" ows_Title=\"nonadmin3\" ows_Description=\"all fields\" ows_End_x0020_Time=\"2015-07-31 18:24:02\" ows_Start_x0020_Time=\"2015-07-01 18:24:00\" ows_FK_COA=\"923;#Development\" ows_MissionType=\"Single Aircraft\" ows_Status=\"Draft\" ows_FK_Flight=\"\" ows_Operator=\"Dev\" ows_SetPermi=\"2\" ows_SetPermi0=\"5\" ows_FK_ResearchArea=\"17;#Certification - Communications;#18;#Certification - Contingency;#16;#Certification - Airworthiness\" ows_FK_Industry=\"3;#Film – Motion picture/ Professional photography\" ows_FK_SecIndustry=\"5;#Search and Rescue\" ows_FK_DetailedResearch=\"5;#4.4.1.1;#6;#4.8;#9;#4.4.1.2;#10;#4.4.1.2\" ows_ID=\"284\" ows_ContentType=\"COA\" ows_Modified=\"2015-07-20 18:24:23\" ows_Created=\"2015-07-20 18:24:23\" ows_Author=\"11195;#scottlusebrink\" ows_Editor=\"11195;#scottlusebrink\" ows_owshiddenversion=\"1\" ows_WorkflowVersion=\"1\" ows__UIVersion=\"512\" ows__UIVersionString=\"1.0\" ows_Attachments=\"0\" ows__ModerationStatus=\"0\" ows_LinkTitleNoMenu=\"nonadmin3\" ows_LinkTitle=\"nonadmin3\" ows_LinkTitle2=\"nonadmin3\" ows_SelectTitle=\"284\" ows_Order=\"28400.0000000000\" ows_GUID=\"{A25835D1-ECAA-4135-AFE0-B135E59DAA7B}\" ows_FileRef=\"284;#faa/uasts/Lists/COAMission/284_.000\" ows_FileDirRef=\"284;#faa/uasts/Lists/COAMission\" ows_Last_x0020_Modified=\"284;#2015-07-20 18:24:23\" ows_Created_x0020_Date=\"284;#2015-07-20 18:24:23\" ows_FSObjType=\"284;#0\" ows_SortBehavior=\"284;#0\" ows_PermMask=\"0x1b03c4312ef\" ows_FileLeafRef=\"284;#284_.000\" ows_UniqueId=\"284;#{4E6BEC64-97A4-4334-9DB1-962B00D6BFAF}\" ows_ProgId=\"284;#\" ows_ScopeId=\"284;#{7631D070-6DC8-4E5D-A619-2205001AB4AD}\" ows__EditMenuTableStart=\"284_.000\" ows__EditMenuTableStart2=\"284\" ows__EditMenuTableEnd=\"284\" ows_LinkFilenameNoMenu=\"284_.000\" ows_LinkFilename=\"284_.000\" ows_LinkFilename2=\"284_.000\" ows_ServerUrl=\"/faa/uasts/Lists/COAMission/284_.000\" ows_EncodedAbsUrl=\"https://ksn2.faa.gov/faa/uasts/Lists/COAMission/284_.000\" ows_BaseName=\"284_\" ows_MetaInfo=\"284;#\" ows__Level=\"1\" ows__IsCurrentVersion=\"1\" ows_ItemChildCount=\"284;#0\" ows_FolderChildCount=\"284;#0\" xmlns:z=\"#RowsetSchema\" /></Result></Results></UpdateListItemsResult></UpdateListItemsResponse></soap:Body></soap:Envelope>