<?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: GeometryEngine 3.15 union error when using try-catch in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometryengine-3-15-union-error-when-using-try/m-p/588402#M54971</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This hasn't been fixed because there hasn't been a bug report logged for it. Once somebody logs as a bug it will be looked at and fixed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jul 2016 20:37:07 GMT</pubDate>
    <dc:creator>KristianEkenes</dc:creator>
    <dc:date>2016-07-07T20:37:07Z</dc:date>
    <item>
      <title>GeometryEngine 3.15 union error when using try-catch</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometryengine-3-15-union-error-when-using-try/m-p/588397#M54966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried the GeometryEngine.union method (within JavaScript 3.15 API) but it throws the following error when it is placed within a try-catch statement:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;TypeError: Unable to get property 'hq' of undefined or null reference &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems to work when not placed within a try-catch, but since it is throwing this error I'm concerned about using it within a production application. Also, the equivalent Union method in the ArcGIS Server GeometryService does not throw an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought the error might be due to undefined spatial references in the array of geometries passed to it, but I have checked and they are all defined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone please advise why this error is being thrown?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;arrayUtils.forEach(AdviceGlobal.savedFeaturesGraphicsLayer.graphics, function (savedGraphic) {
 // Define spatial reference for geometryEngine
 var thisGeometry = savedGraphic.geometry;
 console.log(thisGeometry.spatialReference);
 if (thisGeometry.spatialReference == null) {
&amp;nbsp; thisGeometry.spatialReference = map.spatialReference;
 }
 geometryToCapture.push(thisGeometry);
});
// Try geometryEngine
try {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var unionedGeometry = geometryEngine.union(geometryToCapture);
&amp;nbsp;&amp;nbsp;&amp;nbsp; saveFeature(unionedGeometry);
}
catch (e) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; onUnionError(e);
}&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:16:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometryengine-3-15-union-error-when-using-try/m-p/588397#M54966</guid>
      <dc:creator>AndrewBiggins</dc:creator>
      <dc:date>2021-12-12T01:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: GeometryEngine 3.15 union error when using try-catch</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometryengine-3-15-union-error-when-using-try/m-p/588398#M54967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I too have had the same issue, which has been occurring since geometryEngine's introduction in 3.13.&amp;nbsp; I hadn't noticed (and therefore can't verify) the try/catch issue since my code doesn't have any of those clauses around this operation.&amp;nbsp; My code executes the combine operation inside of a callback from a QueryTask, so there's probably a try/catch somewhere up the call stack in the JavaScript API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since I'm not the only person this is happening to, I was emboldened to look into this further.&amp;nbsp; Unfortunately, the code for geometryEngine is much too obfuscated to readily understand what's going on, but here's the function where things foul up:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;b.prototype.iL=function(a){
 for(var d=[],c=[],h=this.sn&lt;A&gt;,l=b.bc(h),g=0;g&amp;lt;l.length;g++){
&amp;nbsp; var m=l&lt;G&gt;,n=h&lt;M&gt;;&lt;/M&gt;&lt;/G&gt;&lt;/A&gt;
&amp;nbsp; if(this.Fc||1E4&amp;lt;n.hq&amp;amp;&amp;amp;1&amp;lt;n.Ci.length){
&amp;nbsp;&amp;nbsp; this.bp&lt;A&gt;-=n.Ci.length;&lt;/A&gt;
&amp;nbsp;&amp;nbsp; for(this.Qo-=n.Ci.length;0&amp;lt;n.Ci.length;)
&amp;nbsp;&amp;nbsp;&amp;nbsp; d.push(n.Cv().hw),n.OQ();
&amp;nbsp;&amp;nbsp; c.push(m)
&amp;nbsp; }
 }
 for(g=0;g&amp;lt;c.length;g++)
&amp;nbsp; delete h[c&lt;G&gt;];&lt;/G&gt;
 return d
};&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error is thrown when comparing if 1E4 is less than n.hq, and occurs because n is undefined.&amp;nbsp; If we look further up, we see n was set to the value of h&lt;M&gt;...that is, an element of some array.&amp;nbsp; In my case, h was an array with a length of 4, but elements with index 0, 1, and 2 were undefined.&amp;nbsp; However, this code wrongly assumes all the elements in the array it references are defined...hence the error.&lt;/M&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use a locally hosted version of the API, and so I tweaked it a little to check for a valid value of n before proceeding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore, the original code (which you can ctrl-f to find):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;if(this.Fc||1E4&amp;lt;n.hq&amp;amp;&amp;amp;1&amp;lt;n.Ci.length)&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;became&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;if((n)&amp;amp;&amp;amp;(this.Fc||1E4&amp;lt;n.hq&amp;amp;&amp;amp;1&amp;lt;n.Ci.length))&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This appears to have fixed the problem, although I haven't performed any rigorous testing...as such, if you try this, proceed with caution.&amp;nbsp; Also, if you do, you'll probably need to delete temporary internet files before reloading your app to ensure you get the updated version.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:16:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometryengine-3-15-union-error-when-using-try/m-p/588398#M54967</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2021-12-12T01:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: GeometryEngine 3.15 union error when using try-catch</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometryengine-3-15-union-error-when-using-try/m-p/588399#M54968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ESRI did not fix this bug in version 3.16 of the ArcGIS API for JavaScript.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 14:58:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometryengine-3-15-union-error-when-using-try/m-p/588399#M54968</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2016-04-08T14:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: GeometryEngine 3.15 union error when using try-catch</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometryengine-3-15-union-error-when-using-try/m-p/588400#M54969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ESRI has not fixed this bug in version 3.17 of the ArcGIS API for JavaScript, either.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 16:47:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometryengine-3-15-union-error-when-using-try/m-p/588400#M54969</guid>
      <dc:creator>KenDoman</dc:creator>
      <dc:date>2016-07-07T16:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: GeometryEngine 3.15 union error when using try-catch</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometryengine-3-15-union-error-when-using-try/m-p/588401#M54970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried simplifying the geometry before doing it union?&lt;/P&gt;&lt;P&gt;Before pushing the geometry to array&amp;nbsp; '&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f6f6f6;"&gt;geometryToCapture'&lt;/SPAN&gt; simplify using geometryEngine and if the result is valid then only consider that geometry for union.&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f6f6f6;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 19:42:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometryengine-3-15-union-error-when-using-try/m-p/588401#M54970</guid>
      <dc:creator>SumitZ</dc:creator>
      <dc:date>2016-07-07T19:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: GeometryEngine 3.15 union error when using try-catch</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometryengine-3-15-union-error-when-using-try/m-p/588402#M54971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This hasn't been fixed because there hasn't been a bug report logged for it. Once somebody logs as a bug it will be looked at and fixed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 20:37:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometryengine-3-15-union-error-when-using-try/m-p/588402#M54971</guid>
      <dc:creator>KristianEkenes</dc:creator>
      <dc:date>2016-07-07T20:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: GeometryEngine 3.15 union error when using try-catch</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometryengine-3-15-union-error-when-using-try/m-p/588403#M54972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ken...I also have confirmed this is still an issue in 3.17.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 17:52:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometryengine-3-15-union-error-when-using-try/m-p/588403#M54972</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2016-07-29T17:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: GeometryEngine 3.15 union error when using try-catch</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometryengine-3-15-union-error-when-using-try/m-p/588404#M54973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This still seems to be an issue with 3.21?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to do a simple union of two polygons and I get a TypeError at the exact same line as shown above by Joel Bennett. I don't have any try-catch and the spatialReference (32188) is the same for both polygons. I tried geometryEngine.simplify on each of those polygons before doing a union on them, but it didn't help. The union of the GeometryService works fine. What am I doing wrong with geometryEngine.union?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update: I tried to figure out how I could apply a fix to that problem function at runtime, but it's not accessible from outside geometryEngine. So I ended up doing something similar to Joel Bennet. I recreated my own version of the geometryEngine (I called it app.geometryEngine), replaced the define at the top from esri/geometry/geometryEngine to app/geometryEngine and also added the "if (n)" at the same problem line. Everything seems fine now. Will update if that changes in the future.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 19:23:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometryengine-3-15-union-error-when-using-try/m-p/588404#M54973</guid>
      <dc:creator>YohanBienvenue</dc:creator>
      <dc:date>2017-09-13T19:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: GeometryEngine 3.15 union error when using try-catch</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometryengine-3-15-union-error-when-using-try/m-p/588405#M54974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've missed a few releases, being busy with other things, but have found this is still an issue in 3.23.&amp;nbsp; I haven't&amp;nbsp;tried union this time around, but it happens with buffer.&amp;nbsp;The workaround is still the same, although some variable names have changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look for&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt;&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;Ec&lt;SPAN class="operator token"&gt;||&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1E4&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;u&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;jq&lt;SPAN class="operator token"&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;u&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Ci&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;length&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Replace with&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;u&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt;&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;Ec&lt;SPAN class="operator token"&gt;||&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1E4&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;u&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;jq&lt;SPAN class="operator token"&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;u&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Ci&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;length&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jan 2018 23:50:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometryengine-3-15-union-error-when-using-try/m-p/588405#M54974</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2018-01-16T23:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: GeometryEngine 3.15 union error when using try-catch</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometryengine-3-15-union-error-when-using-try/m-p/588406#M54975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just tested this out with 3.23, 4.6, 3.24, and 4.7 in Chrome, FF, Edge, IE11 and can't repro. Do you have a repro case to test with?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's possible this was already fixed somewhere along the line. Tried union, buffer, and geodesicBuffer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2018 17:26:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometryengine-3-15-union-error-when-using-try/m-p/588406#M54975</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2018-04-13T17:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: GeometryEngine 3.15 union error when using try-catch</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometryengine-3-15-union-error-when-using-try/m-p/588407#M54976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have managed to discover that this is a conflict between the api and 3rd party js.&lt;/P&gt;&lt;P&gt;remove the&amp;nbsp;geoxml3.js script and it works&lt;/P&gt;&lt;P&gt;add it and it fails&lt;/P&gt;&lt;DIV class="" style="color: #20124d; background-color: #ffffff; font-size: small;"&gt;version 3.xx&amp;nbsp;&lt;A data-saferedirecturl="https://www.google.com/url?hl=en&amp;amp;q=https://jsfiddle.net/orengal/k6ssdqcL&amp;amp;source=gmail&amp;amp;ust=1523851520219000&amp;amp;usg=AFQjCNFK9759qJRxr52R8TWTP5V8qvMQgw" href="https://jsfiddle.net/orengal/k6ssdqcL" style="color: #1155cc;" target="_blank"&gt;https://jsfiddle.net/orengal/k6ssdqcL&lt;/A&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #20124d; background-color: #ffffff; font-size: small;"&gt;version 4.xx&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A data-saferedirecturl="https://www.google.com/url?hl=en&amp;amp;q=https://jsfiddle.net/orengal/ph7oenz7&amp;amp;source=gmail&amp;amp;ust=1523851520219000&amp;amp;usg=AFQjCNG4yNUdmlsg5SuPrDN4S-NmGmANGQ" href="https://jsfiddle.net/orengal/ph7oenz7" style="color: #1155cc;" target="_blank"&gt;https://jsfiddle.net/orengal/ph7oenz7&lt;/A&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #20124d; background-color: #ffffff; font-size: small;"&gt;I am using the workaround of Joel Bennet on both the APIS.&amp;nbsp;Good job Joel!&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Apr 2018 04:11:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometryengine-3-15-union-error-when-using-try/m-p/588407#M54976</guid>
      <dc:creator>OrenGal</dc:creator>
      <dc:date>2018-04-15T04:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: GeometryEngine 3.15 union error when using try-catch</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometryengine-3-15-union-error-when-using-try/m-p/588408#M54977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem still occurs in version 3.24, using geodesicBuffer this time (see also attached image).&amp;nbsp; I am not using third party modules.&amp;nbsp; The fix appears to be the same:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look&amp;nbsp;for (note that this was wrapped over two lines in my text editor):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt;&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;Pc&lt;SPAN class="operator token"&gt;||&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1E4&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;u&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Ds&lt;SPAN class="operator token"&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;u&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Pj&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;length&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-javascript line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;u&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt;&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;Pc&lt;SPAN class="operator token"&gt;||&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1E4&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;u&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Ds&lt;SPAN class="operator token"&gt;&amp;amp;&amp;amp;&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;u&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Pj&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;length&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Windows 10, IE 11&lt;/P&gt;&lt;P&gt;Parameters for geodesicBuffer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;geometry (string representation; an actual Polygon instance was passed):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"{"rings":[[[-17579866.91,2431821.3332],[-17579898.065899998,2431640.692400001],[-17579953.4001,2431648.533399999],[-17579955.833,2431635.3517999984],[-17580002.9127,2431644.161800001],[-17580004.8609,2431633.4224999994],[-17580024.7616,2431635.3834000006],[-17580029.1474,2431599.7437999993],[-17580055.357,2431604.640299998],[-17580035.3918,2431736.4585999995],[-17580027.1143,2431788.6972999982],[-17580007.9076,2431902.6317999996],[-17579983.056,2431899.3718999997],[-17579989.3852,2431863.747299999],[-17579983.7298,2431862.969900001],[-17579984.853,2431854.5929999985],[-17579920.7811,2431844.3082999997],[-17579922.2447,2431830.1493999995],[-17579866.91,2431821.3332]]],"spatialReference":{"wkid":102100,"latestWkid":3857}}"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;distance: 500&lt;/P&gt;&lt;P&gt;unit: 9002&lt;/P&gt;&lt;P&gt;unionResults: false&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="F12 console showing error" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/405772_geometryEngine_error.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2018 17:47:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometryengine-3-15-union-error-when-using-try/m-p/588408#M54977</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2018-05-04T17:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: GeometryEngine 3.15 union error when using try-catch</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometryengine-3-15-union-error-when-using-try/m-p/588409#M54978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To reiterate a response from nearly two years ago, this issue can be vetted and resolved more quickly when reported through Esri's technical support group. If not reported there it may never be looked at in a timely manner. Call&amp;nbsp;support and&amp;nbsp;provide details regarding&amp;nbsp;the problem with your apps, and they will take&amp;nbsp;more&amp;nbsp;time than the JS team can allot to reproduce the issue and log it as a bug.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2018 19:07:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/geometryengine-3-15-union-error-when-using-try/m-p/588409#M54978</guid>
      <dc:creator>KristianEkenes</dc:creator>
      <dc:date>2018-05-04T19:07:33Z</dc:date>
    </item>
  </channel>
</rss>

