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.
When opening up a workflow related SmartForm, an error will be shown which will prevent you from working on the Form.
The following error is shown:
Method Base ◦Member Type: Method ◦Name: FromXml ◦Module
Scope Name: SourceCode.Forms.dll ◦Declaring Type
Full Name: SourceCode.Forms.Runtime.Execution.BrokerPackageCollection
Stack Trace: at SourceCode.Forms.Runtime.Execution.BrokerPackageCollection.FromXml(String definition) at SourceCode.Forms.Runtime.Execution.BrokerPackageCollection.Get(String xml, Boolean& wasCached) at SourceCode.Forms.AppFramework.FormRuntime.WorkXmlToApi(Stream input, Stream output) at SourceCode.Forms.Runtime.AJAXCall.ProcessRequestInternal(HttpContext context)"
The issue occurs because of a setting in the Web.config file located on your K2 Environment under the following path: [Drive]:\[Program Files]\K2 blackpearl\K2 smartforms Runtime
If you have this setting enabled:
- <add key="TraceFilter" value="FormRuntime"/>
And you have this set to true:
- <add name="EnableTracing" value="false" />
You will experience the error mentioned above.
For more information on this config file, please have a look at this link:
This has been identified as bug in the product. To fix the issue, please change this setting to false:
<add name="EnableTracing" value="false" />
[Drive]:\[Program Files]\K2 blackpearl\K2 smartforms Runtime\Web.config
Once you have made this change you will need to restart IIS and the K2 Service