Troubleshooting Blank K2 Forms After a K2 Upgrade
Ever performed a routine K2 Upgrade with no error only to find your forms and views have pulled a vanishing act? It’s a frustrating scenario: everything looks perfect in K2 Designer, but at runtime, you're greeted with discouraging blank screen.
If you’re staring at a white page where a business process used to be, don't panic. You likely aren't looking at a broken installation, but rather the result of a bug fix working exactly as intended.
The Cause: When a Bug Becomes a Feature
In older versions of K2, a specific bug allowed forms and views to remain visible during runtime even if their Visibility property was explicitly set to "False".
Because the setting didn't actually hide anything, many developers inadvertently unchecked the "Visible" box or left it disabled without realizing it. Once you upgrade to a version with this fix, K2 "corrects" this behavior. The system begins honoring that checkbox again, causing those forms to disappear from the end-user's view as instructed by the metadata.
The Quick Fix: K2 Designer
If you only have one or two problematic forms, the manual fix is straightforward:
Open the affected Form or View in K2 Designer.
Navigate to the General options tab.
Locate the Visible property.
Ensure the checkbox is selected.
Save and Finish.
Check it in.
Proactive Discovery: The SQL Shortcut
If you manage a large environment, checking every form manually is a chore. You can quickly audit your entire database to find hidden forms using the following SQL script. This query scans the Form XML properties to identify any items where IsVisible is set to false.
SELECT
[Name],
[DisplayName],
[Properties]
FROM [Form].[Form]
WHERE CAST(Properties AS VARCHAR(MAX)) LIKE '%IsVisible</Name>%<Value>false%'
AND CreatedBy <> 'K2SQL:System'
Note: Perform the Visible property updates through the K2 Designer interface to maintain environment integrity.
Comments
Post a Comment