Skip to main content

Notifications

Business Central forum
Answered

altpgen authentication failure

Posted on by
Hello,
 
I am trying to integrate my custom tables in Business Central with the Dataverse.
I followed Zhu's blog step by step but I keep getting below error. I tried searching for solutions but I could not find anything recent/relevant to my case.
 

PowerShell error:
Microsoft (R) AL Table Proxy Generator version 14.1.18.1238
Copyright (C) Microsoft Corporation. All rights reserved

Authenticating Dataverse using ServiceUri=
https://org[serviceURI].crm3.dynamics.com/
Authentication failure. Reason: One or more errors occurred. (Only loopback redirect uri is supported, but msal[redirectUri]://auth/ was found. Configure http://localhost or http://localhost:port both during app registration and when you create the PublicClientApplication object. See https://aka.ms/msal-net-os-browser for details)
error CDS0001: Error connecting to Dataverse.
Microsoft.Dynamics.Nav.Xrm.Common.XrmException: Failed to connect to Dataverse
at Microsoft.PowerPlatform.Dataverse.Client.ServiceClient.CreateServiceConnection(Object externalOrgServiceProxy, AuthenticationType requestedAuthType, String hostName, String port, String orgName, NetworkCredential credential, String userId,
SecureString password, String domain, String Geo, String claimsHomeRealm, Boolean useSsl, Boolean useUniqueInstance, OrganizationDetail orgDetail, String clientId, Uri redirectUri, PromptBehavior promptBehavior, OrganizationWebProxyClientAsync externalOrgWebProxyClient, String certificateThumbPrint, StoreName certificateStoreName, X509Certificate2 certificate, Uri instanceUrl, Boolean isCloned, Boolean useDefaultCreds, Version incomingOrgVersion, ILogger externalLogger, String tokenCacheStorePath)
at Microsoft.PowerPlatform.Dataverse.Client.ServiceClient..ctor(Uri instanceUrl, Func`2 tokenProviderFunction, Boolean useUniqueInstance, ILogger logger)
at Microsoft.Dynamics.Nav.Xrm.XrmService.<>c__DisplayClass11_0.b__0() in X:\Prod\Microsoft.Dynamics.Nav.Xrm\XrmService.cs:line 84
at Microsoft.Dynamics.Nav.Xrm.Common.XrmHelper.ExecuteXrm(Action action) in X:\Prod\Microsoft.Dynamics.Nav.Xrm\XrmHelper.cs:line 49

Categories:
  • Verified answer
    Valentin Castravet Profile Picture
    Valentin Castravet 23,639 Super User 2024 Season 2 on at

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,888 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,247 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans