Skip to main content


 

Symptoms

 


When a task is assigned to a user they respond by email with an action like "Approve", only one email is sent but K2 processes it twice.

 

As a result user either gets two emails saying "You successfully completed the task with the 'Approve' action"

 

 

 

Or he gets one that says this and another that says:

 

 

 

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

 

 

 

Diagnoses

 


Verify the connection strings configuration using the ConnectionStringEditor.exe (C:Program Files (x86)K2 blackpearlHost Serverin) and make sure that there is no duplicate SourceCode.MessageBus.Ews.ExchangeWebServicesConnection strings.

 

 

 

In case you have duplicate connection strings, then each of these will be polling the SmartActions mailbox and processing new messages, generating two response emails.

 

 

 

Resolution

 

 

 

You have to decrypt connection strings which are stored in K2HostServer.exe.config in encrypted form, then in plain text connection strings section remove additional connection string and save config file with plain text connection strings - once K2 service will be started it will encrypt your connection strings. Detailed steps can be found below:

 


- Copy the K2HostServer.exe.config file from the C:Program Files (x86)K2 blackpearlHost Serverin folder to C:Temp and rename it web.config.

- Open a command prompt and change the directory to C:WindowsMicrosoft.NETFrameworkv2.0.5727 and run the following command:
aspnet_regiis -pdf "connectionStrings" C:Temp

This decrypts the connection string section in the file.

- Delete the superfluous SourceCode.MessageBus.Ews.ExchangeWebServicesConnection string
- Rename the file back to K2HostServer.exe.config and copy it back into the Host Server/bin directory (after renaming the current running configuration to K2HostServer.exe.config_old to prevent it from being overwritten)
- Restart the K2 service and checked the ConnectionStringEditor to verify that the string has been removed.

SmartActions emails should now only be processed once.

 

 



 
Be the first to reply!

Reply