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:

  1. Open the affected Form or View in K2 Designer.

  2. Navigate to the General options tab.

  3. Locate the Visible property.

  4. Ensure the checkbox is selected.

  5. Save and Finish.

  6. 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.

SQL
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

Popular posts from this blog

Blocking Error during K2 5.6 Server migration

Client Credentials flow with K2 Cloud with Odata, Workflow REST or SCIM

Blocking error RegisterServiceInstanceObjects when upgrading to K2 5.6/5.7