<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Data Connections</title><link>https://www.infopathdev.com:443/forums/44.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Rest call in infopath 2013 An error occurred querying a data source.</title><link>https://www.infopathdev.com:443/forums/thread/124521.aspx</link><pubDate>Wed, 20 Oct 2021 12:45:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124521</guid><dc:creator>sb_infodev</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124521.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=124521</wfw:commentRss><description>Hi Hilary,

Thanks for your response. 
I tried it this way and it worked. 

Thanks
Snehal</description></item><item><title>Re: Rest call in infopath 2013 An error occurred querying a data source.</title><link>https://www.infopathdev.com:443/forums/thread/124515.aspx</link><pubDate>Fri, 15 Oct 2021 15:00:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124515</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124515.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=124515</wfw:commentRss><description>It is hard to guess without looking at your form, but usually what I do is drag the whole list data connection onto the form (query and data fields) and add a button that just runs the query. Then I can test the form in preview or in the browser. Set a query field, run the query, verify that there are data rows returned. From there, you may be able to figure out why your field is blank.</description></item><item><title>Re: Rest call in infopath 2013 An error occurred querying a data source.</title><link>https://www.infopathdev.com:443/forums/thread/124514.aspx</link><pubDate>Fri, 15 Oct 2021 11:14:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124514</guid><dc:creator>sb_infodev</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124514.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=124514</wfw:commentRss><description>Hi Hilary,

thanks for your response.
But setting the query field doesn&amp;#39;t work.
I even tried a simple field like ID, but even that did not work.
Step 1) set the field -? field ID = 114 ( query field of the secondary source)
Step2) Query data connection
step 3) set a field with the data field of that connection.

The field is empty.
Please help and let me know if I am doing something wrong.</description></item><item><title>Re: Rest call in infopath 2013 An error occurred querying a data source.</title><link>https://www.infopathdev.com:443/forums/thread/124512.aspx</link><pubDate>Thu, 14 Oct 2021 14:39:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124512</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124512.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=124512</wfw:commentRss><description>Is this SharePoint online or on-prem? If online, the REST query will probably not work. If on-prem, you should have your SharePoint admin take a look at the logs to determine the issue. However, since this is a simple equivalence query you would not need to use REST at all. Add a list data connection to your list, but on the final dialog, deselect the checkbox to query for data on form open. Then, in your form, at the same point you were executing your REST query, set the list query field to the value you need, and then run the list query. The list query will only return data that matches on the query field.</description></item><item><title>Rest call in infopath 2013 An error occurred querying a data source.</title><link>https://www.infopathdev.com:443/forums/thread/124510.aspx</link><pubDate>Wed, 13 Oct 2021 07:40:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124510</guid><dc:creator>sb_infodev</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124510.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=124510</wfw:commentRss><description>Hi All,

I have a sharepoint list with around 2000 records( lets say list A), I have to check whether the data entered in the new item for LIST A already exists in the same list (List A).
the normal data connection to the list takes a lot of time to load. So I wrote a simple  REST call just to get the specific item. 

https://(Site name here )/_api/web/lists/GetByTitle(&amp;#39;LISTA&amp;#39;)/Items?$select=ID&amp;amp;$filter=hidden_bAi eq &amp;#39;02-12&amp;#39;

This query works in the browser, even in the infopath form I am modifying this rest call to update the query and the querying it .
I am also printing it in a variable tp check if the REST call is correct and it is, it works in browser.
But when I publish the fomr, it doesnt work.
An error occurred querying a data source.

Can someone please help me.

Thanks.</description></item></channel></rss>