Skip to Content
author's profile photo
Former Member

Add-on 9000004 failed with exception; Event Type: 21

Hi all,

When I execute my add-on at first it work perfectly, but when i closed it and open back at second SAP launch this message on the status bar:

Add-on 9000004 failed with exception; Event Type: 21

plz help,

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • author's profile photo
    Former Member
    Posted on May 03, 2011 at 06:57 PM

    Hi,

    Check this first: add-on-9000002-failed-with-exception-event-type-32

    Thanks,

    Gordon

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on May 03, 2011 at 07:08 PM

    the error is produce by a initialization of a variable item type

    this is the code:

    if (pVal.FormUID == "FSDC" && pVal.BeforeAction == false && pVal.EventType == SAPbouiCOM.BoEventTypes.et_FORM_RESIZE)
                {
                    try
                    {
    
                        SAPbouiCOM.Item oItem = forma.Items.Item("matrix1");
                        SAPbouiCOM.Matrix oMatrix = (SAPbouiCOM.Matrix)oItem.Specific;
                        SAPbouiCOM.Item rectangle = forma.Items.Item("rtgl");
    
                        if (boolResize)
                        {
                            rectangle.Width = (oItem.Width + 19);
                            rectangle.Height = (oItem.Height + 52);
                            oMatrix.AutoResizeColumns();
                            boolResize = false;
                        }
                        else
                        {
                            rectangle.Width = (oItem.Width + 19);
                            rectangle.Height = (oItem.Height + 52);
                            oMatrix.AutoResizeColumns();
                            boolResize = true;
                        }
                    }
                    catch (Exception e)
                    {
                        app.StatusBar.SetText(e.Message, SAPbouiCOM.BoMessageTime.bmt_Short,
                        SAPbouiCOM.BoStatusBarMessageType.smt_Error);
                    }

    Now the error is:

    Item - Invalid item [66000-3]. Form Unique Id: 'FSDC', Item Unique Id: 'matrix1'

    Add comment
    10|10000 characters needed characters exceeded