ERRO

A mensagem de erro, URL inválida" é retornada ao navegar do ArcGIS Maps for Power BI para um ambiente ArcGIS Enterprise que especifica Permitir Origens no Portal for ArcGIS"

Last Published: May 6, 2024

Descrição

By default, an ArcGIS Enterprise portal allows cross-domain requests via Cross-Origin Resource Sharing (CORS). This means a JavaScript client such as a web application hosted on any domain can connect to your portal's resources.

Causa

If your ArcGIS Enterprise portal has CORS configured to restrict cross-domain requests to your portal, Power BI Desktop will not function as expected, as described in BUG-000133837.

Solução Provisória

If using ArcGIS Enterprise 10.7.1 or later, an administrator of your ArcGIS Enterprise organization can configure CORS to allow requests that originate from Power BI. 

To add Power BI to the allowed origins, do the following:

  1. Verify that you are signed in to your ArcGIS Enterprise organization and have privileges to manage the organization.
  2. Sign in to the sharing API using the URL:
https://webadaptorhost.domain.com/webadaptorname/sharing/rest
Note: 
To complete this step, HTML access to the sharing API must be enabled. On many secured environments, HTML access to the sharing API is restricted. To enable HTML access to the sharing API, the disableServicesDirectory property under https://webadaptorhost.domain.com/webadaptorname/portaladmin/security/config must be set to false.
  1. Once signed in, access: https://webadaptorhost.domain.com/webadaptorname/sharing/rest/portals/self
  2. Scroll to the bottom of the page and click Update.
  3. On the newly loaded page, scroll down and find the Allowed Origins box.
    • Origins are comma separated without any spaces, quotes, or square brackets.
  4. Copy the following text into the Allowed Origins to add the Power BI origins.
http://pbi.microsoft.com,https://pbi.microsoft.com,ms-pbi://pbi.microsoft.com,https://ms-pbi.pbi.microsoft.com,https://app.powerbi.com/
  1. Click Update Organization.

The Power BI origin is added to the allowed origins. The changes take effect immediately, without the need to restart the portal.

  1.  If HTML access was enabled in step 2, to complete this workflow, the access should be disabled again. To do so, go to https://webadaptorhost.domain.com/webadaptorname/portaladmin/security/config and set the disableServicesDirectory property to True.

ID do Artigo:000025550

Receba notificações e encontre soluções para problemas novos ou comuns

Obtenha respostas resumidas e soluções de vídeo do nosso novo chatbot de IA.

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download