Problem/Solution: "Value cannot be null. Parameter name: input." when trying to delete/export a module in Console

Version 3

    Verified Product Versions

    LANDESK Service Desk 2016.xLANDESK Asset Central 2016.xLANDESK Service Desk 2017.x

    Environment:

    Service Desk - tested in 2016.2

     

    Requires Access to:

    1. Service Desk Console and WebAccess

    2. Database (but not mandatory)

     

    Error message:

    Value cannot be null. Parameter name: input while trying to delete or export modules in Service Desk Console.

     

    Cause:

    Each shortcut has information where it is pointing to in database in column called ui_data. You are getting the above error once this is change to NULL.

     

    Solution:

     

    1. First, user needs to determine which shortcut item is the faulty one with this query:

     

    select * from ui_shortcut_item where ui_data is null
    

     

    2. And then let's take this result as an example:

     

    NOTE: If you do not have access to the database, it is possible to achieve the same that above script is doing by simply creating a new query in WebAccess:

     

    a) Open WebAccess and login as Administrator user.

    b) Create a new query shortcut with below attributes chosen (both Guid and Group - Guid is not mandatory but it is to show the same data we have above):

    c) after adding the filter on Component - you can show the exact name of the faulty shortcut:

     

    3. Now, as you can see the faulty shortcut name is "PM - Incidents by Category - variable dates". Go to Console and open shortcuts from the action bar then localize the shortcut.

         a) Go to Shortcuts > Manage Shortcuts

         b) You will have window opened similar to below and there you need to localise the shortcut in the shortcut groups.

         c) Please remember to for all shortcut bars in thop right (so Console, WebDesk, Self-Service and Workspaces Shortcut bars) - red elipse below.

     

    4. Click on Remove then in next window click on Yes to delete both Console and Web Desk Shortcut Items.

     

    5. If you now execute query from point 1. - you will see no results. It means that right now you should be able to both delete and export modules without any errors.

     

     

     

    Full stack trace from error is added below to enable better search options:

    See the end of this message for details on invoking

    just-in-time (JIT) debugging instead of this dialog box.

     

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

    System.ArgumentNullException: Value cannot be null.

    Parameter name: input

       at System.Text.RegularExpressions.Regex.Matches(String input)

       at Touchpaper.Console.Configuration.ShortcutHelper.GetModuleNameFromShortcutData(String data, Boolean isUrl)

       at Touchpaper.Console.SnapIn.BusinessObject.ModuleNode.RemoveShortcutItems()

       at Touchpaper.Console.SnapIn.BusinessObject.ModuleNode.OnDeleteModule(Object sender, EventArgs ea)

       at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)

       at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)

       at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)

       at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)

       at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)

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

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

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

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

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