<?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: Getting the underlying web error when querying a feature layer? in Qt Maps SDK Questions</title>
    <link>https://community.esri.com/t5/qt-maps-sdk-questions/getting-the-underlying-web-error-when-querying-a/m-p/213040#M1064</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/18051" target="_blank"&gt;Jan Tschada&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;No, unfortunately there is no guaranteed way to get the http service error from the Qt API. In some cases, this information will be part of the error object, and you can connect to that like follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="token function"&gt;connect&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;featureTable&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;FeatureTable&lt;SPAN class="operator token"&gt;::&lt;/SPAN&gt;errorOccurred&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;const&lt;/SPAN&gt; Error&lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt; error&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
  &lt;SPAN class="token function"&gt;qDebug&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"FeatureTable error:"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; error&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;message&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; error&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;additionalMessage&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But however, it is not a guarantee that this information will be included with the error object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 10:27:49 GMT</pubDate>
    <dc:creator>JamesBallard1</dc:creator>
    <dc:date>2021-12-11T10:27:49Z</dc:date>
    <item>
      <title>Getting the underlying web error when querying a feature layer?</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/getting-the-underlying-web-error-when-querying-a/m-p/213039#M1063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We just ran into a situation where the Qt app is constructing an invalid "where clause" and the underlying web error need to be handled. For instance, when querying a "date field" we have to use the "event_date = DATE &lt;SPAN style="background-color: #ffffff; border: 0px;"&gt;'2020-02-29' "&lt;/SPAN&gt;&amp;nbsp;or "event_date = TIMESTAMP &lt;SPAN style="background-color: #ffffff; border: 0px;"&gt;'2020-02-29&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px;"&gt;00:00:00'&lt;/SPAN&gt;&amp;nbsp;" SQL expressions. So when we were using the UNIX timestamp directly like "event_date=1582934400" the REST endpoint returned:&lt;/P&gt;&lt;PRE style="color: #000000;"&gt;{   "error" :    {     "code" : 400,      "message" : "Cannot perform query. Invalid query parameters.",      "details" : [       "Unable to perform query. Please check your parameters."     ]   } }&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;The FeatureTable::queryFeaturesCompleted slot is called and gets an uninitialized FeatureQueryResult instance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We took a look at the current ArcGIS Runtime .NET implementation and the runtime is throwing a web exception wrapping the returned details.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is it possible to get the underlying web error by using the current Qt implementation?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 16:14:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/getting-the-underlying-web-error-when-querying-a/m-p/213039#M1063</guid>
      <dc:creator>Jan-Tschada</dc:creator>
      <dc:date>2020-10-29T16:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the underlying web error when querying a feature layer?</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/getting-the-underlying-web-error-when-querying-a/m-p/213040#M1064</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/18051" target="_blank"&gt;Jan Tschada&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;No, unfortunately there is no guaranteed way to get the http service error from the Qt API. In some cases, this information will be part of the error object, and you can connect to that like follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="token function"&gt;connect&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;featureTable&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;FeatureTable&lt;SPAN class="operator token"&gt;::&lt;/SPAN&gt;errorOccurred&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;const&lt;/SPAN&gt; Error&lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt; error&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
  &lt;SPAN class="token function"&gt;qDebug&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"FeatureTable error:"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; error&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;message&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt; error&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;additionalMessage&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But however, it is not a guarantee that this information will be included with the error object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:27:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/getting-the-underlying-web-error-when-querying-a/m-p/213040#M1064</guid>
      <dc:creator>JamesBallard1</dc:creator>
      <dc:date>2021-12-11T10:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the underlying web error when querying a feature layer?</title>
      <link>https://community.esri.com/t5/qt-maps-sdk-questions/getting-the-underlying-web-error-when-querying-a/m-p/1000770#M3816</link>
      <description>&lt;P&gt;Works like a charm thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 17:00:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/qt-maps-sdk-questions/getting-the-underlying-web-error-when-querying-a/m-p/1000770#M3816</guid>
      <dc:creator>Jan-Tschada</dc:creator>
      <dc:date>2020-11-12T17:00:57Z</dc:date>
    </item>
  </channel>
</rss>

