<?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: Attribute Table no longer working since update in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/attribute-table-no-longer-working-since-update/m-p/1503165#M23540</link>
    <description>&lt;P&gt;For developer version people, I found a solution by altering the&amp;nbsp;LayerInfoForDefaultService.js file located in:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;jimu.js/LayerInfos/LayerInfoForDefaultService.js&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You have to change the following function:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;getLayerType: function() {
  var def = new Deferred();
  // if this.layerInfo is groupLayerInfo
  if(this.getSubLayers().length &amp;gt; 0) {
    def.resolve("GroupLayer");
  } else {
    this._getServiceDefinition().then(lang.hitch(this, function(serviceDefinition) {
      if (serviceDefinition) {
        def.resolve(serviceDefinition.type.replace(/\ /g, ''));
      } else {
        def.resolve(null);
      }
    }), function() {
      def.resolve(null);
    });
  }

  return def;
},&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;getLayerType: function() {
  var def = new Deferred();
  // if this.layerInfo is groupLayerInfo
  if(this.getSubLayers().length &amp;gt; 0) {
    def.resolve("GroupLayer");
  } else {
    this._getServiceDefinition().then(lang.hitch(this, function(serviceDefinition) {
      if (serviceDefinition &amp;amp;&amp;amp; serviceDefinition.type) {
        def.resolve(serviceDefinition.type.replace(/\ /g, ''));
      } else {
        console.warn('Service definition or type is undefined');
        def.resolve(null);
      }
    }), function(error) {
      console.error('Error getting service definition:', error);
      def.resolve(null);
    });
  }

  return def;
},&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The servicedefinition is undefined when the code tries to access its type property. My fix just ignores it, it is still have trouble finding the servicedefinition when the attribute table or the select widgets are opened. But this allows them to work for now.&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jul 2024 18:16:49 GMT</pubDate>
    <dc:creator>ericsamson_tract</dc:creator>
    <dc:date>2024-07-09T18:16:49Z</dc:date>
    <item>
      <title>Attribute Table no longer working since update</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/attribute-table-no-longer-working-since-update/m-p/1501300#M23528</link>
      <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wondering if anyone else has been experiencing this. Both in my custom WAB applications and ones made from ArcGIS Online, attribute tables are not loading and I am met with a loading screen:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ericsamson_tract_0-1720037534689.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/108765iE2D72B022B248CDB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ericsamson_tract_0-1720037534689.png" alt="ericsamson_tract_0-1720037534689.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error that gets sent to the console says:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;TypeError: Cannot read properties of undefined (reading 'replace')
