<?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 ArcGIS GeoEnrichment createReport Error in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-geoenrichment-createreport-error/m-p/1689623#M88274</link>
    <description>&lt;P&gt;We are using &lt;STRONG&gt;ArcGIS JavaScript API 4.32.0 with a React (Vite) application&lt;/STRONG&gt; and the &lt;STRONG&gt;GeoEnrichment createReport service&lt;/STRONG&gt; to generate Demographic Reports.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Previously, the report generation and download worked using a &lt;STRONG&gt;static API Key&lt;/STRONG&gt;, but recently (Last Week) we observed that the service now requires &lt;STRONG&gt;token-based authentication with expiration&lt;/STRONG&gt;, meaning a new token must be generated periodically instead of using the API key directly.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Below is the error message . we have confirm that token is still valid, beacuse we are able to&amp;nbsp; featch the aviablable demographic list using the&amp;nbsp; status API key&amp;nbsp; :&amp;nbsp;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="c"&gt;{
  "error" : {
    "code" : 498,
    "message" : "Invalid token. (code = 498). [].",
    "details" : [ ]
  }
}&lt;/LI-CODE&gt;&lt;UL&gt;&lt;LI&gt;Additionally, we noticed some &lt;STRONG&gt;changes in the report response/PDF format&lt;/STRONG&gt;, which initially caused issues opening the downloaded report in different PDF clients.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Could you please confirm:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;If there has been a &lt;STRONG&gt;recent change in authentication requirements for the GeoEnrichment service&lt;/STRONG&gt;?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Whether &lt;STRONG&gt;API keys are no longer supported for report downloads&lt;/STRONG&gt; and &lt;STRONG&gt;OAuth/token authentication is now required&lt;/STRONG&gt;?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;If there were &lt;STRONG&gt;recent updates to the report generation or response format&lt;/STRONG&gt;?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;We are currently running this with &lt;STRONG&gt;ArcGIS JS API 4.32.0 in a React (Vite) environment&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Any clarification or documentation on these changes would be appreciated.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Mar 2026 11:20:05 GMT</pubDate>
    <dc:creator>Pramod_bahir</dc:creator>
    <dc:date>2026-03-10T11:20:05Z</dc:date>
    <item>
      <title>ArcGIS GeoEnrichment createReport Error</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-geoenrichment-createreport-error/m-p/1689623#M88274</link>
      <description>&lt;P&gt;We are using &lt;STRONG&gt;ArcGIS JavaScript API 4.32.0 with a React (Vite) application&lt;/STRONG&gt; and the &lt;STRONG&gt;GeoEnrichment createReport service&lt;/STRONG&gt; to generate Demographic Reports.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Previously, the report generation and download worked using a &lt;STRONG&gt;static API Key&lt;/STRONG&gt;, but recently (Last Week) we observed that the service now requires &lt;STRONG&gt;token-based authentication with expiration&lt;/STRONG&gt;, meaning a new token must be generated periodically instead of using the API key directly.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Below is the error message . we have confirm that token is still valid, beacuse we are able to&amp;nbsp; featch the aviablable demographic list using the&amp;nbsp; status API key&amp;nbsp; :&amp;nbsp;&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;LI-CODE lang="c"&gt;{
  "error" : {
    "code" : 498,
    "message" : "Invalid token. (code = 498). [].",
    "details" : [ ]
  }
}&lt;/LI-CODE&gt;&lt;UL&gt;&lt;LI&gt;Additionally, we noticed some &lt;STRONG&gt;changes in the report response/PDF format&lt;/STRONG&gt;, which initially caused issues opening the downloaded report in different PDF clients.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Could you please confirm:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;If there has been a &lt;STRONG&gt;recent change in authentication requirements for the GeoEnrichment service&lt;/STRONG&gt;?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Whether &lt;STRONG&gt;API keys are no longer supported for report downloads&lt;/STRONG&gt; and &lt;STRONG&gt;OAuth/token authentication is now required&lt;/STRONG&gt;?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;If there were &lt;STRONG&gt;recent updates to the report generation or response format&lt;/STRONG&gt;?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;We are currently running this with &lt;STRONG&gt;ArcGIS JS API 4.32.0 in a React (Vite) environment&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Any clarification or documentation on these changes would be appreciated.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2026 11:20:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-geoenrichment-createreport-error/m-p/1689623#M88274</guid>
      <dc:creator>Pramod_bahir</dc:creator>
      <dc:date>2026-03-10T11:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS GeoEnrichment createReport Error</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-geoenrichment-createreport-error/m-p/1702191#M88437</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/951891"&gt;@Pramod_bahir&lt;/a&gt;&amp;nbsp;- API key should still work for your &lt;SPAN&gt;Geoenrichment/CreateReport request as long as the API key is not expired and has GeoEnrichment service privilege enabled. You can check this in your ArcGIS API key item page. Can you test with your API key outside of your application first to confirm?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Example URL: &lt;A href="https://community.esri.com/" target="_blank"&gt;https://geoenrich.arcgis.com/arcgis/rest/services/World/geoenrichmentserver/GeoEnrichment/createReport?studyAreas=[{"geometry":{"x":-117.1956,"y":34.0572}}]&amp;amp;report=dandi&amp;amp;f=bin&amp;amp;format=PDF&amp;amp;token=&amp;lt;ACCESS_TOKEN&amp;gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Replace &amp;lt;ACCESS TOKEN&amp;gt; with your static API key. If you have a valid API key, it should download a pdf report.&amp;nbsp; If this works, the issue is likely with your web app and not the API key.&lt;BR /&gt;&lt;BR /&gt;Thanks,&amp;nbsp;&lt;BR /&gt;Shlok&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2026 21:10:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-geoenrichment-createreport-error/m-p/1702191#M88437</guid>
      <dc:creator>ShlokWagle7</dc:creator>
      <dc:date>2026-05-14T21:10:10Z</dc:date>
    </item>
  </channel>
</rss>

