Forum Discussion

bubbledep's avatar
bubbledep
Helper I
10 months ago
Solved

Composite Mode Doesn't Work

Hello everyone,   When I publish a report with only one connection as Direct Query, I can see the data clearly in the Power BI Service. But if I add any other connection as Import Query (Sharepoint...
  • v-sshirivolu's avatar
    v-sshirivolu
    10 months ago

    Hi bubbledep ,

    Thank you for sharing the additional details. The errors you’re seeing indicate that the current connection and authentication setup doesn’t align with what the Notion API requires. Unlike anonymous access, the Notion API needs an API token sent in the request headers for authentication. Because of this, setting the authentication to Anonymous will cause connection failures and bad request errors. To resolve this, you should use Power BI’s Web connector with a custom query that includes your Notion integration token as a Bearer token in the Authorization header. In Power Query Editor, you can use the Web.Contents function to call the API endpoint and pass the necessary headers, including the Authorization header and the Notion Version header. This way, authentication is handled correctly and should prevent the errors you’ve been encountering. Also, be sure your API request is formatted properly, especially if you’re making a POST request with a request body. For privacy levels, Organizational usually works well, but if issues persist, trying None temporarily can help with troubleshooting.