This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.
This article has been archived, and/or refers to legacy products, components or features. The content in this article is offered "as is" and will no longer be updated. Archived content is provided for reference purposes only. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.
The Email event is failing to send an email and the following errors are logged:
"Error 0 Mail send failure: EWS URL is not valid. Verify the connection strings are correct. Exception: The request failed. The remote server returned an error: (401) Unauthorized.Warning 0 Autodiscover used to determine valid EWS URL. Reconfigure K2 server to cache updated EWS URL and prevent autodiscover calls.Error 0 Autodiscover Failure: The Exchange server is not available, the password is incorrect or the e-mail address K2SERVICE@denallix.com does not exist.Error 28083 ServerEvent: SourceCode.Workflow.Common.EWS: Autodiscover Failure: The Exchange server is not available, the password is incorrect or the e-mail address K2SERVICE@denallix.com does not exist.InnerException: SourceCode.Workflow.Common.EWS: Autodiscover Failure: The Exchange server is not available, the password is incorrect or the e-mail address K2SERVICE@denallix.com does not exist"
The 'SourceCode.MessageBus.Ews..." connection strings had the 'User ID' as an email address 'email@example.com' instead of a 'domain\username' format.
Run the ConnectionStringEditor.exe tool located at "C:\Program Files (x86)\K2 blackpearl\Host Server\Bin". You may have to run this tool with the "Run as Administrator" option if it fails to load with RSA error.
Update the 'SourceCode.MessageBus.Ews..." connection strings and set the 'User ID' to the 'domain\username' format (DENALLIX\K2Service), save the changes and restart the K2 blackpearl service/console mode to resolve the issue.