RE: Power BI integration with On-Premise Business Central
Hello,
The Azure AD app must be configured as a multi tenant Azure AD app. You can easily check this by looking at the bottom of the manifest file in the Azure AD app. The key is called SignInAudience. This must be of type AzureADMultipleOrgs. Anything else like AzureADMyOrg will not work.
The table Token Cache will in the event of a success get a value. If it shows a wrong E-mail address, the consent is applied to a different account and PowerBi will not work with the new account (same error as shown here).
Yesterday I had the same issue which I was able to resolve (multiple accounts that I use for testing, multiple tests done, one tenant, one database).
Thanks.