Skip to main content
Nintex Community Menu Bar

Smart Actions: email not sent or high disk space usage after 'ping pong' between K2 service accounts

  • February 16, 2021
  • 0 replies
  • 145 views

OlivierC
Nintex Employee
Forum|alt.badge.img+6

Issue

If you setup a workflow with a Client event (Task) with a destination of a Group that contains the K2 Service account from other environments, an email will be sent between K2 Service accounts from the different environments, effectively indefinite 'ping pong' between the two mailboxes. 
 

Error Code

The mailbox and following folder will grow large in size: C:Users<K2 Service Account>AppDataLocalTemp 

You might also see an issue on the mailbox itself and the emails will not send, and you will see the following error: 

 

61012 Exception from message source ServiceAccount@Company.com: System.NullReferenceException: Object reference not set to an instance of an object. at SourceCode.MessageBus.Ews.ExchangeWebServicesConnection.GetMessage(ItemIdType id, DefaultShapeNamesType shape, BodyTypeResponseType responseType) at SourceCode.MessageBus.Ews.ExchangeWebServicesConnection.OnMessageReceived(MessageType item) at SourceCode.MessageBus.Ews.ExchangeWebServicesConnection.<>c__DisplayClass33_0.<GetNextMessageAsync>b__2(Object s, FindItemCompletedEventArgs e) and lot of errors in K2 logs like: ..."61012 Exception from message source admin_k2@company.com: System.Web.Services.Protocols.SoapException: Server unavailable, please try later ..."61012 Exception from message source admin_k2@company.com: System.InvalidOperationException: The Exchange server responded with the error 'ErrorInternalServerError'. ..."61012 Exception from message source admin_k2@company.com: System.NullReferenceException: Object reference not set to an instance of an object ..."61012 Exception from message source admin_k2@company.com: System.Net.WebException: The operation has timed out ..."61012 Exception from message source admin_k2@company.com: System.Net.WebException: The request was aborted: The request was canceled ..."61012 Exception from message source admin_k2@company.com: System.Net.WebException: The request failed with HTTP status 401: Unauthorized. In French: Le serveur ne peut pas traiter cette demande maintenant. Réessayez plus tard. La référence d'objet n'est pas définie à une instance d'un objet. System.Net.WebException: Le délai d'attente de l'opération a expiré. System.Net.WebException: La demande a été abandonnée : La demande a été annulée. ---> System.Net.WebException: La demande a été annulée System.Net.WebException: La demande a échoué avec l'état HTTP 401 : Unauthorized.

 

Example of mail:

The K2 Server could not find the worklist item 5726_88. This item may haven been actioned by another user.
The full error from the K2 Server is "The worklist item 5726_88 is no longer available or you do not have rights to open it"'.

Hi Alert K2 production,
You've been forwarded a Task: Open Task

20056i1C93976AB7F85316.png

 

Resolution

 

To avoid to sending emails between different environments, remove the K2 service account from the group setup as a destination of the client event (Task).

To stop the automatic responses, do the following:


1. Stop the Windows service "K2 Server"
2. Clear the mailbox in both service accounts (Inbox part and after, deleted items)
3. Restart the Windows service "K2 Server"

 

To definitively avoid this type of issue in the future, we strongly advise to create a rule for each mailbox with two possibilities:

  1.  Create a rule to move the mail received by the other service account (from other environments) to a specific folder.
    Example:
    20057i009DCB71A95DE8B4.png

     

  2. OR create a rule to forbid to send an email to the other K2 service mail account.
    http://msexchangeguru.com/2014/01/19/o365-block-recipient-emailid/ 
    Example: k2.workflowqas@comapnyMail.com: create a rule to forbid mail to send to k2_notification@comapnyMail.com and k2.serviceaccountdev@comapnyMail.com

 

Translate
Did this topic help you find an answer to your question?

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings