<?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: TypeError: Cannot read property 'toLowerCase' of undefined in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/typeerror-cannot-read-property-tolowercase-of/m-p/1190129#M22316</link>
    <description>&lt;P&gt;After a long back and forth on a support ticket, we eventually came to the conclusion in October/November 2021 that this is from a bug specific to the Launchpad theme which happens when upgrading from 10.7.1 to 10.8.1.&amp;nbsp; It is fixed in the 10.9 release.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jul 2022 21:32:09 GMT</pubDate>
    <dc:creator>BillMitchell</dc:creator>
    <dc:date>2022-07-06T21:32:09Z</dc:date>
    <item>
      <title>TypeError: Cannot read property 'toLowerCase' of undefined</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/typeerror-cannot-read-property-tolowercase-of/m-p/1086810#M21207</link>
      <description>&lt;P&gt;I am attempting to migrate a webapp from ArcGIS Enterprise 10.7.1 up to 10.8.1.&lt;/P&gt;&lt;P&gt;Unfortunately, when I open the query tool, query one of the layers, then try to open the results in the attribute table, there is an error which then breaks the attribute table (can't resize, desired query layer not added, and when toggling the attribute table off it just makes it blank rather than resizing the map canvas to fill its space).&lt;/P&gt;&lt;P&gt;Correspondingly, there is an error in the javascript console (up to date Chrome and Firefox), as seen below both as text and as screenshots.&amp;nbsp; While the app isn't publicly available, the general idea is that there are a few layers, and a query tool that has the capability to find features in a specified layer within &amp;lt;distance&amp;gt; of features in the query's main layer, in addition to finding the relevant features in the primary layer.&lt;/P&gt;&lt;P&gt;On 10.7.1, the behavior of the query widget allowed the attribute table to be opened/used fully when no secondary layer was specified in the query.&amp;nbsp; With 10.8.1, even when the layer is specified, (removing one line of output about 'no layer specified'), the error still occurs.&lt;/P&gt;&lt;P&gt;Is there a way to serve it with wab_dv=2.12 again?&amp;nbsp; Or to upgrade (not just change the version numbers---I tried that) the web app itself to be compatible with the new version in a way that the attribute table works with the query tool?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An excerpt of the Chrome output, from a few lines before the error to a few lines into the stack trace, is provided both in text and screenshot form.&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;widget [widgets/Query/Widget] created.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;Widget.js?wab_dv=2.16:12 User doesn't select a layer&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;main.js?wab_dv=2.16:273 widget [widgets/AttributeTable/Widget] created.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;main.js?wab_dv=2.16:207 AttributeTable&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;init.js:115 TypeError: Cannot read property 'toLowerCase' of undefined&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;at Object.f.focus (init.js:271)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;at Object._applyA11y2TabContainer (Widget.js?wab_dv=2.16:239)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;at Object.applyA11y (Widget.js?wab_dv=2.16:234)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;at Object.initDiv (Widget.js?wab_dv=2.16:279)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;at Object._init (Widget.js?wab_dv=2.16:260)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;at Object.&amp;lt;anonymous&amp;gt; (Widget.js?wab_dv=2.16:258)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;at init.js:64&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;at m (init.js:108)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;at e.then.b.then (init.js:111)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times"&gt;at Object._openTable (Widget.js?wab_dv=2.16:258) "TypeError: Cannot read property 'toLowerCase' of undefined\n at Object.f.focus (&lt;A href="https://portaldev.gisdata.mn.gov/portal/jsapi/jsapi/init.js:271:169)\" target="_blank" rel="noopener"&gt;https://portaldev.gisdata.mn.gov/portal/jsapi/jsapi/init.js:271:169)\&lt;/A&gt;n at Object._applyA11y2TabContainer (&lt;A href="https://portaldev.gisdata.mn.gov/crashmart/widgets/AttributeTable/Widget.js?wab_dv=2.16:239:484)\" target="_blank" rel="noopener"&gt;https://portaldev.gisdata.mn.gov/crashmart/widgets/AttributeTable/Widget.js?wab_dv=2.16:239:484)\&lt;/A&gt;n&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot of text from debugging console in Chrome showing the error (TypeError: Cannot read property 'toLowerCase' of undefined [init.js:115]); relevant section copied into body text of forum post." style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/20398iA354AAB8E18FAA26/image-size/large?v=v2&amp;amp;px=999" role="button" title="20210806_chrome_crashmart_js_fail.jpg" alt="Screenshot of text from debugging console in Chrome showing the error (TypeError: Cannot read property 'toLowerCase' of undefined [init.js:115]); relevant section copied into body text of forum post." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Screenshot of text from debugging console in Chrome showing the error (TypeError: Cannot read property 'toLowerCase' of undefined [init.js:115]); relevant section copied into body text of forum post.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The error in Firefox is similar, but a little different (screenshot follows relevant text):&lt;/P&gt;&lt;DIV class="cm-s-mozilla message console-api log log"&gt;&lt;FONT face="andale mono,times"&gt;&lt;SPAN class="message-body-wrapper"&gt;&lt;SPAN class="message-flex-body"&gt;&lt;SPAN class="message-body devtools-monospace"&gt;&lt;SPAN class="objectBox objectBox-string"&gt;widget [widgets/Query/Widget] created.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="message-location devtools-monospace"&gt;&lt;SPAN class="frame-link"&gt;&lt;A href="https://portaldev.gisdata.mn.gov/portal/apps/webappviewer/jimu.js/main.js?wab_dv=2.16" target="_blank" rel="noopener"&gt;&lt;SPAN class="frame-link-source-inner"&gt;&lt;SPAN class="frame-link-filename"&gt;main.js&lt;/SPAN&gt;&lt;SPAN class="frame-link-line"&gt;:273:103&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="cm-s-mozilla message console-api log log"&gt;&lt;FONT face="andale mono,times"&gt;&lt;SPAN class="message-body-wrapper"&gt;&lt;SPAN class="message-flex-body"&gt;&lt;SPAN class="message-body devtools-monospace"&gt;&lt;SPAN class="objectBox objectBox-string"&gt;User doesn't select a layer&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="message-location devtools-monospace"&gt;&lt;SPAN class="frame-link"&gt;&lt;A href="https://portaldev.gisdata.mn.gov/portal/apps/webappviewer/widgets/Query/Widget.js?wab_dv=2.16" target="_blank" rel="noopener"&gt;&lt;SPAN class="frame-link-source-inner"&gt;&lt;SPAN class="frame-link-filename"&gt;Widget.js&lt;/SPAN&gt;&lt;SPAN class="frame-link-line"&gt;:12:410&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="cm-s-mozilla message console-api log log"&gt;&lt;FONT face="andale mono,times"&gt;&lt;SPAN class="message-body-wrapper"&gt;&lt;SPAN class="message-flex-body"&gt;&lt;SPAN class="message-body devtools-monospace"&gt;&lt;SPAN class="objectBox objectBox-string"&gt;widget [widgets/AttributeTable/Widget] created.&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="message-location devtools-monospace"&gt;&lt;SPAN class="frame-link"&gt;&lt;A href="https://portaldev.gisdata.mn.gov/portal/apps/webappviewer/jimu.js/main.js?wab_dv=2.16" target="_blank" rel="noopener"&gt;&lt;SPAN class="frame-link-source-inner"&gt;&lt;SPAN class="frame-link-filename"&gt;main.js&lt;/SPAN&gt;&lt;SPAN class="frame-link-line"&gt;:273:103&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="cm-s-mozilla message console-api log log"&gt;&lt;FONT face="andale mono,times"&gt;&lt;SPAN class="message-body-wrapper"&gt;&lt;SPAN class="message-flex-body"&gt;&lt;SPAN class="message-body devtools-monospace"&gt;&lt;SPAN class="objectBox objectBox-string"&gt;AttributeTable&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="message-location devtools-monospace"&gt;&lt;SPAN class="frame-link"&gt;&lt;A href="https://portaldev.gisdata.mn.gov/portal/apps/webappviewer/jimu.js/main.js?wab_dv=2.16" target="_blank" rel="noopener"&gt;&lt;SPAN class="frame-link-source-inner"&gt;&lt;SPAN class="frame-link-filename"&gt;main.js&lt;/SPAN&gt;&lt;SPAN class="frame-link-line"&gt;:207:342&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="cm-s-mozilla message console-api error error"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;FONT face="andale mono,times"&gt;&lt;SPAN class="message-body-wrapper"&gt;&lt;SPAN class="message-flex-body"&gt;&lt;SPAN class="message-body devtools-monospace"&gt;&lt;SPAN class="objectBox-stackTrace reps-custom-format"&gt;TypeError: &lt;SPAN class="objectBox objectBox-string"&gt;c.tagName is undefined&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;DIV class="pane frames"&gt;&lt;DIV&gt;&lt;DIV class="frame"&gt;&lt;FONT face="andale mono,times"&gt;&lt;SPAN class="frame-indent clipboard-only"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="title"&gt;focus&lt;/SPAN&gt; &lt;SPAN class="location"&gt;&lt;SPAN class="filename"&gt;&lt;A href="https://portaldev.gisdata.mn.gov/portal/jsapi/jsapi/init.js" target="_blank" rel="noopener"&gt;https://portaldev.gisdata.mn.gov/portal/jsapi/jsapi/init.js&lt;/A&gt;&lt;/SPAN&gt;:&lt;SPAN class="line"&gt;271&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="frame"&gt;&lt;FONT face="andale mono,times"&gt;&lt;SPAN class="frame-indent clipboard-only"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="title"&gt;_applyA11y2TabContainer&lt;/SPAN&gt; &lt;SPAN class="location"&gt;&lt;SPAN class="filename"&gt;&lt;A href="https://portaldev.gisdata.mn.gov/portal/apps/webappviewer/widgets/AttributeTable/Widget.js?wab_dv=2.16" target="_blank" rel="noopener"&gt;https://portaldev.gisdata.mn.gov/portal/apps/webappviewer/widgets/AttributeTable/Widget.js?wab_dv=2.16&lt;/A&gt;&lt;/SPAN&gt;:&lt;SPAN class="line"&gt;239&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="frame"&gt;&lt;FONT face="andale mono,times"&gt;&lt;SPAN class="frame-indent clipboard-only"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="title"&gt;applyA11y&lt;/SPAN&gt; &lt;SPAN class="location"&gt;&lt;SPAN class="filename"&gt;&lt;A href="https://portaldev.gisdata.mn.gov/portal/apps/webappviewer/widgets/AttributeTable/Widget.js?wab_dv=2.16" target="_blank" rel="noopener"&gt;https://portaldev.gisdata.mn.gov/portal/apps/webappviewer/widgets/AttributeTable/Widget.js?wab_dv=2.16&lt;/A&gt;&lt;/SPAN&gt;:&lt;SPAN class="line"&gt;234&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="frame"&gt;&lt;FONT face="andale mono,times"&gt;&lt;SPAN class="frame-indent clipboard-only"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="title"&gt;initDiv&lt;/SPAN&gt; &lt;SPAN class="location"&gt;&lt;SPAN class="filename"&gt;&lt;A href="https://portaldev.gisdata.mn.gov/portal/apps/webappviewer/widgets/AttributeTable/Widget.js?wab_dv=2.16" target="_blank" rel="noopener"&gt;https://portaldev.gisdata.mn.gov/portal/apps/webappviewer/widgets/AttributeTable/Widget.js?wab_dv=2.16&lt;/A&gt;&lt;/SPAN&gt;:&lt;SPAN class="line"&gt;279&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="frame"&gt;&lt;FONT face="andale mono,times"&gt;&lt;SPAN class="frame-indent clipboard-only"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="title"&gt;_init&lt;/SPAN&gt; &lt;SPAN class="location"&gt;&lt;SPAN class="filename"&gt;&lt;A href="https://portaldev.gisdata.mn.gov/portal/apps/webappviewer/widgets/AttributeTable/Widget.js?wab_dv=2.16" target="_blank" rel="noopener"&gt;https://portaldev.gisdata.mn.gov/portal/apps/webappviewer/widgets/AttributeTable/Widget.js?wab_dv=2.16&lt;/A&gt;&lt;/SPAN&gt;:&lt;SPAN class="line"&gt;260&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="frame"&gt;&lt;FONT face="andale mono,times"&gt;&lt;SPAN class="frame-indent clipboard-only"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="title"&gt;_openTable&lt;/SPAN&gt; &lt;SPAN class="location"&gt;&lt;SPAN class="filename"&gt;&lt;A href="https://portaldev.gisdata.mn.gov/portal/apps/webappviewer/widgets/AttributeTable/Widget.js?wab_dv=2.16" target="_blank" rel="noopener"&gt;https://portaldev.gisdata.mn.gov/portal/apps/webappviewer/widgets/AttributeTable/Widget.js?wab_dv=2.16&lt;/A&gt;&lt;/SPAN&gt;:&lt;SPAN class="line"&gt;258&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot of text from debugging console in Firefox showing the error (TypeError: c.tagName is undefined [init.js:115:271]); relevant section copied into body text of forum post." style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/20406iC81F08C51FF1B7C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="20210806_firefox_crashmart_js_fail.jpg" alt="Screenshot of text from debugging console in Firefox showing the error (TypeError: c.tagName is undefined [init.js:115:271]); relevant section copied into body text of forum post." /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Screenshot of text from debugging console in Firefox showing the error (TypeError: c.tagName is undefined [init.js:115:271]); relevant section copied into body text of forum post.&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This seems similar to another (unanswered) question here: &lt;A href="https://community.esri.com/t5/arcgis-web-appbuilder-questions/type-error-wab-2-16-attribute-table-widget/td-p/472852" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-web-appbuilder-questions/type-error-wab-2-16-attribute-table-widget/td-p/472852&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 21:59:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/typeerror-cannot-read-property-tolowercase-of/m-p/1086810#M21207</guid>
      <dc:creator>BillMitchell</dc:creator>
      <dc:date>2021-08-06T21:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError: Cannot read property 'toLowerCase' of undefined</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/typeerror-cannot-read-property-tolowercase-of/m-p/1087113#M21217</link>
      <description>&lt;P&gt;I used the download option from the 10.7.1 Portal, put that code directory on the new server, and updated the `config.json` and `env.js` files to use the new versions from 10.8.1 (with updated DNS names, etc.).&amp;nbsp; This has fixed the problem, which strengthens my suspicion that the issue here is in the javascript libraries bundled with Web AppBuilder apps.&lt;/P&gt;&lt;P&gt;Given that if my app were to break I don't have a great way to fix it once the 10.7.1 machine is decommissioned, I don't really consider this a workable solution.&amp;nbsp; It is a stopgap workaround, but needs a more solid fix soon.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2021 14:53:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/typeerror-cannot-read-property-tolowercase-of/m-p/1087113#M21217</guid>
      <dc:creator>BillMitchell</dc:creator>
      <dc:date>2021-08-09T14:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: TypeError: Cannot read property 'toLowerCase' of undefined</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/typeerror-cannot-read-property-tolowercase-of/m-p/1190129#M22316</link>
      <description>&lt;P&gt;After a long back and forth on a support ticket, we eventually came to the conclusion in October/November 2021 that this is from a bug specific to the Launchpad theme which happens when upgrading from 10.7.1 to 10.8.1.&amp;nbsp; It is fixed in the 10.9 release.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 21:32:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/typeerror-cannot-read-property-tolowercase-of/m-p/1190129#M22316</guid>
      <dc:creator>BillMitchell</dc:creator>
      <dc:date>2022-07-06T21:32:09Z</dc:date>
    </item>
  </channel>
</rss>

