"Object reference not set..." error when opening a process in Process Designer

Version 3

    Verified Product Versions

    LANDESK Service Desk 7.7.xLANDESK Service Desk 7.8.xLANDESK Service Desk 2016.xLANDESK Asset Central 2016.x

    Problem

    When you open an existing process to modify it you see the following error:

     

    System.NullReferenceException: Object reference not set to an instance of an object.

      at Touchpaper.Console.SnapIn.Lifecycle.Graph.LifecycleGraphDecisionNode..ctor(XmlNode itemNode, Boolean bUsePartIDs, LifecycleModel model)

      at Touchpaper.Console.SnapIn.Lifecycle.Graph.LifecycleGraphControl.LoadNodeFromXML(XmlNode itemNode, Boolean bUsePartIDs, Boolean bAddToSelection, Single adjustTop, Single adjustLeft)

    ....

     

    Or

     

    System.NullReferenceException: Object reference not set to an instance of an object.

      at Touchpaper.Console.SnapIn.Lifecycle.Graph.LifecycleGraphPreConditionNode..ctor(XmlNode itemNode, Boolean bUsePartIDs, LifecycleModel model)

      at Touchpaper.Console.SnapIn.Lifecycle.Graph.LifecycleGraphControl.LoadNodeFromXML(XmlNode itemNode, Boolean bUsePartIDs, Boolean bAddToSelection, Single adjustTop, Single adjustLeft)

    ....

     

    If you press Continue then the process diagram appears but without any lines connecting the process components.

     

    Cause

    This issue can occur if a decision or pre-condition is added to the process diagram but a condition to use on it is not picked before the process is saved.

     

    This has been logged as Problem 5948.  If you experience this issue please contact your local support provider with details so we can record your instance of it against the Problem record.

     

    Solution

    Perform the following steps:

     

    1. Run the attached SQL script against your database to find any decisions and pre-conditions without conditions.  The script will set them to the oldest valid condition for that process which is typlically "Are all Tasks at End state?".
    2. Re-open Process Designer and open the process that had the error.
    3. Make any design change and re-save the process.

     

    Note: A version for Oracle is available on request/