at Object.&amp;lt;anonymous&amp;gt; (LayerInfoForDefaultService.js?wab_dv=2.30:426:48)
at init.js:65:207
at r (init.js:110:277)
at q (init.js:110:203)
at a.resolve (init.js:112:280)
at Object.setResponse (RequestBuffer.js?wab_dv=2.30:120:24)
at Object.&amp;lt;anonymous&amp;gt; (LayerInfoForMapService.js?wab_dv=2.30:705:34)
at init.js:65:207
at Object.traversal (LayerInfo.js?wab_dv=2.30:156:10)
at Object.traversal (LayerInfo.js?wab_dv=2.30:161:30) "TypeError: Cannot read properties of undefined (reading 'replace')\n at Object.&amp;lt;anonymous&amp;gt; (https://tract-lt14:3344/webappbuilder/apps/2/jimu.js/LayerInfos/LayerInfoForDefaultService.js?wab_dv=2.30:426:48)\n at https://js.arcgis.com/3.46/init.js:65:207\n at r (https://js.arcgis.com/3.46/init.js:110:277)\n at q (https://js.arcgis.com/3.46/init.js:110:203)\n at a.resolve (https://js.arcgis.com/3.46/init.js:112:280)\n at Object.setResponse (https://tract-lt14:3344/webappbuilder/apps/2/jimu.js/LayerInfos/RequestBuffer.js?wab_dv=2.30:120:24)\n at Object.&amp;lt;anonymous&amp;gt; (https://tract-lt14:3344/webappbuilder/apps/2/jimu.js/LayerInfos/LayerInfoForMapService.js?wab_dv=2.30:705:34)\n at https://js.arcgis.com/3.46/init.js:65:207\n at Object.traversal (https://tract-lt14:3344/webappbuilder/apps/2/jimu.js/LayerInfos/LayerInfo.js?wab_dv=2.30:156:10)\n at Object.traversal (https://tract-lt14:3344/webappbuilder/apps/2/jimu.js/LayerInfos/LayerInfo.js?wab_dv=2.30:161:30)\n ----------------------------------------\n rejected at c (https://js.arcgis.com/3.46/init.js:111:174)\n at r (https://js.arcgis.com/3.46/init.js:110:436)\n at q (https://js.arcgis.com/3.46/init.js:110:203)\n at a.resolve (https://js.arcgis.com/3.46/init.js:112:280)\n at Object.setResponse (https://tract-lt14:3344/webappbuilder/apps/2/jimu.js/LayerInfos/RequestBuffer.js?wab_dv=2.30:120:24)\n at Object.&amp;lt;anonymous&amp;gt; (https://tract-lt14:3344/webappbuilder/apps/2/jimu.js/LayerInfos/LayerInfoForMapService.js?wab_dv=2.30:705:34)\n at https://js.arcgis.com/3.46/init.js:65:207\n at Object.traversal (https://tract-lt14:3344/webappbuilder/apps/2/jimu.js/LayerInfos/LayerInfo.js?wab_dv=2.30:156:10)\n at Object.traversal (https://tract-lt14:3344/webappbuilder/apps/2/jimu.js/LayerInfos/LayerInfo.js?wab_dv=2.30:161:30)\n at Object.&amp;lt;anonymous&amp;gt; (https://tract-lt14:3344/webappbuilder/apps/2/jimu.js/LayerInfos/LayerInfoForMapService.js?wab_dv=2.30:694:16)\n ----------------------------------------\nError\n at then.e.then (https://js.arcgis.com/3.46/init.js:113:97)\n at Object.getLayerType (https://tract-lt14:3344/webappbuilder/apps/2/jimu.js/LayerInfos/LayerInfoForDefaultService.js?wab_dv=2.30:424:38)\n at Object.getSupportTableInfo (https://tract-lt14:3344/webappbuilder/apps/2/jimu.js/LayerInfos/LayerInfoForDefaultService.js?wab_dv=2.30:453:12)\n at https://tract-lt14:3344/webappbuilder/apps/2/widgets/AttributeTable/utils.js?wab_dv=2.30:365:29\n at Object.forEach (https://js.arcgis.com/3.46/init.js:73:69)\n at Object.&amp;lt;anonymous&amp;gt; (https://tract-lt14:3344/webappbuilder/apps/2/widgets/AttributeTable/utils.js?wab_dv=2.30:364:13)\n at https://js.arcgis.com/3.46/init.js:65:207\n at r (https://js.arcgis.com/3.46/init.js:110:277)\n at then.e.then (https://js.arcgis.com/3.46/init.js:113:152)\n at exports.readConfigLayerInfosFromMap (https://tract-lt14:3344/webappbuilder/apps/2/widgets/AttributeTable/utils.js?wab_dv=2.30:362:6)"&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 03 Jul 2024 20:15:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/attribute-table-no-longer-working-since-update/m-p/1501300#M23528</guid>
      <dc:creator>ericsamson_tract</dc:creator>
      <dc:date>2024-07-03T20:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Attribute Table no longer working since update</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/attribute-table-no-longer-working-since-update/m-p/1503165#M23540</link>
      <description>&lt;P&gt;For developer version people, I found a solution by altering the&amp;nbsp;LayerInfoForDefaultService.js file located in:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;jimu.js/LayerInfos/LayerInfoForDefaultService.js&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You have to change the following function:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;getLayerType: function() {
  var def = new Deferred();
  // if this.layerInfo is groupLayerInfo
  if(this.getSubLayers().length &amp;gt; 0) {
    def.resolve("GroupLayer");
  } else {
    this._getServiceDefinition().then(lang.hitch(this, function(serviceDefinition) {
      if (serviceDefinition) {
        def.resolve(serviceDefinition.type.replace(/\ /g, ''));
      } else {
        def.resolve(null);
      }
    }), function() {
      def.resolve(null);
    });
  }

  return def;
},&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;getLayerType: function() {
  var def = new Deferred();
  // if this.layerInfo is groupLayerInfo
  if(this.getSubLayers().length &amp;gt; 0) {
    def.resolve("GroupLayer");
  } else {
    this._getServiceDefinition().then(lang.hitch(this, function(serviceDefinition) {
      if (serviceDefinition &amp;amp;&amp;amp; serviceDefinition.type) {
        def.resolve(serviceDefinition.type.replace(/\ /g, ''));
      } else {
        console.warn('Service definition or type is undefined');
        def.resolve(null);
      }
    }), function(error) {
      console.error('Error getting service definition:', error);
      def.resolve(null);
    });
  }

  return def;
},&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The servicedefinition is undefined when the code tries to access its type property. My fix just ignores it, it is still have trouble finding the servicedefinition when the attribute table or the select widgets are opened. But this allows them to work for now.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 18:16:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/attribute-table-no-longer-working-since-update/m-p/1503165#M23540</guid>
      <dc:creator>ericsamson_tract</dc:creator>
      <dc:date>2024-07-09T18:16:49Z</dc:date>
    </item>
  </channel>
</rss>

