Unhandled Exception Forms 6i

Hi everyone,
I have created a form using Forms 6i and I added a button at the end of the form to bring values into 4 columns from another table to make a formula and then make a calculation between all these columns. Right now only one of these columns have values inside and the others are empty, but when I click on the button I receive the following error: FRM-40735: WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-01403
Is there a way to avoid this?
This is the code that I have in my button:
Begin
     FIRST_RECORD;
     LOOP
     SELECT CREDIT_VALUE, CREDIT_VALUE_Q2, CREDIT_VALUE_Q3, CREDIT_VALUE_Q4 INTO
     :CREDITO_UNO, :CREDITO_DOS, :CREDITO_TRES, :CREDITO_CUATRO
     FROM MY_TABLE
     WHERE SCHOOL_ID   =:SCHOOL_ID  AND
           CLASS_ID    =:CLASS_ID   AND
           TEACHER_ID  =:TEACHER_ID AND
           SCHOOL_YEAR =:PERIOD;
          EXIT WHEN :SYSTEM.LAST_RECORD = 'TRUE';
          NEXT_RECORD;
     END LOOP;
End;

InoL wrote:
Steve,
From what I understand from the OP, the block is already populated, and only a few items are calculated after the rows are retrieved. In that case, it would work.
Of course, it is probably much easier to use a post-query trigger and be done with all this looping stuff B-)
InoOh my word! You're right. I missed that point.
626836 should use his original method in the first post, or as you wrote, in a post-query trigger.
No matter where he selects those values, if he would enclose the select in a Begin-Exception-End, it would prevent the no_data_found errors.
626836, using your method:
BEGIN
  FIRST_RECORD;
  LOOP
    For C in
     ( Select CREDIT_VALUE, CREDIT_VALUE_Q2,
                 CREDIT_VALUE_Q3, CREDIT_VALUE_Q4
       FROM MATERIAS_ISS A, NOTAS_ISS B
       WHERE A.SCHOOL_ID   =:SCHOOL_ID
       AND   A.CLASS_ID    =:CLASS_ID
       AND   A.TEACHER_ID  =:TEACHER_ID
       AND   A.SCHOOL_YEAR =:SCHOOL_YEAR
       AND   A.SCHOOL_ID = B.SCHOOL_ID
       AND   A.CLASS_ID = B.CLASS_ID
       AND   A.TEACHER_ID = B.TEACHER_ID)
    Loop
      :CREDITO_UNO    := C.CREDIT_VALUE;
      :CREDITO_DOS    := C.CREDIT_VALUE_Q2;
      :CREDITO_TRES   := C.CREDIT_VALUE_Q3;
      :CREDITO_CUATRO := C.CREDIT_VALUE_Q4;
      -- always exit after populating the fields in the one row.
      Exit;
    End Loop;
    EXIT WHEN :SYSTEM.LAST_RECORD = 'TRUE'
    NEXT_RECORD;
  END LOOP;
END;Or this is less confusing. That inner loop above would be confusing to most people. You are only using the Loop structure to avoid select INTO. Besides, the code below takes fewer lines:
BEGIN
  FIRST_RECORD;
  LOOP
    BEGIN
      Select CREDIT_VALUE, CREDIT_VALUE_Q2, CREDIT_VALUE_Q3, CREDIT_VALUE_Q4
        into :CREDITO_UNO, :CREDITO_DOS,    :CREDITO_TRES,   :CREDITO_CUATRO
        FROM MATERIAS_ISS A, NOTAS_ISS B
        WHERE A.SCHOOL_ID   = :SCHOOL_ID
          AND A.CLASS_ID    = :CLASS_ID
          AND A.TEACHER_ID  = :TEACHER_ID
          AND A.SCHOOL_YEAR = :SCHOOL_YEAR
          AND A.SCHOOL_ID   = B.SCHOOL_ID
          AND A.CLASS_ID    = B.CLASS_ID
          AND A.TEACHER_ID  = B.TEACHER_ID;
      Exception When No_data_found then null;
    END;
    EXIT WHEN :SYSTEM.LAST_RECORD = 'TRUE'
    NEXT_RECORD;
  END LOOP;
END;Note that the Begin-Exception-End block of code could just have easily been placed in a post-query trigger, and it would work there just fine, only without the outer looping structure.

