<?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 Arcade error trapping - Test execution error: Unknown Error. Verify test data.  query in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcade-error-trapping-test-execution-error-unknown/m-p/1326196#M54424</link>
    <description>&lt;P&gt;I have an arcade statement, which was working fine.&amp;nbsp; However, the query function on the rest end points broke, which of course caused issues with my arcade statement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I opened the arcade and was getting &lt;STRONG&gt;"Test execution error: Unknown Error. Verify test data."&lt;/STRONG&gt;&amp;nbsp;when I did a test run.&lt;/P&gt;&lt;P&gt;I attempted to catch the error with &lt;STRONG&gt;IsEmpty&lt;/STRONG&gt;, that did not seem to work.&amp;nbsp; Trying to think of the best way to handle a broken rest service and return something to the user.&amp;nbsp; Which of course is hard to test, as I can't plan for when a rest endpoint might break.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RyanBohan_3-1694105093433.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/80123i147AB56220B9D8CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RyanBohan_3-1694105093433.png" alt="RyanBohan_3-1694105093433.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Looking at the &lt;A href="https://hazards.fema.gov/gis/nfhl/rest/services/public/NFHL/MapServer/28/query?where=1%3D1&amp;amp;text=&amp;amp;objectIds=&amp;amp;time=&amp;amp;geometry=&amp;amp;geometryType=esriGeometryEnvelope&amp;amp;inSR=&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;distance=&amp;amp;units=esriSRUnit_Foot&amp;amp;relationParam=&amp;amp;outFields=*&amp;amp;returnGeometry=true&amp;amp;returnTrueCurves=false&amp;amp;maxAllowableOffset=&amp;amp;geometryPrecision=&amp;amp;outSR=&amp;amp;havingClause=&amp;amp;returnIdsOnly=false&amp;amp;returnCountOnly=false&amp;amp;orderByFields=&amp;amp;groupByFieldsForStatistics=&amp;amp;outStatistics=&amp;amp;returnZ=false&amp;amp;returnM=false&amp;amp;gdbVersion=&amp;amp;historicMoment=&amp;amp;returnDistinctValues=false&amp;amp;resultOffset=&amp;amp;resultRecordCount=&amp;amp;returnExtentOnly=false&amp;amp;datumTransformation=&amp;amp;parameterValues=&amp;amp;rangeValues=&amp;amp;quantizationParameters=&amp;amp;featureEncoding=esriDefault&amp;amp;f=html" target="_self"&gt;FEMA Rest Service&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RyanBohan_2-1694104871960.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/80122i6F7A5F369DC190C5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RyanBohan_2-1694104871960.png" alt="RyanBohan_2-1694104871960.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I know it would be best to fix the rest service, but it's not my organization.&amp;nbsp; So, I am looking for a way in arcade to &lt;STRONG&gt;catch any errors and display a default message "&lt;FONT face="inherit"&gt;High demand on layer, results &lt;/FONT&gt;unavailable.&lt;FONT face="inherit"&gt;"&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Sep 2023 19:42:04 GMT</pubDate>
    <dc:creator>RyanBohan</dc:creator>
    <dc:date>2023-09-07T19:42:04Z</dc:date>
    <item>
      <title>Arcade error trapping - Test execution error: Unknown Error. Verify test data.  query</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-error-trapping-test-execution-error-unknown/m-p/1326196#M54424</link>
      <description>&lt;P&gt;I have an arcade statement, which was working fine.&amp;nbsp; However, the query function on the rest end points broke, which of course caused issues with my arcade statement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I opened the arcade and was getting &lt;STRONG&gt;"Test execution error: Unknown Error. Verify test data."&lt;/STRONG&gt;&amp;nbsp;when I did a test run.&lt;/P&gt;&lt;P&gt;I attempted to catch the error with &lt;STRONG&gt;IsEmpty&lt;/STRONG&gt;, that did not seem to work.&amp;nbsp; Trying to think of the best way to handle a broken rest service and return something to the user.&amp;nbsp; Which of course is hard to test, as I can't plan for when a rest endpoint might break.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RyanBohan_3-1694105093433.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/80123i147AB56220B9D8CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RyanBohan_3-1694105093433.png" alt="RyanBohan_3-1694105093433.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Looking at the &lt;A href="https://hazards.fema.gov/gis/nfhl/rest/services/public/NFHL/MapServer/28/query?where=1%3D1&amp;amp;text=&amp;amp;objectIds=&amp;amp;time=&amp;amp;geometry=&amp;amp;geometryType=esriGeometryEnvelope&amp;amp;inSR=&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;distance=&amp;amp;units=esriSRUnit_Foot&amp;amp;relationParam=&amp;amp;outFields=*&amp;amp;returnGeometry=true&amp;amp;returnTrueCurves=false&amp;amp;maxAllowableOffset=&amp;amp;geometryPrecision=&amp;amp;outSR=&amp;amp;havingClause=&amp;amp;returnIdsOnly=false&amp;amp;returnCountOnly=false&amp;amp;orderByFields=&amp;amp;groupByFieldsForStatistics=&amp;amp;outStatistics=&amp;amp;returnZ=false&amp;amp;returnM=false&amp;amp;gdbVersion=&amp;amp;historicMoment=&amp;amp;returnDistinctValues=false&amp;amp;resultOffset=&amp;amp;resultRecordCount=&amp;amp;returnExtentOnly=false&amp;amp;datumTransformation=&amp;amp;parameterValues=&amp;amp;rangeValues=&amp;amp;quantizationParameters=&amp;amp;featureEncoding=esriDefault&amp;amp;f=html" target="_self"&gt;FEMA Rest Service&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RyanBohan_2-1694104871960.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/80122i6F7A5F369DC190C5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RyanBohan_2-1694104871960.png" alt="RyanBohan_2-1694104871960.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I know it would be best to fix the rest service, but it's not my organization.&amp;nbsp; So, I am looking for a way in arcade to &lt;STRONG&gt;catch any errors and display a default message "&lt;FONT face="inherit"&gt;High demand on layer, results &lt;/FONT&gt;unavailable.&lt;FONT face="inherit"&gt;"&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 19:42:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-error-trapping-test-execution-error-unknown/m-p/1326196#M54424</guid>
      <dc:creator>RyanBohan</dc:creator>
      <dc:date>2023-09-07T19:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade error trapping - Test execution error: Unknown Error. Verify test data.  query</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-error-trapping-test-execution-error-unknown/m-p/1505907#M60260</link>
      <description>&lt;P&gt;I found your post and the idea below while researching something else.&amp;nbsp; Give it a kudo/vote if you think it may help!&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/add-error-handling-try-catch-to-arcade-language/idi-p/1047180" target="_blank"&gt;https://community.esri.com/t5/arcgis-pro-ideas/add-error-handling-try-catch-to-arcade-language/idi-p/1047180&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 18:42:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-error-trapping-test-execution-error-unknown/m-p/1505907#M60260</guid>
      <dc:creator>ToddW_stl</dc:creator>
      <dc:date>2024-07-16T18:42:16Z</dc:date>
    </item>
  </channel>
</rss>

