<?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 Error in fetching asset title fields. Error: token required in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/error-in-fetching-asset-title-fields-error-token/m-p/754172#M19768</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on developing the Adopt-A-Catch Basin OOTB solution from ESRI. I got the web map set up, configured the AuthGP service, and am now in WAB developer. I am able to sign up in app with a valid email (creates a record in my registered user table, but if try to use the Login function, I receive the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I opened the AuthGP arcpy and searched and found this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def get_asset_titlefields(asset_layer, wconfig):&lt;BR /&gt; """ read widget configuration to get nicknamefield&lt;BR /&gt; # read popup title parameter&lt;BR /&gt; # read layer info to find display_field&lt;BR /&gt; # read layer info to find objectid field&lt;BR /&gt; # return dict of titlefields&lt;BR /&gt; """&lt;BR /&gt; # get popup title&lt;BR /&gt; try:&lt;BR /&gt; asset_titlefields = {}&lt;BR /&gt; asset_titlefields["popupfields"] = []&lt;BR /&gt; asset_titlefields["popuptitle"] = ''&lt;BR /&gt; asset_titlefields["layername"] = asset_layer.properties.name&lt;BR /&gt; try:&lt;BR /&gt; if len(asset_popup_config) &amp;gt; 0:&lt;BR /&gt; popupfields = findall(r"\{(.*?)\}", asset_popup_config)&lt;BR /&gt; asset_titlefields["popupfields"] = popupfields&lt;BR /&gt; asset_titlefields["popuptitle"] = asset_popup_config&lt;BR /&gt; except Exception as e:&lt;BR /&gt; send_msg("Error in fetching configured popup title. Error: {0}".format(str(e)), "error")&lt;/P&gt;&lt;P&gt;# these are always present&lt;BR /&gt; asset_titlefields["nicknamefield"] = wconfig.get("nickNameField")&lt;BR /&gt; asset_titlefields["displayfield"] = asset_layer.properties.displayField&lt;BR /&gt; #asset_titlefields["objectidfield"] = asset_layer.objectIdField&lt;BR /&gt; asset_titlefields["objectidfield"] = asset_layer.properties.fields[0].name&lt;/P&gt;&lt;P&gt;return asset_titlefields&lt;BR /&gt; except Exception as e:&lt;BR /&gt; send_msg("Error in fetching asset title fields. Error: {0}".format(str(e)), "error")&lt;BR /&gt; return False&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="screenshot" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/499647_error_fetching.JPG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jul 2020 11:17:31 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2020-07-09T11:17:31Z</dc:date>
    <item>
      <title>Error in fetching asset title fields. Error: token required</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/error-in-fetching-asset-title-fields-error-token/m-p/754172#M19768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on developing the Adopt-A-Catch Basin OOTB solution from ESRI. I got the web map set up, configured the AuthGP service, and am now in WAB developer. I am able to sign up in app with a valid email (creates a record in my registered user table, but if try to use the Login function, I receive the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I opened the AuthGP arcpy and searched and found this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def get_asset_titlefields(asset_layer, wconfig):&lt;BR /&gt; """ read widget configuration to get nicknamefield&lt;BR /&gt; # read popup title parameter&lt;BR /&gt; # read layer info to find display_field&lt;BR /&gt; # read layer info to find objectid field&lt;BR /&gt; # return dict of titlefields&lt;BR /&gt; """&lt;BR /&gt; # get popup title&lt;BR /&gt; try:&lt;BR /&gt; asset_titlefields = {}&lt;BR /&gt; asset_titlefields["popupfields"] = []&lt;BR /&gt; asset_titlefields["popuptitle"] = ''&lt;BR /&gt; asset_titlefields["layername"] = asset_layer.properties.name&lt;BR /&gt; try:&lt;BR /&gt; if len(asset_popup_config) &amp;gt; 0:&lt;BR /&gt; popupfields = findall(r"\{(.*?)\}", asset_popup_config)&lt;BR /&gt; asset_titlefields["popupfields"] = popupfields&lt;BR /&gt; asset_titlefields["popuptitle"] = asset_popup_config&lt;BR /&gt; except Exception as e:&lt;BR /&gt; send_msg("Error in fetching configured popup title. Error: {0}".format(str(e)), "error")&lt;/P&gt;&lt;P&gt;# these are always present&lt;BR /&gt; asset_titlefields["nicknamefield"] = wconfig.get("nickNameField")&lt;BR /&gt; asset_titlefields["displayfield"] = asset_layer.properties.displayField&lt;BR /&gt; #asset_titlefields["objectidfield"] = asset_layer.objectIdField&lt;BR /&gt; asset_titlefields["objectidfield"] = asset_layer.properties.fields[0].name&lt;/P&gt;&lt;P&gt;return asset_titlefields&lt;BR /&gt; except Exception as e:&lt;BR /&gt; send_msg("Error in fetching asset title fields. Error: {0}".format(str(e)), "error")&lt;BR /&gt; return False&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="screenshot" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/499647_error_fetching.JPG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2020 11:17:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/error-in-fetching-asset-title-fields-error-token/m-p/754172#M19768</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-07-09T11:17:31Z</dc:date>
    </item>
  </channel>
</rss>