Similar Messages

  • When-new-form-Instance trigger raised unhandled exception ORA-04062

    Hi,
    We are facing ORA-04062 (FRM-40735 WHEN-NEW-FORM-INSTANCE trigger raised unhandled exception ORA 04062) while trying to run the first form of our Application.
    We are using a PL/SQL LIBRARY(.pll) for forms.
    We are using 10G Application Server,10G DB and Oracle 9i Forms.
    DB Version----10.1.0.4.0
    Application Server--9.0.4.0
    During compilation, we are following the below steps:
    1. Compile the .pll
    2.Compile Forms.
    When we are running these compiled version of forms and pll in Development server where we are compiling it,we are not facing any error.
    But when we are taking these compiled version of forms and pll to the Production Server,we are getting the above error.
    When we are compiling the .pll in Production server, Application runs fine.
    But we should not compile form or pll in Production server.
    Searching in Metalink(Note:73506.1) , we find a solution that remote_dependency_mode if set to signature this problem may be resolved.
    We tried that by chaning ' REMOTE_DEPENDENCIES_MODE=SIGNATURE' in Init.ora file in both Production and Development server.
    But the error still persist.
    I think the problem is regarding .pll.Because for the time being to test the application,I compiled the pll in Production and we didnot get any error while running the Application.
    But whenever we are tring to deploy the compiled version of pll (compiling in Development sever) and to run the application in Production, we are facing the error.
    Also, pll calls one standard database package in SYS.That standard package has VALID status both in Production and in Development.
    We donot have priviledge to change/compile that package.So,we didnot change anything in that package. We didnot change anything in .pll also.
    We are upgrading our forms from 6i to 9i.And now when we are trying to deploy it to Production we are facing ORA-04062 error.
    Can anyone please help ?

    Exactly what procedure or package in SYS are you calling that causes this problem?
    <p>Are both test and production databases at the same version?
    <p>Do you know what procedure or package is named in the error? If not, then you need to improve your on-error trigger processing. I use a PLL_On_Error trigger to capture and improve a number of Oracle messages. It is posted here:
    <p> Re: FRM-40735:Pre_Insert trigger raised unhandled exception ORA-20011
    <p>Note especially the part near the end that deals with FRM-40735. (Not sure, but you may also want to display DBMS_ERROR_TEXT in your situation.)
    <p>If that doesn't help find the actual problem, I would pull out my Re: Zdebug -- Download a Forms debugging message tool, and add messages before every call in the when-new-form-instance process to zero-in on the offending call.
    <p>If it really IS a call to a system process, I would then experiment with creating a server-side package or stored procedure that calls the process, and then call that stored procedure from my form. That way, you effectively insulate your form from system differences.

  • Post-form trigger raised unhandled exception

    I have enabled TRANSLATION and ATTACHMENTS menu on my oracle form(form customization).
    but if i click on attachment menu the window opens for attachments but when i am going to close a window it throws an exception as
    **FRM-40735: POST_FORM trigger raised unhandled exception ORA-06502**
    and it is not allowing to close an window i have to terminate application every time.
    what shall i do in this situation ????????

    Hello,
    There is a related known issue for the Qualifications form of Oracle Human Resources -
    PERWSQUA Cannot add Attachments to the Qualification Form - FRM-40735: POST-FORM trigger raised unhandled exception ORA-06502 (Doc ID 1470386.1)
    Reference the solution steps and search on your form name as opposed to the PERWSQUA.
    If still not resolved, please open an SR with the owning application of the form or for Forms Developer.
    Thank you,
    Deborah Bourgeois
    Oracle Customer Support

  • Re: FRM-40735: WHEN-NEW-FORM-INSTANCE trigger raised unhandled exception OR

    hi all
    i am facing a problem.i hav a master detail form. my 'select into' has to fectch more than one record in detail which is tabular.
    it giving error(FRM-40735:WHEN-MOUSE-CLICK TRIGGER raised unhandled exception ORA-01422).
    so i had written cursor to fetch records.
    DECLARE
    CURSOR Fetch_Rec IS
    select bill_id,mat_id,mat_code,send_qty,rec_qty,ast_no,serial_no,transact_note
    from ship_dtl;
    BEGIN
         GO_BLOCK('ship_dtl');
    FOR Get_Rec IN (select bill_id,mat_id,mat_code,send_qty,rec_qty,ast_no,serial_no,transact_note
    from ship_dtl where rec_qty=null AND rec_qty != send_qty AND BILL_ID=:SHIP_MSTR.BILL_ID) LOOP
    :ship_dtl.bill_id:=get_rec.bill_id;
    :ship_dtl.mat_id:=get_rec.mat_id;
    :ship_dtl.mat_code:=get_rec.mat_code;
    :ship_dtl.send_qty:=get_rec.send_qty;
    :ship_dtl.rec_qty:=get_rec.rec_qty;
    :ship_dtl.ast_no:=get_rec.ast_no;
    :ship_dtl.serial_no:=get_rec.serial_no;
    :ship_dtl.transact_note:=get_rec.transact_note;
    NEXT_RECORD;
    END LOOP;
    FIRST_RECORD;
    END;
    it is not retriving any records.please help.i also put ship_mstr.bill_id in properties of ship_dtl.bill_id(copy value)
    so please guide me how to handle it.
    thanks in advance

    911229 wrote:
    hi all
    i am facing a problem.i hav a master detail form. my 'select into' has to fectch more than one record in detail which is tabular.
    it giving error(FRM-40735:WHEN-MOUSE-CLICK TRIGGER raised unhandled exception ORA-01422).
    so i had written cursor to fetch records.where you use the cursor ?
    it is not retriving any records.please help.i also put ship_mstr.bill_id in properties of ship_dtl.bill_id(copy value)Which one is not retrieving any record ? first one or second one... and
    check the sql separately first..
    select bill_id,mat_id,mat_code,send_qty,rec_qty,ast_no,serial_no,transact_note
    from ship_dtl
    where rec_qty is null
    AND rec_qty != send_qty
    AND BILL_ID=:SHIP_MSTR.BILL_ID  ---How you pass the value here ? do you give input or any other way ?Hamid

  • FRM-40735: WHEN-NEW-FORM-INSTANCE trigger raised unhandled except ORA-06508

    Dear Colleague,
    I am migrating a Forms application from Forms 9i to Forms 10g. Most of my forms were originally created using the Oracle Designer Forms generator. I am also using the Webutil plugin. I just finished configuring Webutil, tested it and it seems to be working fine.
    I am able to compile all code and generate a Form executable. However at runtime, I get an error as soon as the first line of code in the WHEN-NEW-FORM-INSTANCE trigger.
    The error is:
    FRM-40735: WHEN-NEW-FORM-INSTANCE trigger raised unhandled exception ORA-06508
    and the beginning of the code is as follows. Using the debugger, I found out that the line:
    CGBS2$.SET_COORD_STYLE( 'P' );
    initiates an error.
    /* CGLY$INIT_CANVASES */
    /* Call procedure to ensure correct canvases are visible */
    BEGIN
    CGBS2$.SET_COORD_STYLE( 'P' );
    CGBS2$.SET_QRY_ON_ENTRY( 'Y' );
    CGBS2$.SET_NAV_FROM_BLOCK( 'PROJ_BLOCK' );
    CGLY$CANVAS_MANAGEMENT;
    END;
    Is the error telling me that this procedure was not found? How can I proceed to find the cause and solution of my problem? Are one of the Oracle Designer Forms Generator libraries missing?
    I would appreciate a tip to help me begin seeing the light at the end of the tunnel.
    Thanks and regards,
    Randy

    Randy,
    Glad I could help and you've got your Form running.
    @user9230833
    It is consider "bad form" to usurp another's post. Please create your own Forum post and include a link or links to any relevant posts. As to Randy's situation, he simply compiled the Forms 9i Library module (.pll) with Forms 10g's compiler. This may not be the cause of your error. When you post your own question, please include your Forms version (full version [eg; 10.1.2.0.2] not the release [6i, 9i, 10g, etc]). Also include any sample code that might help us help you! ;-)
    Craig....

  • 40735 WHEN-NEW-FORM-INSTANCE-TRIGGER raised unhandled exception ORA-06502

    After migrationg my form from 6i to 10g I am getting the 40735 WHEN-NEW-FORM-INSTANCE-TRIGGER raised unhandled exception ORA-06502 err msg. the field is a date field and should be automatically populated with sysdate- 365. but when i open the form to run it is not populated automatically. i have to enter the date manually. the code in the NEW-FORM-INSTANCE trigger is as follows:
    declare
    record_id RecordGroup;
    error_cd number;
    begin
    -- Set the main window properties
    set_window_property(forms_mdi_window, window_state, maximize);
    -- Menu Security
    set_menu_items;
    select sysdate - 365
    into :start_date
    from dual;
    end;
    I check the property palate for the start_date field and it looks ok. the form is working fine in windows but the above message is comming out while running the form in Unix.
    Any help will be greatly apreciated.

    First thing, try qualifying the start_date with the block name
    declare
    record_id RecordGroup;
    error_cd number;
    begin
    -- Set the main window properties
    set_window_property(forms_mdi_window, window_state, maximize);
    -- Menu Security
    set_menu_items;
    select sysdate - 365
    into :block.start_date
    from dual;
    end;

  • FRM 40735 : WHEN-NEW-FORM-INSTANCE Trigger raised unhandled exception

    Hi all,
    I'm from a support team.
    Here we have a 3 database in 2 servers connecting to a single application.
    Only one Db will be connected at all time , other DB's are backup.
    Here the issue is 2DB DBs residing on the same server were able to cennect to the application and doesn't through any error. But the 3rd one in different server gives the below error,
    FRM 40735 : WHEN-NEW-FORM-INSTANCE Trigger raised unhandled exception ORA-06508
    The Forms were compiled using the First DB , that time when i access the app using the 3rd db i'm getting the above error.
    But when I compile the form using the 3rd DB and connect to the App its working fine (The size of the form gets reduced during the compilation).
    Thanks for your help in advance.
    Srinivasan.K

    Could be a timestamp vs signature issue - forms is calling a database procedure in the WHEN-NEW-FORM-INSTANCE trigger and the procedures have different compile times on the different dbs and it's set to use timestamp to determine if a procedure has changed. You can change remote_dependecy_mode = 'Signature'.

  • FRM-40735: WHEN-NEW-FORM-INSTANCE trigger raised unhandled exception ORA-01

    Hello,
    when I run my form I am getting the following error:
    FRM-40735: WHEN-NEW-FORM-INSTANCE trigger raised unhandled exception ORA-01422
    My WHEN-NEW-FORM-INSTANCE trigger is calling to procedures. below is the code in my trigger
    begin
    Get_User_Info;
    Get_org_num;
    end;
    what could be the problem ?
    thanks in advanced,
    AJ

    One of your procedures must be doing a "select into" but the select is returning more than one row. Examine the queries your procedures are doing.
    Gary

  • FRM-40735:PRE-FORM trigger raise unhandled exception ORA-04067

    FRM-40735:PRE-FORM trigger raise unhandled exception ORA-04067:not executed, stored, procedure "PUBLIC.FND_TIMEZONES" does not exist.
    After I log into Applications, and when I click on responsibility, and when I'm in the Form to retreive the Navigator page, I got the above error.
    If I click on any one of the menu from the list, I automatically gets log off. "your logon session has become invalid".
    please help..

    Hi,
    Yes this was working befor enable rapid clone feature.How did you enable this feature? Did you apply any patches?
    Following Task has been made by me:
    Enable Rapid Clone Featue -------> execute pre clone -------> change IP and Hostname --------> execute post clone-----------> change has been made sucessfully.
    APPS.FND_TIMEZONE package is not avaliable .What does this query return?
    SQL> select object_name, object_type, owner
    from dba_objects
    where object_name = 'FND_TIMEZONES';Regards,
    Hussein

  • Passing parameters from Forms to Reports - Unhandled exception error

    Hi there,
    I am passing parammeters to my Reports through Forms. I am using the built-in RUN_REPORT_OBJECT to invoke and run my report.
    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    BEGIN
    repid := FIND_REPORT_OBJECT('MY_REPORT');
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_OTHER,
    'p1='&#0124; &#0124;to_char(:block.p1_field)&#0124; &#0124;
    ' p2='&#0124; &#0124;to_char(:block.p2_field)&#0124; &#0124;
    ' p3='&#0124; &#0124;to_char(:block.p3_field)&#0124; &#0124;
    ' paramfrom=no');
    v_rep := RUN_REPORT_OBJECT(repid);
    EXIT_FORM;
    END;
    In one of my reports, after the report was invoked on the previewer window and I closed it, an unhandled exception error message appears.
    Are there any restrictions on the length of REPORT_OTHER parameters/value, as in this form, there are quite a number of parameters set to passed into the reports?
    I did not encounter this problem when running the report using the default REPORTS PARAMETER FORM to pass in the parameter. It is only when I pass in through FORMS using SET_REPORT_OBJECT_PROPERTY, then the error appears.
    I did not encounter this error with other reports which have little parameters.
    Regards,
    Hon Koat

    Pang,
    Not sure it this will make the problem go away, but you could try to send the parameters in a parameter list, instead of setting the REPORT_OTHER values.
    The syntax is the same you use to pass parameter list from one form to another:
    declare
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    v_list paramlist;
    c_listname constant varchar2(30) := 'my_list';
    begin
    repid := FIND_REPORT_OBJECT('MY_REPORT');
    v_list := get_parameter_list(c_listname);
    if not id_null(v_list) then
    destroy_parameter_list(v_list);
    end if;
    v_list := create_parameter_list(c_listname);
    add_parameter(v_list, 'P1', text_parameter, to_char(:block.p1_field));
    add_parameter(v_list, 'P2', text_parameter, to_char(:block.p2_field));
    v_rep := RUN_REPORT_OBJECT(repid, v_list);
    end;Hope this solves your problem,
    Pedro

  • When editing a PDF document with fillable forms, I get an unhandled exception error when scrolling past the first page

    The first error is "An unhandled Win32 exception occurred in Acrobat.exe [4644]"
    A debug window comes up after this and I open Visual Studio (not my area of expertise), and a couple more messages come up that may be helpful.
    Unhandled exception at 0x625628db in Acrobat.exe: 0xC0000005: Access violation reading location 0x00000044.
    Then
    [Frames below may be incorrect and/or missing, no symbols loaded for AcroForm.api]
    This is on Windows 7, running Acrobat Pro version 9.5.5
    No new updates are available either.
    Any ideas where to start? This happens with a couple of documents, but not all that are being edited.

    I am also getting the same error for fill-able PDFs. Were you able to find an answer/solution for this problem?
    I am using Acrobat X Pro on Windows 7
    Any help would be appreciated..

  • In R12.1.3 we get FRM-40735: ON-ERROR trigger raised unhandled exception.

    Hello,
    after we upgrade to R12.1.3 users are getting FRM-40735: ON-ERROR trigger raised unhandled exception ORA-01001, can you please help to resolve this issue immediately.

    Can you provide the list of patches you have applied?
    In addition to the log files mentioned above, please confirm that you have no invalid objects in the database.
    Loading the System Administrator Forms Responibility Produces Error FRM-40735,ORA-06508 (Doc ID 271652.1)
    Oracle Application Return The following Error FRM-40735: ON-ERROR trigger raised unhandled exception ORA-6508 (Doc ID 797293.1)
    After Migrating To Linux, Users Are Seeing FRM-40735 When Trying To Access Forms. (Doc ID 1282488.1)
    Thanks,
    Hussein

  • Unhandled exception has occurred in your application

    I was update my NB to windows 8.1 and has a error that show on start up pls Help
    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.
    ************** Exception Text **************
    System.Net.WebException: An exception occurred during a WebClient request. ---> System.UnauthorizedAccessException: Access to the path 'C:\Windows\explorer_1.exe' is denied.
    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
    at System.Net.WebClient.DownloadFile(Uri address, String fileName)
    --- End of inner exception stack trace ---
    at System.Net.WebClient.DownloadFile(Uri address, String fileName)
    at System.Net.WebClient.DownloadFile(String address, String fileName)
    at WindowsFormsApplication1.Form1.Form1_Load(Object sender, EventArgs e)
    at System.Windows.Forms.Form.OnLoad(EventArgs e)
    at System.Windows.Forms.Form.OnCreateControl()
    at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
    at System.Windows.Forms.Control.CreateControl()
    at System.Windows.Forms.Control.WmShowWindow(Message& m)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
    at System.Windows.Forms.ContainerControl.WndProc(Message& m)
    at System.Windows.Forms.Form.WmShowWindow(Message& m)
    at System.Windows.Forms.Form.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    ************** Loaded Assemblies **************
    mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34003 built by: FX45W81RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
    WindowsFormsApplication1
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Windows/bat_starter.exe
    System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34003 built by: FX45W81RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
    System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.
    For example:
    <configuration>
    <system.windows.forms jitDebugging="true" />
    </configuration>
    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.

    There is an auto-run program on your system that is failing.
    You will need to identify the start up programs on your system, then block them, one by one, until the error message does not appear on startup. The last blocked program will be the culprit. Repair or reinstall that program.
    If you need help identifying the startup programs on your Win 8.1 system, get help here:
    http://answers.microsoft.com/en-us/windows/forum/windows8_1?sort=lastreplydate&dir=desc&tab=Threads&status=&mod=&modAge=&advFil=&postedAfter=&postedBefore=&threadType=All&tm=1390235003475

  • Powerpivot - Can't insert formula that combines two or more different columns and keep getting message "unhandled exception has occurred in a component in your application...

    I am using powerpivot v2 with excel 2010.
    When I go to my excel file's powerpivot and I try to insert a formula in any column, I constantly get the following message:
    "unhandled exception has occurred in a component in your application. If you click continue, the application will ignore this error and attempt to continue".
    ************** Exception Text **************
    System.InvalidCastException: Return argument has an invalid type.
       at System.Runtime.Remoting.Proxies.RealProxy.ValidateReturnArg(Object arg, Type paramType)
       at System.Runtime.Remoting.Proxies.RealProxy.PropagateOutParameters(IMessage msg, Object[] outArgs, Object returnValue)
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
       at Microsoft.Office.Interop.Excel._Application.get_ActiveWorkbook()
       at Microsoft.AnalysisServices.XLHost.Addin.GeminiRibbon.currentClientWindow_InFormulaBarChanged(Object sender, EventArgs e)
       at Microsoft.AnalysisServices.Common.SandboxEditor.formulaBar_Leave(Object sender, EventArgs e)
       at System.EventHandler.Invoke(Object sender, EventArgs e)
       at System.Windows.Forms.ContainerControl.UpdateFocusedControl()
    Does anybody know how to fix this ?

    Mark,
    I used the Fix It found here:
    http://support.microsoft.com/kb/2739501
    I would have to ask my IT support person for more specifics, but as I understand the scenario with my particular laptop: the laptop came preloaded with RTM build of 2013.  We used Control Panel to uninstall Office 2013, in order to install Office
    2010.  I installed PowerPivot add-in and used it successfully with no issues for several months.  After attempting to install another program and encountering issues with apparent traces left behind of Office 2013 uninstall, I found the link above
    and used the Fix It to attempt to remove all remaining traces of Office 2013.  While it did appear to find and clean-up quite a bit left behind from the Office 2013 install, I was surprised to find an error upon entering my existing installation
    of PowerPivot for 2010 and attempting to type new formulas into the formula bar.
    My experience to-date is that an error message stating ""Return Argument Has an Invalid Type" appears anytime I select or modify a formula in the formula bar that would cause the intellisense to appear.  For example, when I first click into the formula
    bar, I do not get an error...but as soon as I type the first letter, before the intellisense appears, I get the error message.  Throughout the remainder of the formula as I type, just prior to any time when the intellisense drop-down will appear
    again, I get the same error message again (see details below).
    At one time, although I can't reproduce it now, the error message did state ".Net Framework" in the menu bar of the error pop-up window.  I can't get that to appear again, as it now only says "PowerPivot for Excel".  Based on this, I had attempted
    to see if I could repair my .NET framework install using the following tool:
    http://www.microsoft.com/en-us/download/details.aspx?id=30135
    I learned, however, that since I am running Windows 8 which comes with .NET 4.5 built-in to the OS, this tool does not yet cover that version for repair.
    While the overall end-result of my PowerPivot models appear to be just the same, having to click through "Continue" on the error message multiple times each time I enter a new formula is a huge drain on productivity.
    Let me know if you have any additional questions.
    David
    System.InvalidCastException: Return argument has an invalid type.
       at System.Runtime.Remoting.Proxies.RealProxy.ValidateReturnArg(Object arg, Type paramType)
       at System.Runtime.Remoting.Proxies.RealProxy.PropagateOutParameters(IMessage msg, Object[] outArgs, Object returnValue)
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
       at Microsoft.Office.Interop.Excel._Application.get_ActiveWorkbook()
       at Microsoft.AnalysisServices.XLHost.Addin.GeminiRibbon.currentClientWindow_InFormulaBarChanged(Object sender, EventArgs e)
       at Microsoft.AnalysisServices.Common.SandboxEditor.formulaBar_Leave(Object sender, EventArgs e)
       at System.EventHandler.Invoke(Object sender, EventArgs e)
       at System.Windows.Forms.ContainerControl.UpdateFocusedControl()
    David Duncan Consultant I.B.I.S., Inc.

  • Unhandled exception has occurred in your application C#

    I am getting this error when I run my c# program for about 30 mins: IMAGE LINK
    This is what the Details box contains:
    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.
    ****** Exception Text ******
    System.NullReferenceException: Object reference not set to an instance of an object.
    at WindowsFormsApplication1.Form1.button6_Click(Object sender, EventArgs e)
    at WindowsFormsApplication1.Form1.button7_Click(Object sender, EventArgs e)
    at WindowsFormsApplication1.Form1.timer2_Tick(Object sender, EventArgs e)
    at System.Windows.Forms.Timer.OnTick(EventArgs e)
    at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    ****** Loaded Assemblies ******
    mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34014 built by: FX45W81RTMGDR
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
    instagram Robot
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/kingd_000/Desktop/Instagram%20Robot/Instagram%20Robot/instagram%20Robot.exe
    System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34239 built by: FX452RTMGDR
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
    SKGL
    Assembly Version: 2.0.4.1
    Win32 Version: 2.0.4.1
    CodeBase: file:///C:/Users/kingd_000/Desktop/Instagram%20Robot/Instagram%20Robot/SKGL.DLL
    Microsoft.VisualBasic
    Assembly Version: 10.0.0.0
    Win32 Version: 12.0.20806.33440 built by: FX45W81RTMREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
    System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.33440 built by: FX45W81RTMREL
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
    System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.34230 built by: FX452RTMGDR
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    Microsoft.mshtml
    Assembly Version: 7.0.3300.0
    Win32 Version: 7.0.3300.0
    CodeBase: file:///C:/WINDOWS/assembly/GAC/Microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3a/Microsoft.mshtml.dll
    ****** JIT Debugging ******
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.
    For example:
    <configuration>
    <system.windows.forms jitDebugging="true" />
    </configuration>
    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.
    I have no idea how to fix this problem and am hoping someone here will be able to find out how to fix this problem. Thanks in Advance!

    I still have no idea how to fix this problem, I tried @Joel_Engineer and @Armin_Zingler's suggestions but it did not work. 
    This is really frustrating so I am going to show you all of my code:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using System.Timers;
    using System.Collections;
    using System.Diagnostics;
    using insta;
    namespace WindowsFormsApplication1
    public partial class Form1 : Form
    public Form1()
    InitializeComponent();
    private void button1_Click(object sender, EventArgs e)
    webBrowser1.Navigate(textBox1.Text);
    private void webBrowser1_Navigated(object sender, WebBrowserNavigatedEventArgs e)
    textBox1.Text = webBrowser1.Url.ToString();
    private void button3_Click(object sender, EventArgs e)
    webBrowser1.Refresh();
    private void button2_Click(object sender, EventArgs e)
    webBrowser1.GoBack();
    private void button4_Click(object sender, EventArgs e)
    webBrowser1.GoForward();
    private void button5_Click(object sender, EventArgs e)
    webBrowser1.GoHome();
    private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
    webBrowser1.ScriptErrorsSuppressed = true;
    private void button6_Click(object sender, EventArgs e)
    webBrowser1.Refresh();
    //sleep for 5 seconds
    DateTime Tthen = DateTime.Now;
    do
    } while (Tthen.AddSeconds(5) > DateTime.Now);
    webBrowser1.Refresh();
    HtmlElementCollection classs = webBrowser1.Document.All;
    foreach (HtmlElement element in classs)
    if (element.GetAttribute("className") == "ontainer")
    button7_Click(sender, e);
    webBrowser1.Document.Window.ScrollTo(0, 500);
    //sleep for 5 seconds
    DateTime Tthen2 = DateTime.Now;
    do
    Application.DoEvents();
    } while (Tthen2.AddSeconds(5) > DateTime.Now);
    if (checkBox2.Checked)
    text.Text = "Click";
    webBrowser1.Document.GetElementById("utton").InvokeMember("click");
    text.Text = "Comment";
    //sleep for 5 seconds
    DateTime Tthen3 = DateTime.Now;
    do
    Application.DoEvents();
    } while (Tthen3.AddSeconds(5) > DateTime.Now);
    var foo = new string[4] { Comment.Text, Comment2.Text, Comment3.Text, Comment4.Text };
    Random r = new Random();
    int X = r.Next(0, foo.Length);
    HtmlElement textArea = webBrowser1.Document.All["t_text"];
    if (textArea != null)
    textArea.SetAttribute("value", (foo[X])); ;
    //sleep for 5 seconds
    DateTime Tthen4 = DateTime.Now;
    do
    Application.DoEvents();
    } while (Tthen4.AddSeconds(5) > DateTime.Now);
    text.Text = "Click";
    HtmlElementCollection classButton = webBrowser1.Document.All;
    foreach (HtmlElement element in classButton)
    if (element.GetAttribute("className") == "button")
    element.InvokeMember("click");
    //sleep for 5 seconds
    DateTime Tthen5 = DateTime.Now;
    do
    Application.DoEvents();
    } while (Tthen5.AddSeconds(5) > DateTime.Now);
    text.Text = "Click";
    if (checkBox1.Checked)
    HtmlElementCollection links = webBrowser1.Document.GetElementsByTagName("a");
    foreach (HtmlElement link in links)
    if (link.OuterHtml.ToString().Contains("aor"))
    link.InvokeMember("click");
    text.Text = "Click";
    //sleep for 5 seconds
    DateTime Tthen6 = DateTime.Now;
    do
    Application.DoEvents();
    } while (Tthen6.AddSeconds(5) > DateTime.Now);
    webBrowser1.Document.GetElementById("fow").InvokeMember("click");
    //sleep for 5 seconds
    DateTime Tthen7 = DateTime.Now;
    do
    Application.DoEvents();
    } while (Tthen7.AddSeconds(5) > DateTime.Now);
    webBrowser1.Navigate("http://www.A-WEBSITE.com");
    text.Text = "Start";
    progressBar1.Value = 0;
    progressBar1.Maximum = Convert.ToInt32(numericUpDown1.Value);
    timer2.Start();
    private void buttonloginpage_Click(object sender, EventArgs e)
    webBrowser1.Navigate("https://A-WEBSITE.com/");
    private void Hash1_TextChanged(object sender, EventArgs e)
    private void Form1_Load(object sender, EventArgs e)
    private void button7_Click(object sender, EventArgs e)
    text.Text = "Searching";
    var foo = new string[4] { Hash1.Text, Hash2.Text, Hash3.Text, Hash4.Text };
    Random r = new Random();
    int hash = r.Next(0, foo.Length);
    webBrowser1.Navigate("https://A-WEBSITE" + (foo[hash]) + "/");
    //sleep for 5 seconds
    DateTime Tthen7 = DateTime.Now;
    do
    Application.DoEvents();
    } while (Tthen7.AddSeconds(5) > DateTime.Now);
    HtmlElementCollection links = webBrowser1.Document.GetElementsByTagName("a");
    foreach (HtmlElement link in links)
    if (link.OuterHtml.ToString().Contains("mageLink"))
    link.InvokeMember("click");
    //sleep for 5 seconds
    DateTime Tthen8 = DateTime.Now;
    do
    Application.DoEvents();
    } while (Tthen8.AddSeconds(5) > DateTime.Now);
    webBrowser1.Document.Window.ScrollTo(0, 300);
    button6_Click(sender, e);
    private void label4_Click(object sender, EventArgs e)
    private void label5_Click(object sender, EventArgs e)
    private void label6_Click(object sender, EventArgs e)
    private void label7_Click(object sender, EventArgs e)
    private void label8_Click(object sender, EventArgs e)
    private void label9_Click(object sender, EventArgs e)
    private void label10_Click(object sender, EventArgs e)
    private void timer2_Tick(object sender, EventArgs e)
    progressBar1.Increment(1);
    if (progressBar1.Value >= progressBar1.Maximum)
    timer2.Stop();
    button7_Click(sender, e);
    private void button8_Click(object sender, EventArgs e)
    private void text_TextChanged(object sender, EventArgs e)
    private void button8_Click_1(object sender, EventArgs e)
    webBrowser1.Navigate("http://www.A-WEBSITE.com");
    private void stop_Click(object sender, EventArgs e)
    private void label6_Click_1(object sender, EventArgs e)
    private void Comment_TextChanged(object sender, EventArgs e)
    private void Hash3_TextChanged(object sender, EventArgs e)
    private void Hash4_TextChanged(object sender, EventArgs e)
    private void Hash2_TextChanged(object sender, EventArgs e)
    private void label2_Click(object sender, EventArgs e)
    private void button8_Click_2(object sender, EventArgs e)
    Form2 f2 = new Form2();
    f2.Show();
    this.Hide();
    It's really weird because the program works for about 30 mins or more but then the error shown above pops up randomly.
    I really hope someone will be able to figure out why I am getting the Unhandled exception had occurred in your application error.

Maybe you are looking for