Skip to main content


 

Symptoms


While attempting to deploy one of the K2 SmartStarter available on the SmartSmarter Markeplace here: http://www.k2.com/products/marketplace/smartstarters, customer got the following error on the process deployment step: ??The following errors occurred while compiling the process(with framework version 4.5)?
See attached screenshot for more information.
 

Diagnoses


Taking the details in the error exception above literally one would be quick to assume the issue has something todo with the version of .NET installed i.e. not having the correct or proper version of the .NET Framework installed/etc.
However, looking in the Windows Event Error revealed a much detailed information as to root cause of the of the issue, see below:

30003 The following errors occurred while compiling the process (with framework version 4.5):
C:ProgramDataTemp39107e3a35c94242adc9e8c65e43847bProjectSystemAccessRequest.Workflow.Approval.kprx(0,0) : error : The field 'SmartForms Runtime' used in the Event Item on the 'Notify Originator' Server Event does not exist in the environment library. Create the required field where necessary.

C:ProgramDataTemp39107e3a35c94242adc9e8c65e43847bProjectSystemAccessRequest.Workflow.Approval.kprx(0,0) : error : The field 'SmartForms Runtime SSL' used in the Event Item on the 'Approve Request' Event does not exist in the environment library. Create the required field where necessary.

C:ProgramDataTemp39107e3a35c94242adc9e8c65e43847bProjectSystemAccessRequest.Workflow.Approval.kprx(0,0) : warning : A new Design Template is available for 'Update System Access Request' event configured on 'Declined' activity. Update to the latest Design Template and Deploy to ensure correct functionality by selecting 'Update Design Templates...' from the design canvas right-click menu and update the 'Update System Access Request' event configured on 'Declined' activity.
 

Resolution

As one can see from above, the compile error is due to SmartForms Designer/Runtime URL field variables that are missing in the target environment. This information was not readily surfaced in the PandD tool outside of the compile exception error.

The issue went away after these missing field variables were manually added via Workspace.
The issue itself appeared to have stemmed from the customer?s K2 environment not being configured to use SSL, which explains why the ?SmartForms Designer SSL? and ?SmartForms Runtime SSL? fields did not exist in their K2 environment.

A feature request has been logged for PandD to surface more useful information, regarding this kind of errors, that will help end users understand why they are seeing the compile error exception this way they know what needs to be done to fix it.




 
Be the first to reply!

Reply