Skip to main content

When we try to configure an Escalation using "Escalate On" and process datafield for the date/time parameter, we're getting a "Template not found" error.

Some Details

1. Create a Data process datafield called MyDate

2. While trying to select a Process Datafield for the Date and Time parameter of an E-Mail Escalate On Escalation, we clicked the button and selected a process datafield (see below).

3. After we selected the MyDate field and clicked OK, the following error message appeared.


See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Exception: Template not found
at SourceCode.K2Utilities.GeneralMod.GetFieldLabel(Process oProcess, String K2String, Boolean ReturnEmpty)
at SourceCode.K2Utilities.DataViewButton.DataViewButton_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.985
CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
SCVBCodeEditorLib
Assembly Version: 0.0.0.0
Win32 Version: 1.0.0.1
CodeBase: file:///C:/Program%20Files/K2.net%202003/Bin/SCVBCodeEditorLib.dll
----------------------------------------
K2Studio
Assembly Version: 0.0.0.0
Win32 Version: 3, 4250, 1, 0
CodeBase: file:///C:/Program%20Files/K2.net%202003/Bin/k2studio.exe
----------------------------------------
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.968
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
System.Xml
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.968
CodeBase: file:///c:/windows/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll
----------------------------------------
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
EL_K2StudioTemplates
Assembly Version: 3.3279.1.0
Win32 Version: 3.3279.1.0
CodeBase: file:///C:/Program%20Files/K2.net%202003/Bin/EL_K2StudioTemplates.DLL
----------------------------------------
K2PTI
Assembly Version: 3.3279.1.0
Win32 Version: 3.3279.1.0
CodeBase: file:///C:/Program%20Files/K2.net%202003/Bin/K2PTI.DLL
----------------------------------------
Interop.K2Studio
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/K2.net%202003/Bin/Interop.K2Studio.DLL
----------------------------------------
K2InfoPath
Assembly Version: 3.4250.1.0
Win32 Version: 3.4250.1.0
CodeBase: file:///C:/Program%20Files/K2.net%202003/Bin/K2InfoPath.DLL
----------------------------------------
SourceCode.K2BizTalk2004.RuleEngine
Assembly Version: 3.4250.1.0
Win32 Version: 3.4250.1.0
CodeBase: file:///C:/Program%20Files/K2.net%202003/Bin/SourceCode.K2BizTalk2004.RuleEngine.DLL
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 7.0.5000.0
Win32 Version: 7.10.3052.4
CodeBase: file:///c:/windows/assembly/gac/microsoft.visualbasic/7.0.5000.0__b03f5f7f11d50a3a/microsoft.visualbasic.dll
----------------------------------------
Cvh_K2StudioTemplates
Assembly Version: 3.4250.1.0
Win32 Version: 3.4250.1.0
CodeBase: file:///C:/Program%20Files/K2.net%202003/Bin/Cvh_K2StudioTemplates.DLL
----------------------------------------
HE_K2StudioTemplates
Assembly Version: 3.4250.1.0
Win32 Version: 3.4250.1.0
CodeBase: file:///C:/Program%20Files/K2.net%202003/Bin/HE_K2StudioTemplates.DLL
----------------------------------------
K2Utilities
Assembly Version: 3.4250.1.0
Win32 Version: 3.4250.1.0
CodeBase: file:///C:/Program%20Files/K2.net%202003/Bin/K2Utilities.DLL
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
K2SQL
Assembly Version: 3.4250.1.0
Win32 Version: 3.4250.1.0
CodeBase: file:///C:/Program%20Files/K2.net%202003/Bin/K2SQL.DLL
----------------------------------------
K2Encoding
Assembly Version: 3.4250.1.0
Win32 Version: 3.4250.1.0
CodeBase: file:///C:/Program%20Files/K2.net%202003/Bin/K2Encoding.DLL
----------------------------------------
K2SharePoint2
Assembly Version: 3.4250.1.0
Win32 Version: 3.4250.1.0
CodeBase: file:///C:/Program%20Files/K2.net%202003/Bin/K2SharePoint2.DLL
----------------------------------------
BTSOrcTemplate
Assembly Version: 3.4250.1.0
Win32 Version: 3.4250.1.0
CodeBase: file:///C:/Program%20Files/K2.net%202003/Bin/BTSOrcTemplate.DLL
----------------------------------------
KO
Assembly Version: 3.3295.1.0
Win32 Version: 3, 4250, 1, 0
CodeBase: file:///C:/Program%20Files/K2.net%202003/Bin/KO.dll
----------------------------------------
System.ServiceProcess
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/system.serviceprocess/1.0.5000.0__b03f5f7f11d50a3a/system.serviceprocess.dll
----------------------------------------
System.Web
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.968
CodeBase: file:///c:/windows/assembly/gac/system.web/1.0.5000.0__b03f5f7f11d50a3a/system.web.dll
----------------------------------------
System.DirectoryServices
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/system.directoryservices/1.0.5000.0__b03f5f7f11d50a3a/system.directoryservices.dll
----------------------------------------
K2Base64
Assembly Version: 3.4250.1.0
Win32 Version: 1.0.0.1
CodeBase: file:///C:/Program%20Files/K2.net%202003/Bin/SCVBCodeEditorLib.dll
----------------------------------------
Cvh_K2StudioPropertyTemplates
Assembly Version: 3.4250.1.0
Win32 Version: 3.4250.1.0
CodeBase: file:///C:/Program%20Files/K2.net%202003/Bin/Cvh_K2StudioPropertyTemplates.DLL
----------------------------------------
Accessibility
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/accessibility/1.0.5000.0__b03f5f7f11d50a3a/accessibility.dll
----------------------------------------
2w4gacjr
Assembly Version: 0.0.0.0
Win32 Version: 1.1.4322.968
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
egny5rxj
Assembly Version: 0.0.0.0
Win32 Version: 1.1.4322.968
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
kgrcfapc
Assembly Version: 0.0.0.0
Win32 Version: 1.1.4322.968
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
K2Prop
Assembly Version: 3.4250.1.0
Win32 Version: 3.4250.1.0
CodeBase: file:///C:/Program%20Files/K2.net%202003/Bin/K2Prop.DLL
----------------------------------------
LR_K2StudioPropertyTemplates
Assembly Version: 3.4250.1.0
Win32 Version: 3.4250.1.0
CodeBase: file:///C:/Program%20Files/K2.net%202003/Bin/LR_K2StudioPropertyTemplates.DLL
----------------------------------------
ieanrtm-
Assembly Version: 0.0.0.0
Win32 Version: 1.1.4322.968
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------

************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this
application or machine (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the machine
rather than being handled by this dialog.

Hi,

My guess is that one of the PropertyTemplates is missing. To be safe lets check all of the Escalation Templates and PropertyTemplates:

Step 1
- In K2.net Studio, click Tools/Templates menu
- Select Escalation in the list, you should have the following:

Name: Default
Assembly: Cvh_K2StudioPropertyTemplates.dll
Type: SourceCode.K2StudioTemplates.EmptyEscalation

Name: Email
Assembly: Cvh_K2StudioPropertyTemplates.dll
Type: SourceCode.K2StudioTemplates. EscalationMail

Name: Goto
Assembly: Cvh_K2StudioPropertyTemplates.dll
Type: SourceCode.K2StudioTemplates.GotoEscalation

Step 2
- In K2.net Studio, click Tools/Property Templates menu
- Select Escalation General in the list, you should have the following:

Name: Default
Assembly: LR_K2StudioPropertyTemplates.dll
Type: SourceCode.K2StudioPropertyTemplates.EscalationGeneral

Step 3
- Select Escalation Rule in the list, you should have the following:

Name: Default
Assembly: Cvh_K2StudioPropertyTemplates.dll
Type: SourceCode.K2StudioPropertyTemplates.EscalationRule

Step 4
- Select Escalation Action in the list, you should have the following:

Name: Default
Assembly: Cvh_K2StudioPropertyTemplates.dll
Type: SourceCode.K2StudioPropertyTemplates.EmptyEscalation

Name: Email
Assembly: Cvh_K2StudioPropertyTemplates.dll
Type: SourceCode.K2StudioPropertyTemplates. EscalationMail

Name: Goto
Assembly: Cvh_K2StudioPropertyTemplates.dll
Type: SourceCode.K2StudioPropertyTemplates.GotoEscalation


Note that if any one of the above mentioned Templates or PropertyTemplates are missing register them manually. Cvh_K2StudioPropertyTemplates.dll and LR_K2StudioPropertyTemplates.dll can be located in the K2.net 2003 Bin directory.
There is no apparent problem with these template settings.

Yesterday, we opened SR #3738 and have attached a ZIP of the project and steps to reproduce this problem.

We need an urgent reply and resolution.

Michael.

p.s. We don't have this problem wiith other K2 projects ...only this particular one.
Please give us an update once the Support team resolved the issue!
As far as I know, the client is still busy testing resolution but the problem was traced to the process template not being defined. When creating K2.net 2003 Solutions through the K2Studio object model, you need to 'attach' a process template to the process with the following line of code:
MyK2Process.Template = MyK2Process.Application.Templates.Process.Item(0)

Let us know if this was in fact the problem.

Regards,
Ockert

Reply