<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Creating Feature Report: cannot perform query. Invalid query parameters in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/creating-feature-report-cannot-perform-query/m-p/1084143#M36183</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had the same error,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;check that you do not have any field with dash -&lt;/P&gt;&lt;P&gt;i create a survey using connect and use dash and publish&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DiegoLlamasOlivares_0-1627584509538.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/19707iD557C1C98071EEFE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DiegoLlamasOlivares_0-1627584509538.png" alt="DiegoLlamasOlivares_0-1627584509538.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;then i change the dash (-) for underscore (_) and republish&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DiegoLlamasOlivares_1-1627584554509.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/19708iC66BF085FBC1DB0E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DiegoLlamasOlivares_1-1627584554509.png" alt="DiegoLlamasOlivares_1-1627584554509.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;but in hosted feature the field was there, so I delete the fields that had dash (-) and then it worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hope this help.&lt;/P&gt;&lt;P&gt;DLL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jul 2021 18:50:02 GMT</pubDate>
    <dc:creator>DiegoLlamasOlivares</dc:creator>
    <dc:date>2021-07-29T18:50:02Z</dc:date>
    <item>
      <title>Creating Feature Report: cannot perform query. Invalid query parameters</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/creating-feature-report-cannot-perform-query/m-p/811739#M13483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Last year I created a report template which I uploaded to&amp;nbsp;&lt;A class="link-titled" href="https://survey123.arcgis.com/surveys" title="https://survey123.arcgis.com/surveys"&gt;https://survey123.arcgis.com/surveys&lt;/A&gt;&amp;nbsp;&amp;nbsp;and everything was working perfectly. I could share the reports to others. Thereafter, I recall also creating a hosted layer view of the feature service in AGOL. Dont think I made any other changes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately this year I am unable to generate any reports. I get the error message "&lt;EM&gt;Error occurred when querying data from the feature layer. Cannot perform query. Invalid query parameters.&lt;/EM&gt;"&amp;nbsp; after clicking on the "generate" report button, or viewing the sample report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At first I&amp;nbsp;thought this may be related to any permissions being changed on the layer in AGOL, but I don't think so.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I even tried downloading a sample report from Survey123 (under Mange Templates) for my dataset but that also does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions as to where my problem may lie?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/480321_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2020 09:13:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/creating-feature-report-cannot-perform-query/m-p/811739#M13483</guid>
      <dc:creator>MervynLotter</dc:creator>
      <dc:date>2020-02-05T09:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Feature Report: cannot perform query. Invalid query parameters</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/creating-feature-report-cannot-perform-query/m-p/811740#M13484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/23558"&gt;Mervyn Lotter&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Would you mind sharing&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;when is the first time you saw this issue?&lt;/LI&gt;&lt;LI&gt;before this issue, did you make any change to your survey or the template recently?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have identified a&amp;nbsp;bug after the recent &lt;A _jive_internal="true" href="https://community.esri.com/groups/survey123/blog/2020/01/22/hug-day-release"&gt;3.8 release&lt;/A&gt; on 1/22, which will raise the exactly same error message as you mentioned. Below are the conditions to reproduce the bug:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The survey is created from an existing feature service (seems this is qualified for your survey)&lt;/LI&gt;&lt;LI&gt;The underlying feature layer has not enabled owner based access control (OBAC) or it does not have the edit date field (which records the last edit time of the feature).&lt;/LI&gt;&lt;LI&gt;Before previewing or generating the report, you didn't manually sort any field in the feature table of the Data tab.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please check if this is what you encountered? Note: if you can work around this error by just manually sort any field in the feature table (no matter ASC or DESC) before previewing or generating the report, then you should hit this bug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Zhifang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2020 17:25:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/creating-feature-report-cannot-perform-query/m-p/811740#M13484</guid>
      <dc:creator>ZhifangWang</dc:creator>
      <dc:date>2020-02-07T17:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Feature Report: cannot perform query. Invalid query parameters</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/creating-feature-report-cannot-perform-query/m-p/811741#M13485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zhifang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your email. The good news is that sorting the records does allow me to create my reports.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I first observed this error on the 28 January 2020.&lt;/LI&gt;&lt;LI&gt;I made changes to it in December, but to the hosted feature layer in AGOL. It would be related to layer views and permissions.&lt;/LI&gt;&lt;LI&gt;I created the original feature service in Survey123 Connect. I then later 'opened' the feature service in AGOL as described above.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;I do have web-hooks attached to the survey to notify me when&amp;nbsp; survey is being submitted.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;I cant find the edit date field in the feature service.&lt;/LI&gt;&lt;LI&gt;I had not sorted the data by any field before trying to generate the report.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interestingly, when i now look at the Overview tab in &lt;A href="http://www.survey123.arcgis.com,"&gt;www.survey123.arcgis.com,&lt;/A&gt;&amp;nbsp;then under Surveys Submitted, it now says "&lt;EM&gt;This feature is not available. The creator field cannot be found in the feature service."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/480703_pastedImage_3.png" /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Feb 2020 13:33:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/creating-feature-report-cannot-perform-query/m-p/811741#M13485</guid>
      <dc:creator>MervynLotter</dc:creator>
      <dc:date>2020-02-08T13:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Feature Report: cannot perform query. Invalid query parameters</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/creating-feature-report-cannot-perform-query/m-p/811742#M13486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;Mervyn,&lt;/P&gt;&lt;P&gt;Thank you for the information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to your description, I can confirm this is the bug I mentioned in 3.8 release. We already planned a hotfix to address this in a few days, will let you know once it's released. In the meantime, you can use the workaround (manually sort any field in the table first) to generate a report as needed, the result will be the same after the hotfix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the Overview page, since the underlying feature service does not have an edit date field from editor tracking, what you see is a by-design behavior for now because that we cannot extract related info if there is no creator, creation date, edit date fields. If you have any use case or question (for example, regardless of editor tracking fields, you do have equivalent fields by your own design), please don't hesitate to let us know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Zhifang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2020 04:22:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/creating-feature-report-cannot-perform-query/m-p/811742#M13486</guid>
      <dc:creator>ZhifangWang</dc:creator>
      <dc:date>2020-02-10T04:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Feature Report: cannot perform query. Invalid query parameters</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/creating-feature-report-cannot-perform-query/m-p/811743#M13487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;Hi Mervyn,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;We fix to this issue is now available on the Survey123 website, you should be able to generate the report without doing any additional steps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;Zhifang&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2020 02:20:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/creating-feature-report-cannot-perform-query/m-p/811743#M13487</guid>
      <dc:creator>ZhifangWang</dc:creator>
      <dc:date>2020-02-12T02:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Feature Report: cannot perform query. Invalid query parameters</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/creating-feature-report-cannot-perform-query/m-p/811744#M13488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zhifang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Works like a charm once again. Thanks so much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Mervyn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2020 07:28:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/creating-feature-report-cannot-perform-query/m-p/811744#M13488</guid>
      <dc:creator>MervynLotter</dc:creator>
      <dc:date>2020-02-12T07:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Feature Report: cannot perform query. Invalid query parameters</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/creating-feature-report-cannot-perform-query/m-p/1008571#M31549</link>
      <description>&lt;P&gt;I'm also having this issue.&amp;nbsp; When trying to upload a Report template, I get the error: "Error: An error occurred when querying data from the feature layer. An error occurred when querying data from the feature layer. 400: Cannot perform query. Invalid query parameters."&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20201210_CSJShelterBuildingSurvey_Error_ManageTemplates.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/1907i436326BDA875AECD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="20201210_CSJShelterBuildingSurvey_Error_ManageTemplates.png" alt="20201210_CSJShelterBuildingSurvey_Error_ManageTemplates.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Tracing the network call, the call is failing on this parameter:&amp;nbsp; "queryParameters":{"orderByFields":"||EditDate_2 DESC, OBJECTID ASC","objectIds":"43"}&amp;nbsp; I am wondering if possibly the "||" in the query parameters is causing the error?&amp;nbsp; The report template that I'm trying to upload is very basic with no complicated syntax, for testing purposes:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20201210_Building_template_test.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/1908i94114F1507528501/image-size/medium?v=v2&amp;amp;px=400" role="button" title="20201210_Building_template_test.png" alt="20201210_Building_template_test.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;From the advice in this thread, I manually sorted a column in the survey table before uploading the report template, but I am still getting the same error.&amp;nbsp; The survey was published with version 3.10.&amp;nbsp; Any advice is greatly appreciated! Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 17:19:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/creating-feature-report-cannot-perform-query/m-p/1008571#M31549</guid>
      <dc:creator>cmpalmer</dc:creator>
      <dc:date>2020-12-10T17:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Feature Report: cannot perform query. Invalid query parameters</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/creating-feature-report-cannot-perform-query/m-p/1084143#M36183</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had the same error,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;check that you do not have any field with dash -&lt;/P&gt;&lt;P&gt;i create a survey using connect and use dash and publish&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DiegoLlamasOlivares_0-1627584509538.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/19707iD557C1C98071EEFE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DiegoLlamasOlivares_0-1627584509538.png" alt="DiegoLlamasOlivares_0-1627584509538.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;then i change the dash (-) for underscore (_) and republish&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DiegoLlamasOlivares_1-1627584554509.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/19708iC66BF085FBC1DB0E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DiegoLlamasOlivares_1-1627584554509.png" alt="DiegoLlamasOlivares_1-1627584554509.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;but in hosted feature the field was there, so I delete the fields that had dash (-) and then it worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hope this help.&lt;/P&gt;&lt;P&gt;DLL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 18:50:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/creating-feature-report-cannot-perform-query/m-p/1084143#M36183</guid>
      <dc:creator>DiegoLlamasOlivares</dc:creator>
      <dc:date>2021-07-29T18:50:02Z</dc:date>
    </item>
  </channel>
</rss>

