Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Answered

altpgen authentication failure

(1) ShareShare
ReportReport
Posted on by 5
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

  • Verified answer
    Valentin Castravet Profile Picture
    Valentin Castravet 24,961 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,431 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,503 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans