web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

SMTP "The Azure AD Authentication Flow provider has not been initialised"

(3) ShareShare
ReportReport
Posted on by 8
Hi BC community,
 
I am getting an error when trying to authenticate an SMTP email account in D365 BC. 
 
The Azure AD Authentication Flow provider has not been initialised.
Internal session ID: 
61ca65be-fc23-4104-9aa6-0a9c183c13cc
Application Insights session ID: 
8072b523-853c-429f-854d-bbd227311d05
Client activity id: 
5d6bbc68-4828-1c8e-da72-3608625a2a1a
Time stamp on error: 
2023-12-08T01:59:02.3166140Z
AL call stack: 
/Azure AD Auth Flow/(CodeUnit 6303).CheckProvider line 10 - Base Application by Microsoft
/Azure AD Auth Flow/(CodeUnit 6303).AcquireTokenByAuthorizationCodeWithCredentials - Base Application by Microsoft
/Azure AD Mgt./(CodeUnit 6300).AcquireTokenByAuthorizationCode - Base Application by Microsoft
/OAuth2 SMTP Authentication/(CodeUnit 4516).AuthenticateWithOAuth2 - Email - SMTP Connector by Microsoft
/SMTP Account/(Page 4512)./Authenticate with OAuth 2.0 - OnAction/(Trigger) line 4 - Email - SMTP Connector by Microsoft
 
 
An identical configuration and extension versions are working in a sandbox environment.
 
Has anyone seen a fix from MS on this issue?
 
I have the same question (0)
  • Suggested answer
    Judy Profile Picture
    Microsoft Employee on at
    Hi Sir,
     
    Can you please check if you have correctly configured the SMTP email settings in D365 business cemental and If the SMTP server, port, and authentication details are accurate.
    Since the error messages indicates that the Azure AD Authentication Flow provider has not been properly configured or initialized in your application.
    Please Double check if you have correctly registered your application in Azure AD and obtained the necessary client ID and client secret.
    The reference Document:
     
    Best Regards,
    Judy
  • Lychees Profile Picture
    4 on at
    Hi Judy,
     
    I can confirm I have followed the above steps. The app registration is also successfully sending in a sandbox environment.
  • Judy Profile Picture
    Microsoft Employee on at
    Hi Sir, 
    If the issue persists, it is highly recommended that you submit a request to Microsoft support for further investigation so that you can get this issue resolved more effectively.
     
    Best Regards,
    Judy
  • CU01090949-2 Profile Picture
    4 on at
    The same in BC25 onprem. The thing is the table 6303 is empty. It is fulfilled on company init, but I have the company upgraded. I imported data there via Configuration package (Auth Flow Codeunit ID = 6303; Azure AD User Mgt. Codeunit ID = 9010) and it works.
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    20,439 Super User 2025 Season 2 on at
  • Suggested answer
    YUN ZHU Profile Picture
    95,595 Super User 2025 Season 2 on at
    Hi, It seems to be related to the update of Auth 2.0 for SMTP authentication. If all environments are the same, it is best to submit a SR to Microsoft to assist in investigation.
     
    Thanks.
    ZHU

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,010

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,270 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,085 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans