<?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 Web AppBuilder Dev Edition: Constructing FeatureLayer object throwing TypeError: Cannot read properties of null (reading 'path') in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-dev-edition-constructing/m-p/1257384#M22811</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am working with Web AppBuilder Developer Edition version 2.26. I wrote a simple function that is supposed to build a FeatureLayer object using the supplied service URL, then supply an array of edits. When debugging with a breakpoint, the svcUrl variable in the code below is populated with the correct service URL, but I am getting the following error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;TypeError: Cannot read properties of null (reading 'path')&lt;/P&gt;&lt;P&gt;I included 'esri/layers/FeatureLayer' in the define list and declared as a function called FeatureLayer.&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;_applyFtEdits: function (svcUrl, edits) {
    var ftLyr = new FeatureLayer({
        url: svcUrl
    });

    ftLyr.applyEdits(edits);
        console.log("APPLY FEATURE EDITS CALLED.");
    },&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working with a secure feature service published in an organization Portal, but the app is being tested in ArcGIS Online. Is this error potentially the result of not supplying a token to authenticate? The app prompts a sign-in to the Portal hosting the service on load. I was hoping that would cover authentication...&lt;/P&gt;</description>
    <pubDate>Mon, 13 Feb 2023 17:04:10 GMT</pubDate>
    <dc:creator>EmmaHatcher</dc:creator>
    <dc:date>2023-02-13T17:04:10Z</dc:date>
    <item>
      <title>Web AppBuilder Dev Edition: Constructing FeatureLayer object throwing TypeError: Cannot read properties of null (reading 'path')</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-dev-edition-constructing/m-p/1257384#M22811</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am working with Web AppBuilder Developer Edition version 2.26. I wrote a simple function that is supposed to build a FeatureLayer object using the supplied service URL, then supply an array of edits. When debugging with a breakpoint, the svcUrl variable in the code below is populated with the correct service URL, but I am getting the following error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;TypeError: Cannot read properties of null (reading 'path')&lt;/P&gt;&lt;P&gt;I included 'esri/layers/FeatureLayer' in the define list and declared as a function called FeatureLayer.&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;_applyFtEdits: function (svcUrl, edits) {
    var ftLyr = new FeatureLayer({
        url: svcUrl
    });

    ftLyr.applyEdits(edits);
        console.log("APPLY FEATURE EDITS CALLED.");
    },&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working with a secure feature service published in an organization Portal, but the app is being tested in ArcGIS Online. Is this error potentially the result of not supplying a token to authenticate? The app prompts a sign-in to the Portal hosting the service on load. I was hoping that would cover authentication...&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 17:04:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-dev-edition-constructing/m-p/1257384#M22811</guid>
      <dc:creator>EmmaHatcher</dc:creator>
      <dc:date>2023-02-13T17:04:10Z</dc:date>
    </item>
  </channel>
</rss>

