Symptom
- While configuring an SMTP mail destination in SAP Build Process Automation (SBPA)as per Configure an SMTP Mail Destination, an error is encountered during the email testing phase.
- The mail server is hosted on Microsoft Azure.
- The error message displayed is "An unexpected error has occurred due to missing SMTP configuration".
- When SAP Support check internal logs, could find following error:
Mail server configuration error: com.sap.ipa.lib.email.dto.EmailResult@77aa2260[emailLogStatus=ERROR,error=Optional[com.sap.ipa.lib.email.dto.EmailError@7260ff7a[rejectedRecipients=[],type=MAIL_ERROR_LOADING_DESTINATION,validRecipients=[]]],message=Failed to read authentication token of destination 'sap_process_automation_mail'. The destination service responded with an error: 'AADSTS50034: The user account {EUII Hidden} does not exist in the XXX directory. To sign into this application, the account must be added to the directory. Trace ID: XXX Correlation ID: XXX Timestamp: 202X-XX-XX'. In case only the properties of a destination should be accessed, without performing authorization flows, please use the 'getDestinationProperties' method on 'DestinationService' instead.]
Or
Error message: The destination service did not return authorization data for destination 'sap_process_automation_mail' using authentication type 'OAuth2Password'. The error message returned was: 'AADSTS65001: The user or administrator has not consented to use the application with ID 'XXXX' named 'XXXXXXX'. Send an interactive authorization request for this user and resource. Trace ID: XXXX Correlation ID: XXXX Timestamp: 20XX-XX-XX XX:XX:XXZ'.Log ID:XXXX
- If customer check logs from Azure, could find similar error as above.
"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."
Read more...
Environment
SAP Build Process Automation (SBPA)
Product
Keywords
SBPA, SMTP Mail Destination, Azure account, OAuth2ClientCredentials, failed to read authentication token, misconfiguration, sap_process_automation_mail, user account does not exist, SMTP configuration, Azure, Mail Server, AADSTS50034, AADSTS65001, directory, consented, user account, authentication token, authorization flows, getDestinationProperties, DestinationService, authorization request. , KBA , BPI-PA-RT , SBPA Runtimes(Action RT, Mail RT, Destination-Auth,Mapping) , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.
SAP Knowledge Base Article - Preview