All workflow related SmartForms are showing an error message "definition"

  • 16 February 2021
  • 0 replies
  • 37 views

Userlevel 5
Badge +20
 

All workflow related SmartForms are showing an error message "definition"

kbt134230

PRODUCT
K2 blackpearl
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

When opening up a workflow related SmartForm, an error will be shown which will prevent you from working on the Form.

Symptoms

The following error is shown:

 

Image

 

Error message:

"definition

Type: System.ArgumentException

Source: SourceCode.Forms

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 blackpearlK2 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: 

http://help.k2.com/support-services/kbs100015

Resolution

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 blackpearlK2 smartforms RuntimeWeb.config

 

Once you have made this change you will need to restart IIS and the K2 Service

0 replies

Be the first to reply!

Reply