Error Message
When attempting to log in to ArcGIS for Power BI using an ArcGIS Enterprise account and with a valid ArcGIS Enterprise URL, the process fails and returns the following error:
Error:
The specified ArcGIS Online (or ArcGIS Enterprise) URL is not valid.
Cause
- Cross-Origin Resource Sharing (CORS) is not properly configured in the ArcGIS Enterprise portal to allow requests from ArcGIS for Power BI.
- The Internet Information Services (IIS) server for the ArcGIS Enterprise portal's Web Adaptor is misconfigured to send two Access-Control-Allow-Origins headers in its response. One header specifies the correct domain, https://app.powerbi.com, while the other uses a wildcard, which is not permitted under the Cross-Origin Resource Sharing (CORS) policy.
Solution or Workaround
Depending on the cause, use one of the following workflows to resolve the error.
Configure Cross-Origin Resource Sharing (CORS) in the ArcGIS Enterprise portal
Configure Cross-Origin Resource Sharing (CORS) in the ArcGIS Enterprise portal to allow requests from ArcGIS for Power BI. Refer to ArcGIS for Microsoft: Configure ArcGIS Enterprise cross-origin resource sharing for additional information.
Remove the wildcard header from the Internet Information Services (IIS) server
- On the machine hosting the ArcGIS Enterprise portal, in the Windows search bar, type IIS and click the Internet Information Services (IIS) Manager icon.
- In the Connections pane, expand the machine name, and expand Sites > Default Web Site.
- Select portal and double-click HTTP Response Headers.
- Under HTTP Response Headers, select the entry with the wildcard value and click Remove.