Hi Folks,
I have what I hope is a simple issue. I am trying to learn the Call Web Service action so that I can use it to act with high level credentials on behalf of the workflow initiator. I have a CWS action that uses the GetListItems method and returnes what seems like good XML from the target list. When I query the XML, however, I get the following error...
The execution returned an unexpected error. '/defaultNS:listitems/defaultNS:rs:data/defaultNS:z:row/@ows_ID ' has an invalid token.
The souce/returned XML (redacted) that I am querying is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<listitems
xmlns="http://schemas.microsoft.com/sharepoint/soap/"
xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
xmlns:rs="urn:schemas-microsoft-com:rowset"
xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882"
xmlns:z="#RowsetSchema">
<rs:data ItemCount="1">
<z:row
ows_ID="34"
ows_Field1="34.0000000000000"
ows_EmpID="****"
ows_FirstName="Patrick"
ows_LastName="Kelligan"
ows_MiddleInitial="S"
ows_FullName="Kelligan, Patrick"
ows_LeidosEmail="****@****.com"
ows_AKOEmail="****@mail.mil"
ows_UserID="****"
ows_EmpIsSupervisor="1"
ows_Gender="Male"
ows_StartDate="2010-08-30 00:00:00"
ows_FPCard="1"
ows_HomeOfRecord="****, NC"
ows_KuwaitDL="0"
ows_HeavyDL="0"
ows_PickupDL="0"
ows_IssuedPhone="0"
ows_CellNumber="****"
ows_IssuedLaptop="0" ows_Active="1"
ows_Status="PDY"
ows_Clearance="2.00000000000000"
ows_Org="1.00000000000000"
ows_Position="18.0000000000000"
ows_Section="6.00000000000000"
ows_Supervisor="81.0000000000000"
ows_CAC_YesNo="0"
ows_LinkToWAD="https://vector.leidos.com/ASP/_layouts/FormServer.aspx?XmlLocation=/ASP/WorkAuthDoc/WAD_411191_Sarraga-Nieves_Hector_26June2016.xml&OpenIn=browser"
ows_NewFlag="1.00000000000000"
ows_ContractName="ASP"
ows_PhysicalLocation="****, NC"
ows_ContractExpDate="2020-02-29 00:00:00"
ows_TimeBank="1"
ows_LastPaidAirfare="2014-06-02 00:00:00"
ows_SharePointEditor="Kelligan, Patrick S."
ows_SharePointAuthor="****"
ows_SharePointModifiedDate="2015-11-19 23:25:00"
ows_SharePointCreatedDate="2014-04-03 17:56:00"
ows__Level="1"
ows_MetaInfo="34;#"
ows_owshiddenversion="149"
ows_Created="2015-11-23 22:11:35"
ows_PermMask="0x7fffffffffffffff"
ows_FileRef="34;#ASP/PMO/AdminWebDB/Lists/tbl_Westerners/34_.000"
ows__ModerationStatus="0"
ows_UniqueId="34;#{677AB0AA-30E5-4454-85C8-7274C3A3C326}"
ows_FSObjType="34;#0"
ows_Created_x0020_Date="34;#2015-11-23 22:11:35"
ows_Modified="2019-12-19 19:38:59"
ows_FileLeafRef="34;#34_.000"
/>
</rs:data>
</listitems>
I used the Xpath builder and the Tree view to select and apply the ows_ID node. Here is the XPath that resulted from "Apply"...
/defaultNS:listitems/defaultNS:rs:data/defaultNS:z:row/@ows_ID
The XPath throws an error in both preview and publish.
Any assistance would be greatly appreciated.
Thanks and Regards,
Patrick Kelligan


