An error appears when editing rules on a form after deploying package solution

  • 15 February 2022
  • 0 replies
  • 9 views

Userlevel 5
Badge +20
 

An error appears when editing rules on a form after deploying package solution: 'Object reference not set to an instance of an object.'

kbt143872

PRODUCT
K2 smartforms
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.
LEGACY/ARCHIVED CONTENT
This article has been archived, and/or refers to legacy products, components or features. The content in this article is offered "as is" and will no longer be updated. Archived content is provided for reference purposes only. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.

Issue

After deploying a package solution to the server, you are unable to edit rules in forms and the error message appears as below:

 

'Object reference not set to an instance of an object'

 

Image

Symptoms

1. You are unable to edit rules on some Forms. For other Forms or Views you can edit the rules normally.

 

2. There are errors in the host server logs as below:

 

"SourceCode.Runtime.Services.Forms","1 RuleHelper utility was unable to retrieve friendly name due to the following error: Object reference not set to an instance of an object"

Troubleshooting Steps

There are two workarounds to resolve this:

 

Workaround 1:

1. Stop the K2 server.

2. Backup the K2 Database.

3. Restart the K2 service.

4. Delete the Form that is causing the issue.

5. Re-deploy only the form from the package (there's no need to redeploy everything).

 

Workaround 2:

Consider rolling back to a previously working version of the Form: http://help.k2.com/kb001311.


0 replies

Be the first to reply!

Reply