Requests bulk action - error - Unhandled exception has occurred in your application

Version 3

    Issue:

    When user tries to run a bulk action on request, the bellow error is displayed:

     

    ************** Exception Text **************

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

      at Touchpaper.Framework.Data.SDataObject.PopulateDataObject(IDataObjectContext ctxt, DataObject dataObject)

      at Touchpaper.Framework.Data.DataObjectContext.UpdateClientContext(Int32 contextId, SDataObjectContext sctxt)

      at Touchpaper.Framework.Data.DataObjectContext.InitialiseNewRemote(Int32 contextId, String lifecycle, String template, Int32 parentContextId, String function)

      at Touchpaper.Framework.Data.DataObject.InitialiseNew(String lifecycle, String template, Int32 parentContextId, String function, IAction action)

      at Touchpaper.Framework.Data.DataObject.SetNew(String lifecycle, String template, Int32 parentContextId, String function, IAction action)

      at Touchpaper.Framework.Data.DataObject.SetNew(String lifecycle, String template, Int32 parentContextId, String function)

      at Touchpaper.Framework.Data.DataObjectContext.CreateTemplateObject(String classType)

      at Touchpaper.Framework.Data.BulkFunctionContext.Prepare()

      at Touchpaper.Client.ClientBulkFunction.PrepareBulkFunction()

      at Touchpaper.Client.ClientBulkFunction.Touchpaper.Client.IClientBulkFunction.Prepare()

      at Touchpaper.Console.UI.Windows.WizardForm.ExitPage()

      at Touchpaper.Console.UI.Windows.WizardForm.set_PageIndex(Int32 value)

      at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)

      at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

      at System.Windows.Forms.Control.WndProc(Message& m)

      at System.Windows.Forms.ButtonBase.WndProc(Message& m)

      at System.Windows.Forms.Button.WndProc(Message& m)

      at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

     

     

    Possible cause:

    When you run a bulk action on requests service desk sends SQL statement which checks a line manager of user who runs this action. If user account is associated with a line manager who is soft delete you will see this error.

     

    Possible solution:

    Remove line manager or restore him.