<?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 Accessing Feature Service Data in PowerBI Using OAUTH - Token Issues in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/accessing-feature-service-data-in-powerbi-using/m-p/1388299#M38788</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am having trouble with tokens generated in my PowerBI query that I've tweaked from the workflow located in this post:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-online-questions/using-excel-to-access-arcgis-online-automated/td-p/486804" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-online-questions/using-excel-to-access-arcgis-online-automated/td-p/486804&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I couldn't find any answers in the linked post to fix my issue - so I've resorted to creating my first post on these forums.&lt;/P&gt;&lt;P&gt;I have recently been getting an error when I try to add additional queries that I am getting an invalid token. This is bizarre as the queries are on the same feature service, just different tables within the feature service.&lt;/P&gt;&lt;P&gt;When I switch the client ID and client secret within the query to those of a new application on the Portal, it allows both of the tables within the feature service to be queries - so I am thinking it is an issue with the token being generated from the original client ID and client secret that is expiring.&lt;/P&gt;&lt;P&gt;I've included a screenshot of the query with the sensitive information removed - is anyone able to provide some insight on functionality I should/could add to fix the token from expiring? I essentially want to set this up so you just have to replace the relative path in the&amp;nbsp;&lt;EM&gt;Get Data&amp;nbsp;&lt;/EM&gt;section and it will query a new feature service.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PowerBI Query" style="width: 482px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/96185i9391F2199E2B728B/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-02-28_12h46_16.png" alt="2024-02-28_12h46_16.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Feb 2024 20:51:24 GMT</pubDate>
    <dc:creator>samc-gis</dc:creator>
    <dc:date>2024-02-28T20:51:24Z</dc:date>
    <item>
      <title>Accessing Feature Service Data in PowerBI Using OAUTH - Token Issues</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/accessing-feature-service-data-in-powerbi-using/m-p/1388299#M38788</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am having trouble with tokens generated in my PowerBI query that I've tweaked from the workflow located in this post:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-online-questions/using-excel-to-access-arcgis-online-automated/td-p/486804" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/arcgis-online-questions/using-excel-to-access-arcgis-online-automated/td-p/486804&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I couldn't find any answers in the linked post to fix my issue - so I've resorted to creating my first post on these forums.&lt;/P&gt;&lt;P&gt;I have recently been getting an error when I try to add additional queries that I am getting an invalid token. This is bizarre as the queries are on the same feature service, just different tables within the feature service.&lt;/P&gt;&lt;P&gt;When I switch the client ID and client secret within the query to those of a new application on the Portal, it allows both of the tables within the feature service to be queries - so I am thinking it is an issue with the token being generated from the original client ID and client secret that is expiring.&lt;/P&gt;&lt;P&gt;I've included a screenshot of the query with the sensitive information removed - is anyone able to provide some insight on functionality I should/could add to fix the token from expiring? I essentially want to set this up so you just have to replace the relative path in the&amp;nbsp;&lt;EM&gt;Get Data&amp;nbsp;&lt;/EM&gt;section and it will query a new feature service.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PowerBI Query" style="width: 482px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/96185i9391F2199E2B728B/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-02-28_12h46_16.png" alt="2024-02-28_12h46_16.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 20:51:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/accessing-feature-service-data-in-powerbi-using/m-p/1388299#M38788</guid>
      <dc:creator>samc-gis</dc:creator>
      <dc:date>2024-02-28T20:51:24Z</dc:date>
    </item>
  </channel>
</rss>

