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.

Issue

The following error is surfaced by SmartForms for different users at random times when they interact with K2 SmartForms (create/open/operate):

"The process cannot access the file 'C:\Program Files (x86)\K2 blackpearl\ServiceBroker\Logs\timestamp.log' because it is being used by another process".

Symptoms

This error indicates that SmO logging is enabled and actively used in the environment.

Resolution

Open K2HostServer.exe.config file (default location is "[InstallDrive]:\Program Files (x86)\K2 blackpearl\Host Server\Bin\") with a text editor and Change the "no" values to "yes" values for the last four lines, and keep your actual path to these files the same (unless you want them in a different location). In the default configuration/disabled logging state respective section of configuration file should look as follows:

   <logging>

      <serviceauthentication log="no" path="C:\Program Files (x86)\K2 blackpearl\ServiceBroker\Logs\serviceauth.log" overwrite="no" />

      <timestamping log="no" path="C:\Program Files (x86)\K2 blackpearl\ServiceBroker\Logs\timestamp.log" overwrite="no" />

      <brokerpackagein log="no" path="C:\Program Files (x86)\K2 blackpearl\ServiceBroker\Logs\brokerpackagein.log" overwrite="no" />

      <brokerpackageout log="no" path="C:\Program Files (x86)\K2 blackpearl\ServiceBroker\Logs\brokerpackageout.log" overwrite="no" />

      <servicepackagein log="no" path="C:\Program Files (x86)\K2 blackpearl\ServiceBroker\Logs\servicepackagein.log" overwrite="no" />

      <servicepackageout log="no" path="C:\Program Files (x86)\K2 blackpearl\ServiceBroker\Logs\servicepackageout.log" overwrite="no" />

    </logging>