"Object Reference Not Set to an Instance of an Object" Error after Export of a Ruleset containing a "Any" Condition
search cancel

"Object Reference Not Set to an Instance of an Object" Error after Export of a Ruleset containing a "Any" Condition

book

Article ID: 165018

calendar_today

Updated On:

Products

Workflow Solution ServiceDesk

Issue/Introduction

If you attempt to export a ruleset in Workflow or Sevicedesk 7.6 that has an "Any" condition, in any of the associated rules, an error is generated and the ruleset is not exported successfully.  See below for the specific  error text.

 

Error Application 'LogicBase.Ensemble' error
    Client: IP=::1 HostName=::1 Browser=Mozilla/5.0 (Windows NT 6.3; 
WOW64) 
AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36
    System.Web.HttpUnhandledException (0x80004005): Exception of type 
'System.Web.HttpUnhandledException' was thrown. ---> 
System.NullReferenceException: Object reference not set to an instance of an object.
    at 
LogicBase.Ensemble.Webparts.Default.ServiceBased.RulesetWrapper.GetRuleSetWrapper(
String ruleSetDataId)
    at 
LogicBase.Ensemble.Webparts.Default.ServiceBased.ManageRulesetWebPart.lnkExportRuleset_ServerClick(Object sender, EventArgs e)
    at System.Web.UI.HtmlControls.HtmlAnchor.OnServerClick(EventArgs e)
    at System.Web.UI.Page.ProcessRequestMain(Boolean 
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    at System.Web.UI.Page.HandleError(Exception e)
    at System.Web.UI.Page.ProcessRequestMain(Boolean 
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    at System.Web.UI.Page.ProcessRequest(Boolean 
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    at System.Web.UI.Page.ProcessRequest()
    at System.Web.UI.Page.ProcessRequest(HttpContext context)
    at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication
.I
ExecutionStep.Execute()
    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, 
Boolean& completedSynchronously)

Environment

Workflow and Servicedesk 7.6

Cause

Code Defect in 7.6

Resolution

This is resolved in versions 8.0 and 8.1  A workaround does exist for 7.6. Simply change the "ANY" condition to another condition and save and
export the ruleset.  Then change it back on import.