I have successfully used the AD web service to populate my:Tasks/my:UserInfo/my:DisplayName and display it on a form in a text field
I have a button that then run the data connection "GetListItemsStr" to query a SP list.
I used the query builder to create the xml
When I use this query string it return all items:
<query><columns><column name='ID'/><column name='Title'/><column name='Status'/><column name='DueDate'/><column name='CalendarItem'/><column name='Modified_x0020_Comment'/><column name='Status'/><column name='AssignedTo'/></columns><filter><ge><column name='Editor'/><value>""</value></ge></filter><sort><column name='DueDate' order='ASC'/></sort></query>
When I use a this query generated by querybuilder to filter to the value of the editor field below, I get the error below:
concat("<query><columns><column name='ID'/><column name='Title'/><column name='Status'/><column name='DueDate'/><column name='CalendarItem'/><column name='Modified_x0020_Comment'/><column name='Status'/><column name='AssignedTo'/></columns><filter><eq><column name='Editor'/><value>", xdXDocument:get-DOM()/my:Tasks/my:UserInfo/my:DisplayName ,"</value></eq></filter><sort><column name='DueDate' order='ASC'/></sort></query>")
The query cannot be run for the following DataObject: GetListItemsStr
InfoPath cannot run the specified query.
The SOAP response indicates that an error occurred on the server:
System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.LoadXml(String xml)
at Qdabra.Dbxl.WebService.QuerySharePointService.XmlFromString(String str)
at Qdabra.Dbxl.WebService.QuerySharePointService.GetListItemsStr(String listUrl, String query, String queryOptions)
--- End of inner exception stack trace ---
Any help would be apprecitated