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

Announcements

News and Announcements icon
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
    22,792 Super User 2026 Season 1 on at
  • Suggested answer
    YUN ZHU Profile Picture
    101,995 Super User 2026 Season 1 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,353 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,808 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,371

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans