<?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 Enabling a Custom Geoprocessing Widget in WAB Fails in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/enabling-a-custom-geoprocessing-widget-in-wab/m-p/78762#M2242</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class="" style="color: #d5d5d5; background-color: #290000; border-bottom: 1px solid transparent; border-top-color: var(--error-border-color);"&gt;&lt;DIV class="" style="margin-left: 24px; padding: 3px 22px 1px 0px;"&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;SPAN class="" style="font-size: 12px !important;"&gt;&lt;SPAN class="" style="color: var(--error-text-color)  !important;"&gt;Hi all:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="" style="font-size: 12px !important;"&gt;&lt;SPAN class="" style="color: var(--error-text-color)  !important;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="" style="font-size: 12px !important;"&gt;&lt;SPAN class="" style="color: var(--error-text-color)  !important;"&gt;I am getting the following error when attempting to publish a widget to WAB in our Enterprise Portal. The file is definitely there so I am hoping this is a simple issue, but am utterly stuck. This was replicated using the stock geoprocessing widget as well by publishing that to the same server.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="" style="font-size: 12px !important;"&gt;&lt;SPAN class="" style="color: var(--error-text-color)  !important;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="" style="font-size: 12px !important;"&gt;&lt;SPAN class="" style="color: var(--error-text-color)  !important;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="font-size: 12px !important;"&gt;&lt;SPAN class="" style="color: var(--error-text-color)  !important;"&gt;GET &lt;SPAN class="" style="color: #ababab; text-decoration: underline;"&gt;https://maps.gpinet.com/Test/widgets/Geoprocessing/nls/strings&lt;/SPAN&gt; net::ERR_ABORTED 404 (Not Found)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #d5d5d5; background-color: #290000; border-bottom: 1px solid transparent; border-top-color: var(--error-border-color);"&gt;&lt;DIV class="" style="margin-left: 24px; padding: 3px 22px 1px 0px;"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;SPAN class="" style="background-color: #919191; margin-bottom: -2px;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="font-size: 12px !important;"&gt;&lt;SPAN class="" style="margin-left: 4px;"&gt;&lt;SPAN class="" style="color: #ababab; text-decoration: underline;"&gt;init.js:37&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: var(--error-text-color)  !important;"&gt;&lt;SPAN class="" style="font-size: 12px !important;"&gt;&lt;SPAN&gt;Error: scriptError at c (&lt;SPAN class="" style="color: #ababab; text-decoration: underline;"&gt;init.js:11&lt;/SPAN&gt;) at HTMLScriptElement.&amp;lt;anonymous&amp;gt; (&lt;SPAN class="" style="color: #ababab; text-decoration: underline;"&gt;init.js:35&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #d5d5d5; background-color: #242424; border-bottom: 1px solid transparent; border-top-color: var(--error-border-color);"&gt;&lt;DIV class="" style="margin-left: 24px; padding: 3px 22px 1px 0px;"&gt;&lt;SPAN class="" style="font-size: 12px !important;"&gt;&lt;SPAN class="" style="margin-left: 4px;"&gt;&lt;SPAN class="" style="color: #ababab; text-decoration: underline;"&gt;init.js:37&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;src: dojoLoader&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #d5d5d5; background-color: #242424; border-top: 1px solid var(--message-border-color); border-bottom: 1px solid transparent;"&gt;&lt;DIV class="" style="margin-left: 24px; padding: 3px 22px 1px 0px;"&gt;&lt;SPAN class="" style="font-size: 12px !important;"&gt;&lt;SPAN class="" style="font-size: 12px !important;"&gt;&lt;SPAN class="" style="margin-left: 4px;"&gt;&lt;SPAN class="" style="color: #ababab; text-decoration: underline;"&gt;init.js:37&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;info:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV class="" style="color: inherit; font-size: 12px !important;"&gt;&lt;DIV class=""&gt;&lt;OL class="" style="color: #d5d5d5 !important; font-size: 12px !important;"&gt;&lt;LI class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;(2)&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;[&lt;SPAN class="" style="color: #e93f3b;"&gt;"https://maps.gpinet.com/Test/widgets/Geoprocessing/nls/strings"&lt;/SPAN&gt;, &lt;SPAN class=""&gt;Event&lt;/SPAN&gt;]&lt;/SPAN&gt;&lt;SPAN class="" style="color: black; background-color: #99aaff; font-size: 9px; margin: 0px 6px;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;OL class="" style="padding-left: 12px;"&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #e36eec;"&gt;0&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #e93f3b;"&gt;&lt;SPAN class="" style="color: #d5d5d5;"&gt;"&lt;/SPAN&gt;https://maps.gpinet.com/Test/widgets/Geoprocessing/nls/strings&lt;SPAN class="" style="color: #d5d5d5;"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #e36eec;"&gt;1&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #7f7f7f;"&gt;Event&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;{&lt;SPAN class="" style="color: #a9a9a9;"&gt;isTrusted&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #9980ff;"&gt;true&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a9a9a9;"&gt;type&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #e93f3b;"&gt;"error"&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a9a9a9;"&gt;target&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #bdc6cf;"&gt;&lt;SPAN class="" style="color: var(--dom-tag-name-color);"&gt;script&lt;/SPAN&gt;&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a9a9a9;"&gt;currentTarget&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #7f7f7f;"&gt;null&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a9a9a9;"&gt;eventPhase&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #9980ff;"&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;…&lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #e36eec;"&gt;length&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #9980ff;"&gt;2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #e36eec;"&gt;__proto__&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Array(0)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Sep 2019 16:59:55 GMT</pubDate>
    <dc:creator>MichaelCollins6</dc:creator>
    <dc:date>2019-09-05T16:59:55Z</dc:date>
    <item>
      <title>Enabling a Custom Geoprocessing Widget in WAB Fails</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/enabling-a-custom-geoprocessing-widget-in-wab/m-p/78762#M2242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class="" style="color: #d5d5d5; background-color: #290000; border-bottom: 1px solid transparent; border-top-color: var(--error-border-color);"&gt;&lt;DIV class="" style="margin-left: 24px; padding: 3px 22px 1px 0px;"&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;SPAN class="" style="font-size: 12px !important;"&gt;&lt;SPAN class="" style="color: var(--error-text-color)  !important;"&gt;Hi all:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="" style="font-size: 12px !important;"&gt;&lt;SPAN class="" style="color: var(--error-text-color)  !important;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="" style="font-size: 12px !important;"&gt;&lt;SPAN class="" style="color: var(--error-text-color)  !important;"&gt;I am getting the following error when attempting to publish a widget to WAB in our Enterprise Portal. The file is definitely there so I am hoping this is a simple issue, but am utterly stuck. This was replicated using the stock geoprocessing widget as well by publishing that to the same server.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="" style="font-size: 12px !important;"&gt;&lt;SPAN class="" style="color: var(--error-text-color)  !important;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="" style="font-size: 12px !important;"&gt;&lt;SPAN class="" style="color: var(--error-text-color)  !important;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="font-size: 12px !important;"&gt;&lt;SPAN class="" style="color: var(--error-text-color)  !important;"&gt;GET &lt;SPAN class="" style="color: #ababab; text-decoration: underline;"&gt;https://maps.gpinet.com/Test/widgets/Geoprocessing/nls/strings&lt;/SPAN&gt; net::ERR_ABORTED 404 (Not Found)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #d5d5d5; background-color: #290000; border-bottom: 1px solid transparent; border-top-color: var(--error-border-color);"&gt;&lt;DIV class="" style="margin-left: 24px; padding: 3px 22px 1px 0px;"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;SPAN class="" style="background-color: #919191; margin-bottom: -2px;"&gt;&lt;/SPAN&gt;&lt;SPAN class="" style="font-size: 12px !important;"&gt;&lt;SPAN class="" style="margin-left: 4px;"&gt;&lt;SPAN class="" style="color: #ababab; text-decoration: underline;"&gt;init.js:37&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: var(--error-text-color)  !important;"&gt;&lt;SPAN class="" style="font-size: 12px !important;"&gt;&lt;SPAN&gt;Error: scriptError at c (&lt;SPAN class="" style="color: #ababab; text-decoration: underline;"&gt;init.js:11&lt;/SPAN&gt;) at HTMLScriptElement.&amp;lt;anonymous&amp;gt; (&lt;SPAN class="" style="color: #ababab; text-decoration: underline;"&gt;init.js:35&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #d5d5d5; background-color: #242424; border-bottom: 1px solid transparent; border-top-color: var(--error-border-color);"&gt;&lt;DIV class="" style="margin-left: 24px; padding: 3px 22px 1px 0px;"&gt;&lt;SPAN class="" style="font-size: 12px !important;"&gt;&lt;SPAN class="" style="margin-left: 4px;"&gt;&lt;SPAN class="" style="color: #ababab; text-decoration: underline;"&gt;init.js:37&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;src: dojoLoader&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #d5d5d5; background-color: #242424; border-top: 1px solid var(--message-border-color); border-bottom: 1px solid transparent;"&gt;&lt;DIV class="" style="margin-left: 24px; padding: 3px 22px 1px 0px;"&gt;&lt;SPAN class="" style="font-size: 12px !important;"&gt;&lt;SPAN class="" style="font-size: 12px !important;"&gt;&lt;SPAN class="" style="margin-left: 4px;"&gt;&lt;SPAN class="" style="color: #ababab; text-decoration: underline;"&gt;init.js:37&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;info:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV class="" style="color: inherit; font-size: 12px !important;"&gt;&lt;DIV class=""&gt;&lt;OL class="" style="color: #d5d5d5 !important; font-size: 12px !important;"&gt;&lt;LI class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;(2)&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;[&lt;SPAN class="" style="color: #e93f3b;"&gt;"https://maps.gpinet.com/Test/widgets/Geoprocessing/nls/strings"&lt;/SPAN&gt;, &lt;SPAN class=""&gt;Event&lt;/SPAN&gt;]&lt;/SPAN&gt;&lt;SPAN class="" style="color: black; background-color: #99aaff; font-size: 9px; margin: 0px 6px;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;OL class="" style="padding-left: 12px;"&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #e36eec;"&gt;0&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #e93f3b;"&gt;&lt;SPAN class="" style="color: #d5d5d5;"&gt;"&lt;/SPAN&gt;https://maps.gpinet.com/Test/widgets/Geoprocessing/nls/strings&lt;SPAN class="" style="color: #d5d5d5;"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #e36eec;"&gt;1&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #7f7f7f;"&gt;Event&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;{&lt;SPAN class="" style="color: #a9a9a9;"&gt;isTrusted&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #9980ff;"&gt;true&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a9a9a9;"&gt;type&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #e93f3b;"&gt;"error"&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a9a9a9;"&gt;target&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #bdc6cf;"&gt;&lt;SPAN class="" style="color: var(--dom-tag-name-color);"&gt;script&lt;/SPAN&gt;&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a9a9a9;"&gt;currentTarget&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #7f7f7f;"&gt;null&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #a9a9a9;"&gt;eventPhase&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #9980ff;"&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;…&lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #e36eec;"&gt;length&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #9980ff;"&gt;2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #e36eec;"&gt;__proto__&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Array(0)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Sep 2019 16:59:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/enabling-a-custom-geoprocessing-widget-in-wab/m-p/78762#M2242</guid>
      <dc:creator>MichaelCollins6</dc:creator>
      <dc:date>2019-09-05T16:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling a Custom Geoprocessing Widget in WAB Fails</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/enabling-a-custom-geoprocessing-widget-in-wab/m-p/78763#M2243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem here is that when you publish a widget into Portal its hosted outside the WAB and you run into issues with paths. Widgets/MyWidget will no longer work. I'm not 100% sure on i18n, it always seems to work differently with paths to other dojo require items. Anyway I ran into the same issue with the AddData widget so here is what I think. With the geoprocessing widget I see:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RecordSetEditorChooser.js: 26&lt;/P&gt;&lt;P&gt;'dojo/i18n!../nls/strings',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here there is a path and it is failing to find it, the error message is misleading I think its actually looking for it in the WAB. There should be a way to make it work as a relative path but I'm not sure what it is. I ended up just requiring the js file relatively (so no i18n):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'./nls/strings',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then using the .root property:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;RecordSetEditorChooser.js: 38&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;lang.mixin(this.nls, gpNls.&lt;STRONG&gt;root&lt;/STRONG&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means your localisation won't work, but at least the widget may work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the add data widget there were lots of&amp;nbsp;&lt;SPAN&gt;data-dojo-type within the templates. Remember "widgets" no longer works as a path, this is looking in the widgets folder of the WAB, not local to your widget. To fix this I ended up removing the&amp;nbsp;data-dojo-type and creating the widgets within widget.js. Hoepfully you won't have to do this and it will be the simple one line fix above (because this is a nightmare)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;data-dojo-type="widgets/AddData/search/ScopeOptions"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The main point is that you have to get into the mindset that everything must work relatively if you are going to host the widget for portal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2019 03:46:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/enabling-a-custom-geoprocessing-widget-in-wab/m-p/78763#M2243</guid>
      <dc:creator>DavidWilton</dc:creator>
      <dc:date>2019-11-20T03:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling a Custom Geoprocessing Widget in WAB Fails</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/enabling-a-custom-geoprocessing-widget-in-wab/m-p/78764#M2244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have the exact same issue with the AddData widget. Could you possibly share your code if you managed to get it working?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2019 12:19:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/enabling-a-custom-geoprocessing-widget-in-wab/m-p/78764#M2244</guid>
      <dc:creator>ØysteinKristoffersen</dc:creator>
      <dc:date>2019-11-20T12:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling a Custom Geoprocessing Widget in WAB Fails</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/enabling-a-custom-geoprocessing-widget-in-wab/m-p/78765#M2245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Completely hacked together, but it it should work at least&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.dropbox.com/s/gha3tgeiufpure8/AddDataPortal.zip?dl=0" title="https://www.dropbox.com/s/gha3tgeiufpure8/AddDataPortal.zip?dl=0"&gt;Dropbox - AddDataPortal.zip - Simplify your life&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2019 22:58:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/enabling-a-custom-geoprocessing-widget-in-wab/m-p/78765#M2245</guid>
      <dc:creator>DavidWilton</dc:creator>
      <dc:date>2019-11-20T22:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling a Custom Geoprocessing Widget in WAB Fails</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/enabling-a-custom-geoprocessing-widget-in-wab/m-p/78766#M2246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much! I am unfortunatley not able to download the zip-file from that link. Could you try share the file again? Otherwise you could send it to my email perhaps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2019 11:55:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/enabling-a-custom-geoprocessing-widget-in-wab/m-p/78766#M2246</guid>
      <dc:creator>ØysteinKristoffersen</dc:creator>
      <dc:date>2019-11-21T11:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling a Custom Geoprocessing Widget in WAB Fails</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/enabling-a-custom-geoprocessing-widget-in-wab/m-p/78767#M2247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry try again. If this doesn't work drop me a PM on linked in (I don't think you can PM on geonet?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.dropbox.com/s/9idft1vzpqeq77v/AddDataPortal.zip?dl=0" title="https://www.dropbox.com/s/9idft1vzpqeq77v/AddDataPortal.zip?dl=0"&gt;Dropbox - AddDataPortal.zip - Simplify your life&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.linkedin.com/in/davidjwilton/" title="https://www.linkedin.com/in/davidjwilton/"&gt;https://www.linkedin.com/in/davidjwilton/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2019 23:58:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/enabling-a-custom-geoprocessing-widget-in-wab/m-p/78767#M2247</guid>
      <dc:creator>DavidWilton</dc:creator>
      <dc:date>2019-11-21T23:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling a Custom Geoprocessing Widget in WAB Fails</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/enabling-a-custom-geoprocessing-widget-in-wab/m-p/78768#M2248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I managed to download now! Thank you for helping out!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2019 06:50:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/enabling-a-custom-geoprocessing-widget-in-wab/m-p/78768#M2248</guid>
      <dc:creator>ØysteinKristoffersen</dc:creator>
      <dc:date>2019-11-26T06:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling a Custom Geoprocessing Widget in WAB Fails</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/enabling-a-custom-geoprocessing-widget-in-wab/m-p/78769#M2249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A _jive_internal="true" data-avatarid="10607" data-externalid="" data-online="false" data-presence="null" data-userid="301553" data-username="Oystein.Kristoffersengeodata-no-esridist" href="https://community.esri.com/people/Oystein.Kristoffersengeodata-no-esridist" style="color: inherit; background-color: #ffffff; border: 0px; font-weight: bold; text-decoration: none; font-size: 14px;"&gt;Øystein&lt;/A&gt;, I realised there was an issue with the NLS if you were using the "add from file" option. updated here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.dropbox.com/s/lfz6s57gn2l9ciy/AddDataPortal.zip?dl=0" title="https://www.dropbox.com/s/lfz6s57gn2l9ciy/AddDataPortal.zip?dl=0"&gt;Dropbox - AddDataPortal.zip - Simplify your life&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2019 02:36:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/enabling-a-custom-geoprocessing-widget-in-wab/m-p/78769#M2249</guid>
      <dc:creator>DavidWilton</dc:creator>
      <dc:date>2019-12-03T02:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling a Custom Geoprocessing Widget in WAB Fails</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/enabling-a-custom-geoprocessing-widget-in-wab/m-p/1362674#M23321</link>
      <description>&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;It helped me a lot.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2023 17:45:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/enabling-a-custom-geoprocessing-widget-in-wab/m-p/1362674#M23321</guid>
      <dc:creator>Vara_PrasadM_S</dc:creator>
      <dc:date>2023-12-19T17:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling a Custom Geoprocessing Widget in WAB Fails</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/enabling-a-custom-geoprocessing-widget-in-wab/m-p/1375205#M23363</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/6536"&gt;@DavidWilton&lt;/a&gt;&amp;nbsp;thank you so much for sharing your widget code. I have the exactly the same issue and have been stuck with this for days...&lt;/P&gt;&lt;P&gt;Could you clarify what you did to get it to work was ONLY replacing the original "&lt;SPAN&gt;dojo/i18n!../nls/strings" to ".nls/strings" and creating local nls folders with those translation files?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Do I also need to make these two changes? If necessary, where do I look for these two places to change?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- the&amp;nbsp;RecordSetEditorChooser.js: 38 change "lang.mixin(this.nls, gpNls.&lt;/SPAN&gt;&lt;STRONG&gt;root&lt;/STRONG&gt;&lt;SPAN&gt;)"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-&amp;nbsp;data-dojo-type="widgets/AddData/search/ScopeOptions"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Many thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Wen&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jan 2024 01:52:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/enabling-a-custom-geoprocessing-widget-in-wab/m-p/1375205#M23363</guid>
      <dc:creator>WenhaoWu</dc:creator>
      <dc:date>2024-01-28T01:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling a Custom Geoprocessing Widget in WAB Fails</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/enabling-a-custom-geoprocessing-widget-in-wab/m-p/1375206#M23364</link>
      <description>&lt;P&gt;I reread your post and realized that the "&lt;SPAN&gt;RecordSetEditorChooser.js&lt;/SPAN&gt;" was referring to the Geoprocessing widget, so that's why I couldn't find it in the AddData widget....&lt;/P&gt;&lt;P&gt;and the&amp;nbsp;&lt;SPAN&gt;data-dojo-type="widgets/AddData/search/ScopeOptions" is something hopefully we don't need to modify, right?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jan 2024 01:55:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/enabling-a-custom-geoprocessing-widget-in-wab/m-p/1375206#M23364</guid>
      <dc:creator>WenhaoWu</dc:creator>
      <dc:date>2024-01-28T01:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling a Custom Geoprocessing Widget in WAB Fails</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/enabling-a-custom-geoprocessing-widget-in-wab/m-p/1375207#M23365</link>
      <description>&lt;P&gt;Also sir&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/6536"&gt;@DavidWilton&lt;/a&gt;&amp;nbsp;, when you get a chance, could I possibly get your input on my process of developing and deploying a custom widget? That'd be super helpful, and many many thanks!&lt;/P&gt;&lt;P&gt;My process is this:&lt;/P&gt;&lt;P&gt;- downloaded from the ArcGIS Web App Builder SDK:&amp;nbsp;&lt;A href="https://developers.arcgis.com/web-appbuilder/guide/getstarted.htm" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developers.arcgis.com/web-appbuilder/guide/getstarted.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;- went into the /server side folder and found the AddData widget folder where I need to make some changes to add a simple business logic for my use case&lt;/P&gt;&lt;P&gt;- tested the widget locally within the downloaded SDK/Dev Edition and it worked well&lt;/P&gt;&lt;P&gt;- packaged this modified AddData widget and uploaded and hosted on a Google GCP server with a Manifest JSON&lt;/P&gt;&lt;P&gt;- Add this widget as an App Extension using this Manifest JSON pointing to my custom AddData widget&lt;/P&gt;&lt;P&gt;- imported this custom widget to an existing Web map app I have on my ArcGIS Portal&lt;/P&gt;&lt;P&gt;- encountered the same error "ScriptError: ..../&lt;SPAN&gt;dojo/i18n!../nls/strings&lt;/SPAN&gt;" (but hopefully adding local relative nls folders can work?)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some additional tests I have done:&lt;/P&gt;&lt;P&gt;- I also checked my local server side widget folder, I found there are 15 Javascript files that contains this path&amp;nbsp;&lt;SPAN&gt;"dojo/i18n!../nls/strings" in their&amp;nbsp;&lt;STRONG&gt;define[]&lt;/STRONG&gt;&amp;nbsp;statement, as you had described above. I tried to replace this line with a direct URL link pointing to the strings.js file hosted on my GCP, but neither worked for my local environment or on the Portal. Another WAB out-of-box widget that contains this"dojo/i18n!../nls/strings" is the Edit widget. I even packaged this default Edit widget and tried importing it as a custom widget to my portal apps, but it gave me the same Script Error.....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Wen&lt;/P&gt;</description>
      <pubDate>Sun, 28 Jan 2024 01:58:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/enabling-a-custom-geoprocessing-widget-in-wab/m-p/1375207#M23365</guid>
      <dc:creator>WenhaoWu</dc:creator>
      <dc:date>2024-01-28T01:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling a Custom Geoprocessing Widget in WAB Fails</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/enabling-a-custom-geoprocessing-widget-in-wab/m-p/1420169#M23477</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No, it looks like an issue with the string being incorrectly built when the Dojo i18n loader is used, it's not a path resolution difference between the Enterprise portal and the developer's edition.&lt;/P&gt;&lt;P&gt;The ressource "dojo/i18n!../nls/strings" is supposed to resolve into something like "arcgis.example.com/widgets/AddDataStock/nls/strings&lt;STRONG&gt;.js&lt;/STRONG&gt;" and the localized file "arcgis.example.com/widgets/AddDataStock/nls/fr/strings&lt;STRONG&gt;.js&lt;/STRONG&gt;", with the resulting module being cached as "&lt;SPAN class=""&gt;arcgis.example.com/widgets/AddDataStock/nls/strings&lt;STRONG&gt;.js&lt;/STRONG&gt;/fr-fr&lt;/SPAN&gt;". When added to n enterprise portal, however, it instead resolves into "arcgis.example.com&lt;SPAN&gt;&lt;SPAN class=""&gt;/widgets/AddDataStock/&lt;U&gt;nls/strings&lt;/U&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;" when loaded by the dojo/i18n loader from a dojo module, like what the AddData and Edit widgets do. This misses the ".../strings.js/fr-fr" module already in cache and tries loading a file that does not exist. When using WAB dev edition, you'll notice no nls file gets loaded when opening either widgets, since they are loaded as the app launches.&lt;/P&gt;&lt;P&gt;The suggested workaround of just requiring "../nls/strings" with no i18n has the issue of completely disabling translations for all parts of the widget that loaded the strings this way, defaulting to english.&lt;/P&gt;&lt;P&gt;I can't say where the extra .js is normally supposed to come from (it's not &lt;A href="https://github.com/dojo/dojo/blob/185a4fb314de482a1b6b5668095b998da9c1b58f/i18n.js#L311" target="_blank" rel="noopener"&gt;the legacy loader checks&lt;/A&gt;, they don't run in the Dev edition anymore than in my enterprise portal). This is proving very unpleasent to debug, ans I certainly won't miss Dojo once we move to Experience Builder.&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 21:21:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/enabling-a-custom-geoprocessing-widget-in-wab/m-p/1420169#M23477</guid>
      <dc:creator>VLRoyrenn</dc:creator>
      <dc:date>2024-05-07T21:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling a Custom Geoprocessing Widget in WAB Fails</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/enabling-a-custom-geoprocessing-widget-in-wab/m-p/1420678#M23480</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it really looks like an interaction between the "dojo/i18n!" loader, Dojo's relative path resolution, the stock/custom widget path split in the Enterprise Portal, and possibly the _WidgetsInTemplateMixin.&lt;/P&gt;&lt;P&gt;Debugging imports inside minified AMD code bundles has proven frustrating enough that I'm not going to try figuring out the precise cause of the issue. I've instead completely removed all relative imports from the problematic widgets and replaced them with the likes of &lt;STRONG&gt;"dojo/i18n!widgets-custom/AddDataCustom/nls/strings"&lt;/STRONG&gt; and &lt;STRONG&gt;data-dojo-type="widgets-custom/AddDataCustom/search/ResultsPane"&lt;/STRONG&gt;, which seems to have solved it.&lt;/P&gt;&lt;P&gt;I have to declare my own &lt;STRONG&gt;widgets-custom&lt;/STRONG&gt; package in &lt;EM&gt;&lt;U&gt;ArcGIS/Portal/apps/webappviewer/init.js&lt;/U&gt;&lt;/EM&gt; in order to have a root location for the custom widget location in the Enterprise Portal, in my case &lt;U&gt;arcgis.example.com/widgets/&lt;/U&gt;, so that it can be correctly resolved.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;dojoConfig.packages = [{
    name: "widgets",
    location: window.path + "widgets"
}, {
    name: "widgets-custom",
    location: "//" + window.location.host + "/" + "widgets"
}, {
    // Keep everything else the same
}];&lt;/LI-CODE&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Note that dojoConfig.packages is declared in two separate locations in that file, you might need to change both.&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;WAB Dev edition can make a similar modification in `client/stemapp/init.js` and `server/apps/&amp;lt;n&amp;gt;/init.js` by just pointing to the same location as the widgets package, so the references are also valid there.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/759310"&gt;@WenhaoWu&lt;/a&gt;: That might solve your problem, in case you haven't found a workaround yet.&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 20:04:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/enabling-a-custom-geoprocessing-widget-in-wab/m-p/1420678#M23480</guid>
      <dc:creator>VLRoyrenn</dc:creator>
      <dc:date>2024-05-08T20:04:57Z</dc:date>
    </item>
  </channel>
</rss>

