Incompatibe type error can some please help stuck in rut

found : double
required: javax.swing.JTextField
TotalIncomeField = (num1 + num2 + num3);
try {
double num1 = Double.parseDouble(LoansField.getText());
double num2 = Double.parseDouble(WagesField.getText());
double num3 = Double.parseDouble(OtherField.getText());
double num4 = Double.parseDouble(RentField.getText());
double num5 = Double.parseDouble(FoodField.getText());
double num6 = Double.parseDouble(OtherField2.getText());
String op1 = (String)LoanComboBox.getSelectedItem();
String op2 = (String)WagesComboBox.getSelectedItem();
String op3 = (String)OtherComboBox.getSelectedItem();
String op4 = (String)RentComboBox.getSelectedItem();
String op5 = (String)FoodComboBox.getSelectedItem();
String op6 = (String)Other2ComboBox.getSelectedItem();
//Below I am adding the loans, wages & other field so that it total correctly incompatible type error found below (1).
(1) TotalIncomeField = (num1 + num2 + num3);
(2) TotalSpendingField = (num4 + num5 + num6);
//Here above I am adding the rent, food & other field so that it total correctly incompatible type error found above (2)
double result = 0;
if (op1.equals("Weekly"))
result = num1 * 4.3333333;
else if (op1.equals("Monthly"))
result = num1;
else if (op1.equals("Yearly"))
result = num1 / 12;
else if
(op2.equals("Weekly"))
result = num2 * 4.3333333;
else if (op2.equals("Monthly"))
result = num2;
else if (op2.equals("Yearly"))
result = num2 / 12;
else if
(op3.equals("Weekly"))
result = num3 * 4.3333333;
else if (op3.equals("Monthly"))
result = num3;
else if (op3.equals("Yearly"))
result = num3 / 12;
TotalIncomeField.setText(String.format("%.2f",result));
if
(op4.equals("Weekly"))
result = num4 * 4.3333333;
else if (op4.equals("Monthly"))
result = num4;
else if (op4.equals("Yearly"))
result = num4 / 12;
else if
(op5.equals("Weekly"))
result = num5 * 4.3333333;
else if (op5.equals("Monthly"))
result = num5;
else if (op5.equals("Yearly"))
result = num5 / 12;
else if
(op6.equals("Weekly"))
result = num6 * 4.3333333;
else if (op6.equals("Monthly"))
result = num6;
else if (op6.equals("Yearly"))
result = num6 / 12;
TotalSpendingField.setText(String.format("%.2f",result));
} catch (NumberFormatException ex) {
}

TotalIncomeField is a JTextField object reference, not a numeric value holder. What you may want is to put the string representation of the calculation into the CONTENTS of the JTextField. There is a setText method for that.
TotalIncomeField.setText(theText);
I'll assume you can work out how to turn the calculation into a string representing that calculation.
SIGH SIGH SIGH
Thanks for CROSSPOSTING this, you dolt.
http://forum.java.sun.com/thread.jspa?threadID=780703

Similar Messages

  • Incompatable Types error  Can someone please help me working 1 wk on this

    Incompatable Types error found : double required javax.swing.JTextField
    private void CalculateButtonActionPerformed(java.awt.event.ActionEvent evt) {
    try {
    double num1 = Double.parseDouble(LoansField.getText());
    double num2 = Double.parseDouble(WagesField.getText());
    double num3 = Double.parseDouble(OtherField.getText());
    double num4 = Double.parseDouble(RentField.getText());
    double num5 = Double.parseDouble(FoodField.getText());
    double num6 = Double.parseDouble(OtherField2.getText());
    String op1 = (String)LoanComboBox.getSelectedItem();
    String op2 = (String)WagesComboBox.getSelectedItem();
    String op3 = (String)OtherComboBox.getSelectedItem();
    String op4 = (String)RentComboBox.getSelectedItem();
    String op5 = (String)FoodComboBox.getSelectedItem();
    String op6 = (String)Other2ComboBox.getSelectedItem();
    //Below I am adding the loans, wages & other field so that it total correctly Incompatable types error below
    TotalIncomeField = (num1 + num2 + num3);
    TotalSpendingField = (num4 + num5 + num6);
    //Here above I am adding the rent, food & other field so that it total correctly incompatable types error above
    double result = 0;
    if (op1.equals("Weekly"))
    result = num1 * 4.3333333;
    else if (op1.equals("Monthly"))
    result = num1;
    else if (op1.equals("Yearly"))
    result = num1 / 12;
    else if
    (op2.equals("Weekly"))
    result = num2 * 4.3333333;
    else if (op2.equals("Monthly"))
    result = num2;
    else if (op2.equals("Yearly"))
    result = num2 / 12;
    else if
    (op3.equals("Weekly"))
    result = num3 * 4.3333333;
    else if (op3.equals("Monthly"))
    result = num3;
    else if (op3.equals("Yearly"))
    result = num3 / 12;
    TotalIncomeField.setText(String.format("%.2f",result));
    if
    (op4.equals("Weekly"))
    result = num4 * 4.3333333;
    else if (op4.equals("Monthly"))
    result = num4;
    else if (op4.equals("Yearly"))
    result = num4 / 12;
    else if
    (op5.equals("Weekly"))
    result = num5 * 4.3333333;
    else if (op5.equals("Monthly"))
    result = num5;
    else if (op5.equals("Yearly"))
    result = num5 / 12;
    else if
    (op6.equals("Weekly"))
    result = num6 * 4.3333333;
    else if (op6.equals("Monthly"))
    result = num6;
    else if (op6.equals("Yearly"))
    result = num6 / 12;
    TotalSpendingField.setText(String.format("%.2f",result));
    } catch (NumberFormatException ex) {
    * @param args the command line arguments
    */

    Incompatable Types error found : double required
    javax.swing.JTextField Please use code tags and include the entire class as well as the entire stack trace for the error.
    This error occurs because somewhere you have a JTextField wher you should have a double. (There should be a line number to tell you exactly where).

  • Hello can some please help I am trying to watch my HBO go on my apple tv I have sound not picture. I can watch my iTunes videos and youtube so I know it works. it is working

    Hello can some please help I am trying to watch my HBO go on my apple tv I have sound no picture. I can watch my iTunes videos and youtube on my airplay with my ipad and everything is updated so I know it works. But not on HBO go, Max go, showtime go.

    What you want to do does not work with an iPd running iOS 5. See the screenshot.
    The latest update for HBO GO does allow for AirPlay on Apple TV - sound and video - but only on devices running iOS 6 and Apple TV running 5.1.1 or later - according to the app description.

  • HT204380 My husband and I were trying to setup FaceTime and now his cellphone number is on my FaceTime setting instead of mine and I'm receiving his text messages. Can some please help .

    My husband and I were trying to setup FaceTime and now his cellphone number is on my FaceTime setting instead of mine and I'm receiving his text messages. Can some please help .

    On each device, go to Settings > Messages > Send & Receive.  Make sure that each device is using separate addresses and phone numbers.  If your email address is checked on both devices, Your husband will recieve everything he intends to send to you.
    Do the same for FaceTime.

  • I keep getting an error can someone please help

    i am trying to develop a web application using tomcat. i have a servlet that will not compile because of two things. firstly, it says that package beans does not exist and secondle it gives an error becuase im using a user bean here to set some attributes but it keeps saying it cannot resolve symbol User. can someone please help me sort this out. thanks

    You need to package the bean classes in the proper package (in your case beans), and then place them in WEB-INF/classes/<package dirs>.
    Then you need to import the classes in the JSP.
    Cheers!
    ***Annie***

  • Runtime error--can someone please help me?!

    ok so when i try to open my itunes (i have itunes 7) it opens but almost immediately a window pops up that says "software application has encountered a problem and needs to close. we are sorry for the inconvenience." it also says that they prepared an error report to send to microsoft about the problem. i've tried sending it but nothing has happened so now i click the "don't send" option. then a window pops up titled "Microsoft Visual C++ Runtime Library" and it says "Runtime Error! Program: C:\Program Files\iTunes\iTunes.exe This application has requested the Runtime terminate it in an unusual way. Please contact the application's support team for more information." i've tried uninstalling quicktime and then repairing iTunes but that doesn't fix it. i don't know what else to do. can someone please help me?!

    NoClassDefFoundError happens because the JVM cannot find some class from your program, not because the OS cannot find your JVM (PATH regulates the latter, but not the former). JVM looks up classes in directories (or JAR files) specified through the -classpath option, like "java -classpath c:\myclasses MyMainClass". Read the online doc for the "java" launcher for more info.

  • HT4623 Hi all, I have just lost  last month's notes about 15 pages of information.erything just disappeared . Can  some please help? Unfortunately I did not add the notes in the iCloud

    HI all,  I have just lost all of a month's notes on my iPad . I did not delete it, it just disappeared, unfortunately I did not add notes to my iCloud , can any body help? Has it happen to anyone else before?

    Hi Suns_Corona,
    Thank you for visiting the HP Support Forums and Welcome. I have read your thread on your HP Pavilion dv6 Notebook and forgot your password to fingerprint scanner. Here is a link to troubleshoot the fingerprint scanner password. Before troubleshooting make sure you clean the fingerprinter scanner.
    Hope it helps.
    Thanks.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • Need help with reinstall of photoshop elements 10 premier. can some please help me

    just installed photoshop elements premier 10 to my computer after hard drive replaced. i cannot get it to set up for me, nor place an icon on the desktop. please help, i have no computer knowledge left in my itty bitty brain. HELP

    did it install ok?
    what os?

  • MSI (ALL IN ONE) MODEL 22XX CAN SOME PLEASE HELP, RECOVERY DISCS NEEDED

    hi i just bought a MSI ea2260 006uk off somebody manual calls it a wind top series,
    but it has windows 8 installed instead of the windows 7
    so what it looks like has happened is the person who installed the windows 8
    firstly not made a set of recovery discs and 2, has formatted the hard drive before hand so recovery sector has been deleted
    and i dont seem to have much software on there to work all the AIO to its max
    like there is no tv tuner software etc... but i have the tv aerial
    there is also no dvd playing software and has blue ray drive etc etc etc.....
    is there any body out there with the same or similar machine that is prepared to burn me off a copy of their recovery discs
    that way i can get the machine back to how it should be
    as i want to use it as a full media station,
    i know that while booting up you should press f3 to get into the recovery menu but it just boots to windows
    f11 does allow me to change boot up sequence etc...
    i do have a disc with it but it only has drivers on it and no software etc....
    i also have the manual and the windows COA sticker with number is on the back on the machine
    so please please can somebody help me,
    i will be willing to pay for any discs and 
    i have tried eBay but to no avail
    even if your model isn't identical they still could work
    and if any of you aint backed up your discs, make sure you do cos if you hdd buggers then you buggered too...
    any help will be greatly appreciated
    there is an small mini Aeriel  socket on the back of the all in one touchscreen PC and an Aeriel was also supplied with it
    so im assuming there is a tv card in there as it has all the option extras in the manual like sata connection, hdmi, remote control etc....
    also if peeps can tell me what softaware is on their 22xx series one that may be a big help too
    many thanks scott 

    Are you able to start in Recovery mode ?.   OS X: About OS X Recovery
    If so, then after the language choice screen, click Utilities at the top of the screen & choose Terminal.
    Once Terminal opens, type resetpassword  then press the enter key.
    Choose your user from the list & follow the prompts to create a new password. Then restart the computer normally.
    This won't allow you to update app store apps which the previous owner bought, but will let you install new software.
    Ideally, you'd erase the HD & reinstall OS X yourself : you may be able to do that from Internet Recovery, but may need original install DVDs,
    which Apple will usually supply for a small charge, if you call them with the serial number.
    Computers that can be upgraded to use OS X Internet Recovery

  • I am at a lost....Can some please help! Code included

    This is a sample of my code.
    I keep getting this error but can't figure out why. I am using JGrasp to compile.
    Link.java:38: elementAt(int) in java.util.Vector cannot be applied to (double)
              ProgramListener pl = (ProgramListener) v.elementAt(i);
    import java.util.*;
    import java.lang.Character;
    public class Link implements Runnable
         Vector v=new Vector();
         Thread thread;
         public Link()
                thread=new Thread(this);
                thread.start();
         public void run()
            while(globalVariables.CurrentStockPrice != globalVariables.SetStockPrice)
                 triggerEvent();
               try
                    thread.sleep(1000);
                   catch (Exception e){}                       
         public synchronized void addProgramListener (ProgramListener l)
              v.addElement (l);
         void triggerEvent()
              ProgramEvents pe=new ProgramEvents (this);
              for(double i=0.00; i<v.size(); i++){
              ProgramListener pl = (ProgramListener) v.elementAt(i);
              pl.handleEvent(pe);     
    [/code}
    Any help would be appreciated :)

    Is there any specific reason you are using double here
              ProgramEvents pe=new ProgramEvents (this);
              for(double i=0.00; i<v.size(); i++){replace double with int

  • Update failed error, can someone please help?

    I've been trying since last night to update from 1.1 to 2.0 and can't seem to get it to work. I select update from Apple TV settings and it downloads the update. Once completed, I select Update now and begins the process and starts to fill-in the progress bar, then shortly it states that the Update failed and asks to press the menu button. I do so and I am greeted by 3 choices: Diagnostics (which I've run about 3 times now and everything comes back okay); Restart (which I've done as well and only reboots the device); Factory Restore (which I did 2 times and only restores the device back to factory defaults).
    I can't get the update to work at all. Aside from that, the device works perfectly fine, without any issues. My DSL line is 6mbps and works very well. The Apple TV is connected via Wifi (802.11n) and that's fast too, so I really don't know how to resolve it, short of bringing it to a local Apple store for a replacement.
    If anyone can help me out and at least point me in the right direction, I'd gladly appreciate it.
    Thanks in advance!
    Message was edited by: tokyo-shock

    Thank You for the suggestions, I really appreciate the help!
    But...Since the Apple TV was only about 11 days old, I contacted Apple's 800 support line and explained the issue I was having. They said that they hadn't really heard of anyone having that problem and asked me to do the usual troubleshooting steps (diagnostics, restart and factory default). Since that didn't solve the problem they told me I could either get an exchange through Apple via mail or I could take it to a local Apple store with the receipt and they would exchange it for a new model.
    I opted for the latter. I was curious about resolving the issue and seeing what was being affected, but truthfully, I was more interested in getting my Apple TV updated and working to full capacity.
    So that's it. I took it in today and got an exchange immediately. The new device updated like a charm and plays beautifully.
    Thanks again for all the help and support, really appreciated!

  • TS1398 I try to open my email but I keep getting cannot connect to server can some please help or should I go to apple store for help?

    I'm trying to open my email but I keep getting cannot connect to server! Can someone help me or should I just go to an apple store?

    Try This...
    Close All Open Apps... Sign Out of your Account... Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    Wait for the Apple logo to Appear...
    Usually takes about 15 - 20 Seconds... (But can take Longer..)
    Release the Buttons...
    More >  http://www.apple.com/support/ipad/mail/

  • Can some please help me with the Wireless LAN Connection Configuration?

    I want to configure WLC in my Testing Lab , need help with the step by step configuration of WLC.

    Please go through the below link for the Basic Wireless LAN Connection Configuration Example.
    The below link has  end – end configuration steps with the images.
    http://www.cisco.com/c/en/us/support/docs/wireless-mobility/wireless-lan-wlan/68005-wlan-connect.html
    Have i answered for your query.

  • Could some please help me i do not have a iphoto i have photos that have been downloaded but i cant do anything with them can some please help

    hello i am very new to apple ,but i,m a little frustrated as  for one thing i dont have iphoto so i cannot work or print photos also i have a applebook pro and whith that i have bought a pre paid mobilebroad band usb the booklet says it is compatable with apple mac, i follow the directions and still i can not get on the net also where do i find the file manager as this is what i need to set it up

    Marie,
    iPhoto is available for download from the App Store for $14.99.
    A free photo editing app called Picasa is available from Google HERE.
    The "file manager" on a Mac is called the Finder.  A finder window may be opened by clicking on the Finder icon on the dock.
    Or click on the desktop then got to the Finder menu on the top of the screen and select File - New Finder Window.
    You may want to repost your mobile boradband question as a stand alone question.  You may find someone who can answer that one.
    Dan

  • In update statement i am errors can you please help on this logic

    BEGIN
                      SELECT COUNT(1)
                      INTO v_count
                      FROM apps.xxcsi_trex_ob_ecs_mhm
                      WHERE instance_id  = NVL(tab_ib_ecs_dat_c(k).instance_id,'');
                    EXCEPTION
                    WHEN OTHERS THEN
                      v_count := 0;
                    END;
                    print_log('v_count : '||v_count);
                    IF v_count = 0 THEN
                      BEGIN
                        INSERT
                        INTO xxcsi_trex_ob_ecs_mhm
                            instance_id,
                            instance_number,
                            inventory_item_id,
                            unit,
                            unit_name,
                            master_organization_id,
                            serial_number,
                            quantity,
                            uom,
                            active_start_date,
                            active_end_date,
                            install_date,
                            object_version_number,
                            last_vld_organization_id,
                            pre_registration_location,
                            order_header_id,
                            order_number,
                            order_line_id,
                            pre_registration_date,
                            pre_registration_operator,
                            bill_to_customer_name,
                            bill_to_site_id ,
                            bill_to_state ,
                            bill_to_country ,
                            bill_to_city ,
                            bill_to_location ,
                            ship_to_customer_name,
                            ship_to_site_id ,
                            ship_to_state ,
                            ship_to_country ,
                            ship_to_city ,
                            ship_to_location ,
                            ship_to_pin_code,
                            bill_to_pin_code,
                            ship_to_number,
                            bill_to_number,
                            customer_number,
                            ea_license_number,
                            ea_va_sales_order_number,
                            parent_instance_id,
                            parent_y_n,
                            process_flag,
                            error_code,
                            error_details,
                            request_id,
                            created_by,
                            creation_date,
                            last_updated_by,
                            last_update_date,
                            last_update_login,
                            eai_process_flag,
                            master_organization_name,
                            system_id,
                            system_name
                          VALUES
                            NVL(tab_ib_ecs_dat_c(k).instance_id,''),
                            NVL(tab_ib_ecs_dat_c(k).instance_number,''),
                            NVL(tab_ib_ecs_dat_c(k).inventory_item_id,''),
                            NVL(tab_ib_ecs_dat_c(k).segment1,''),
                            NVL(tab_ib_ecs_dat_c(k).description,''),
                            NVL(tab_ib_ecs_dat_c(k).master_organization_id,''),
                            NVL(tab_ib_ecs_dat_c(k).serial_number,''),
                            NVL(tab_ib_ecs_dat_c(k).quantity,''),
                            NVL(tab_ib_ecs_dat_c(k).uom,''),
                            NVL(tab_ib_ecs_dat_c(k).active_start_date,''),
                            NVL(tab_ib_ecs_dat_c(k).active_end_date,''),
                            NVL(tab_ib_ecs_dat_c(k).install_date,''),
                            NVL(tab_ib_ecs_dat_c(k).obj_version_num,''),
                            NVL(tab_ib_ecs_dat_c(k).last_vld_organization_id,''),
                            NVL(tab_ib_ecs_dat_c(k).pre_registration_location,''),
                            NVL(tab_ib_ecs_dat_c(k).order_header_id,''),
                            NVL(tab_ib_ecs_dat_c(k).order_number,''),
                            NVL(tab_ib_ecs_dat_c(k).order_line_id,''),
                            NVL(tab_ib_ecs_dat_c(k).actual_shipment_date,''),
                            NVL(tab_ib_ecs_dat_c(k).email_address,''),
                            NVL(tab_ib_ecs_dat_c(k).bill_to_company_name,''),
                            NVL(tab_ib_ecs_dat_c(k).bill_to_site_id,''),
                            NVL(tab_ib_ecs_dat_c(k).bill_to_state,''),
                            NVL(tab_ib_ecs_dat_c(k).bill_to_country,''),
                            NVL(tab_ib_ecs_dat_c(k).bill_to_city,''),
                            NVL(tab_ib_ecs_dat_c(k).bill_to_location,''),
                            NVL(tab_ib_ecs_dat_c(k).ship_to_company_name,''),
                            NVL(tab_ib_ecs_dat_c(k).ship_to_site_id,''),
                            NVL(tab_ib_ecs_dat_c(k).ship_to_state,''),
                            NVL(tab_ib_ecs_dat_c(k).ship_to_country,''),
                            NVL(tab_ib_ecs_dat_c(k).ship_to_city,''),
                            NVL(tab_ib_ecs_dat_c(k).ship_to_location,''),
                            NVL(tab_ib_ecs_dat_c(k).ship_to_pin_code,''),
                            NVL(tab_ib_ecs_dat_c(k).bill_to_pin_code,''),
                            NVL(tab_ib_ecs_dat_c(k).ship_to_number,''),
                            NVL(tab_ib_ecs_dat_c(k).bill_to_number,''),
                            NVL(tab_ib_ecs_dat_c(k).customer_number,''),
                            NVL(tab_ib_ecs_dat_c(k).ea_license_number,''),
                            NVL(tab_ib_ecs_dat_c(k).ea_va_sales_order_num,''),
                            NVL(tab_ib_parent_dat(i).instance_id,''),
                            'C',
                            'N',
                            NULL,
                            NULL,
                            v_request_id,
                            v_created_by,
                            SYSDATE,
                            v_created_by,
                            SYSDATE,
                            v_last_update_login,
                            'N',
                            NVL(tab_ib_ecs_dat_c(k).master_organization_name,''),
                            NVL(tab_ib_ecs_dat_c(k).system_id,''),
                            NVL(tab_ib_ecs_dat_c(k).system_name,'')
                      EXCEPTION
                      WHEN no_data_found THEN
                        print_log('Error in  main process INSERT 2 : '||sqlerrm);
                        print_log('Error at : '||v_error_at);
                      WHEN OTHERS THEN
                        print_log('Error in  main process INSERT 2 : '||sqlerrm);
                        print_log('Error at : '||v_error_at);
                        END;
      ELSE
    Update apps.xxcsi_trex_ob_ecs_mhm set( 
    instance_id=NVL(tab_ib_ecs_dat_c(k).instance_id,''),
      instance_number= NVL(tab_ib_ecs_dat_c(k).instance_number,''),
    inventory_item_id= NVL(tab_ib_ecs_dat_c(k).inventory_item_id,''),
    unit      = NVL(tab_ib_ecs_dat_c(k).segment1,''),
    unit_name =  NVL(tab_ib_ecs_dat_c(k).description,''),
    master_organization_id=NVL(tab_ib_ecs_dat_c(k).master_organization_id,''),
    serial_number=NVL(tab_ib_ecs_dat_c(k).serial_number,''),
    quantity= NVL(tab_ib_ecs_dat_c(k).quantity,''),
    uom=NVL(tab_ib_ecs_dat_c(k).uom,''),
    active_start_date= NVL(tab_ib_ecs_dat_c(k).active_start_date,''),
    active_end_date= NVL(tab_ib_ecs_dat_c(k).active_end_date,''),
    install_date= NVL(tab_ib_ecs_dat_c(k).install_date,''),
    object_version_number=NVL(tab_ib_ecs_dat_c(k).obj_version_num,''),
    last_vld_organization_id= NVL(tab_ib_ecs_dat_c(k).last_vld_organization_id,''),
    pre_registration_location=NVL(tab_ib_ecs_dat_c(k).pre_registration_location,''),
    order_header_id=NVL(tab_ib_ecs_dat_c(k).order_header_id,''),
    order_number= NVL(tab_ib_ecs_dat_c(k).order_number,''),
    order_line_id=NVL(tab_ib_ecs_dat_c(k).order_line_id,''),
    pre_registration_date= NVL(tab_ib_ecs_dat_c(k).actual_shipment_date,''),
    pre_registration_operator= NVL(tab_ib_ecs_dat_c(k).email_address,''),
    bill_to_customer_name=NVL(tab_ib_ecs_dat_c(k).bill_to_company_name,''),
    bill_to_site_id = NVL(tab_ib_ecs_dat_c(k).bill_to_site_id,''),
    bill_to_state = NVL(tab_ib_ecs_dat_c(k).bill_to_state,''),
    bill_to_country =NVL(tab_ib_ecs_dat_c(k).bill_to_country,''),
    bill_to_city = NVL(tab_ib_ecs_dat_c(k).bill_to_city,''),
    bill_to_location =  NVL(tab_ib_ecs_dat_c(k).bill_to_location,''),
    ship_to_customer_name=NVL(tab_ib_ecs_dat_c(k).ship_to_company_name,''),
    ship_to_site_id = NVL(tab_ib_ecs_dat_c(k).ship_to_site_id,''),
    ship_to_state =NVL(tab_ib_ecs_dat_c(k).ship_to_state,''),
    ship_to_country=NVL(tab_ib_ecs_dat_c(k).ship_to_country,''),
    ship_to_city =NVL(tab_ib_ecs_dat_c(k).ship_to_city,''),
    ship_to_location= NVL(tab_ib_ecs_dat_c(k).ship_to_location,''),
      ship_to_pin_code= NVL(tab_ib_ecs_dat_c(k).ship_to_pin_code,''),
      bill_to_pin_code=NVL(tab_ib_ecs_dat_c(k).bill_to_pin_code,''),
      ship_to_number=NVL(tab_ib_ecs_dat_c(k).ship_to_number,''),
      bill_to_number= NVL(tab_ib_ecs_dat_c(k).bill_to_number,''),
      customer_number= NVL(tab_ib_ecs_dat_c(k).customer_number,''),
      ea_license_number= NVL(tab_ib_ecs_dat_c(k).ea_license_number,''),
      ea_va_sales_order_number= NVL(tab_ib_ecs_dat_c(k).ea_va_sales_order_num,''),
      parent_instance_id=NVL(tab_ib_parent_dat(i).instance_id,''),
      parent_y_n='C',
      process_flag='N',
      error_code= NULL,
      error_details= NULL,
      request_id=v_request_id,
      created_by=v_created_by,
      creation_date= SYSDATE,
      last_updated_by=v_created_by,
      last_update_date=SYSDATE,
      last_update_login= v_last_update_login,
      eai_process_flag='N',
      master_organization_name=NVL(tab_ib_ecs_dat_c(k).master_organization_name,''),
      system_id= NVL(tab_ib_ecs_dat_c(k).system_id,''),
      system_name= NVL(tab_ib_ecs_dat_c(k).system_name,''))
      WHERE instance_id  = NVL(tab_ib_ecs_dat_c(k).instance_id,'');
      END IF; --V_COUNT

    Performing a COUNT to check the existence of data is plain WRONG. Never do that. You need to be using MERGE statement. Like this. And possibly you should not be using collection and performing it with direct SQL.
    merge into apps.xxcsi_trex_ob_ecs_mhm t1
    using (
            select nvl(tab_ib_ecs_dat_c(k).instance_id,'')                       instance_id
                 , nvl(tab_ib_ecs_dat_c(k).instance_number,'')                   instance_number
                 , nvl(tab_ib_ecs_dat_c(k).inventory_item_id,'')                 inventory_item_id
                 , nvl(tab_ib_ecs_dat_c(k).segment1,'')                          unit
                 , nvl(tab_ib_ecs_dat_c(k).description,'')                       unit_name
                 , nvl(tab_ib_ecs_dat_c(k).master_organization_id,'')            master_organization_id
                 , nvl(tab_ib_ecs_dat_c(k).serial_number,'')                     serial_number
                 , nvl(tab_ib_ecs_dat_c(k).quantity,'')                          quantity
                 , nvl(tab_ib_ecs_dat_c(k).uom,'')                               uom
                 , nvl(tab_ib_ecs_dat_c(k).active_start_date,'')                 active_start_date
                 , nvl(tab_ib_ecs_dat_c(k).active_end_date,'')                   active_end_date
                 , nvl(tab_ib_ecs_dat_c(k).install_date,'')                      install_date
                 , nvl(tab_ib_ecs_dat_c(k).obj_version_num,'')                   object_version_number
                 , nvl(tab_ib_ecs_dat_c(k).last_vld_organization_id,'')          last_vld_organization_id
                 , nvl(tab_ib_ecs_dat_c(k).pre_registration_location,'')         pre_registration_location
                 , nvl(tab_ib_ecs_dat_c(k).order_header_id,'')                   order_header_id
                 , nvl(tab_ib_ecs_dat_c(k).order_number,'')                      order_number
                 , nvl(tab_ib_ecs_dat_c(k).order_line_id,'')                     order_line_id
                 , nvl(tab_ib_ecs_dat_c(k).actual_shipment_date,'')              pre_registration_date
                 , nvl(tab_ib_ecs_dat_c(k).email_address,'')                     pre_registration_operator
                 , nvl(tab_ib_ecs_dat_c(k).bill_to_company_name,'')              bill_to_customer_name
                 , nvl(tab_ib_ecs_dat_c(k).bill_to_site_id,'')                   bill_to_site_id
                 , nvl(tab_ib_ecs_dat_c(k).bill_to_state,'')                     bill_to_state
                 , nvl(tab_ib_ecs_dat_c(k).bill_to_country,'')                   bill_to_country
                 , nvl(tab_ib_ecs_dat_c(k).bill_to_city,'')                      bill_to_city
                 , nvl(tab_ib_ecs_dat_c(k).bill_to_location,'')                  bill_to_location
                 , nvl(tab_ib_ecs_dat_c(k).ship_to_company_name,'')              ship_to_customer_name
                 , nvl(tab_ib_ecs_dat_c(k).ship_to_site_id,'')                   ship_to_site_id
                 , nvl(tab_ib_ecs_dat_c(k).ship_to_state,'')                     ship_to_state
                 , nvl(tab_ib_ecs_dat_c(k).ship_to_country,'')                   ship_to_country
                 , nvl(tab_ib_ecs_dat_c(k).ship_to_city,'')                      ship_to_city
                 , nvl(tab_ib_ecs_dat_c(k).ship_to_location,'')                  ship_to_location
                 , nvl(tab_ib_ecs_dat_c(k).ship_to_pin_code,'')                  ship_to_pin_code
                 , nvl(tab_ib_ecs_dat_c(k).bill_to_pin_code,'')                  bill_to_pin_code
                 , nvl(tab_ib_ecs_dat_c(k).ship_to_number,'')                    ship_to_number
                 , nvl(tab_ib_ecs_dat_c(k).bill_to_number,'')                    bill_to_number
                 , nvl(tab_ib_ecs_dat_c(k).customer_number,'')                   customer_number
                 , nvl(tab_ib_ecs_dat_c(k).ea_license_number,'')                 ea_license_number
                 , nvl(tab_ib_ecs_dat_c(k).ea_va_sales_order_num,'')             ea_va_sales_order_number
                 , nvl(tab_ib_parent_dat(i).instance_id,'')                      parent_instance_id
                 , 'C'                                                           parent_y_n
                 , 'N'                                                           process_flag
                 , null                                                          error_code
                 , null                                                          error_details
                 , v_request_id                                                  request_id
                 , v_created_by                                                  created_by
                 , sysdate                                                       creation_date
                 , v_created_by                                                  last_updated_by
                 , sysdate                                                       last_update_date
                 , v_last_update_login                                           last_update_login
                 , 'N'                                                           eai_process_flag
                 , nvl(tab_ib_ecs_dat_c(k).master_organization_name,'')          master_organization_name
                 , nvl(tab_ib_ecs_dat_c(k).system_id,'')                         system_id
                 , nvl(tab_ib_ecs_dat_c(k).system_name,'')                       system_name
              from dual
          ) t2
       on (
             t1.instance_id = t2.instance_id
    when matched then
         update
            set instance_number                   = t2.instance_number
                inventory_item_id                 = t2.inventory_item_id
                unit                              = t2.unit
                unit_name                         = t2.unit_name
                master_organization_id            = t2.master_organization_id
                serial_number                     = t2.serial_number
                quantity                          = t2.quantity
                uom                               = t2.uom
                active_start_date                 = t2.active_start_date
                active_end_date                   = t2.active_end_date
                install_date                      = t2.install_date
                object_version_number             = t2.object_version_number
                last_vld_organization_id          = t2.last_vld_organization_id
                pre_registration_location         = t2.pre_registration_location
                order_header_id                   = t2.order_header_id
                order_number                      = t2.order_number
                order_line_id                     = t2.order_line_id
                pre_registration_date             = t2.pre_registration_date
                pre_registration_operator         = t2.pre_registration_operator
                bill_to_customer_name             = t2.bill_to_customer_name
                bill_to_site_id                   = t2.bill_to_site_id
                bill_to_state                     = t2.bill_to_state
                bill_to_country                   = t2.bill_to_country
                bill_to_city                      = t2.bill_to_city
                bill_to_location                  = t2.bill_to_location
                ship_to_customer_name             = t2.ship_to_customer_name
                ship_to_site_id                   = t2.ship_to_site_id
                ship_to_state                     = t2.ship_to_state
                ship_to_country                   = t2.ship_to_country
                ship_to_city                      = t2.ship_to_city
                ship_to_location                  = t2.ship_to_location
                ship_to_pin_code                  = t2.ship_to_pin_code
                bill_to_pin_code                  = t2.bill_to_pin_code
                ship_to_number                    = t2.ship_to_number
                bill_to_number                    = t2.bill_to_number
                customer_number                   = t2.customer_number
                ea_license_number                 = t2.ea_license_number
                ea_va_sales_order_number          = t2.ea_va_sales_order_number
                parent_instance_id                = t2.parent_instance_id
                parent_y_n                        = t2.parent_y_n
                process_flag                      = t2.process_flag
                error_code                        = t2.error_code
                error_details                     = t2.error_details
                request_id                        = t2.request_id
                created_by                        = t2.created_by
                creation_date                     = t2.creation_date
                last_updated_by                   = t2.last_updated_by
                last_update_date                  = t2.last_update_date
                last_update_login                 = t2.last_update_login
                eai_process_flag                  = t2.eai_process_flag
                master_organization_name          = t2.master_organization_name
                system_id                         = t2.system_id
                system_name                       = t2.system_name
    when not matched then
         insert
            instance_id
          , instance_number
          , inventory_item_id
          , unit
          , unit_name
          , master_organization_id
          , serial_number
          , quantity
          , uom
          , active_start_date
          , active_end_date
          , install_date
          , object_version_number
          , last_vld_organization_id
          , pre_registration_location
          , order_header_id
          , order_number
          , order_line_id
          , pre_registration_date
          , pre_registration_operator
          , bill_to_customer_name
          , bill_to_site_id
          , bill_to_state
          , bill_to_country
          , bill_to_city
          , bill_to_location
          , ship_to_customer_name
          , ship_to_site_id
          , ship_to_state
          , ship_to_country
          , ship_to_city
          , ship_to_location
          , ship_to_pin_code
          , bill_to_pin_code
          , ship_to_number
          , bill_to_number
          , customer_number
          , ea_license_number
          , ea_va_sales_order_number
          , parent_instance_id
          , parent_y_n
          , process_flag
          , error_code
          , error_details
          , request_id
          , created_by
          , creation_date
          , last_updated_by
          , last_update_date
          , last_update_login
          , eai_process_flag
          , master_organization_name
          , system_id
          , system_name
         values
            t2.instance_id
          , t2.instance_number
          , t2.inventory_item_id
          , t2.unit
          , t2.unit_name
          , t2.master_organization_id
          , t2.serial_number
          , t2.quantity
          , t2.uom
          , t2.active_start_date
          , t2.active_end_date
          , t2.install_date
          , t2.object_version_number
          , t2.last_vld_organization_id
          , t2.pre_registration_location
          , t2.order_header_id
          , t2.order_number
          , t2.order_line_id
          , t2.pre_registration_date
          , t2.pre_registration_operator
          , t2.bill_to_customer_name
          , t2.bill_to_site_id
          , t2.bill_to_state
          , t2.bill_to_country
          , t2.bill_to_city
          , t2.bill_to_location
          , t2.ship_to_customer_name
          , t2.ship_to_site_id
          , t2.ship_to_state
          , t2.ship_to_country
          , t2.ship_to_city
          , t2.ship_to_location
          , t2.ship_to_pin_code
          , t2.bill_to_pin_code
          , t2.ship_to_number
          , t2.bill_to_number
          , t2.customer_number
          , t2.ea_license_number
          , t2.ea_va_sales_order_number
          , t2.parent_instance_id
          , t2.parent_y_n
          , t2.process_flag
          , t2.error_code
          , t2.error_details
          , t2.request_id
          , t2.created_by
          , t2.creation_date
          , t2.last_updated_by
          , t2.last_update_date
          , t2.last_update_login
          , t2.eai_process_flag
          , t2.master_organization_name
          , t2.system_id
          , t2.system_name

Maybe you are looking for

  • How can I transfer files from one person to another using iClouds?

    Good day to everyone. Prior to migrating to iCloud I enjoyed the use of iDisk that allowed me to perform the file share service with ease. I cannot find my way to doing the same with iCloud, can anyone help me? Regards Mphathi

  • Xp: bug: jbutton: transparent + no border

    hi, we have tested our swing-application under win-xp and must see that the jbuttons doesn't be shown correctly. this problem does exist only under win-xp. in win9x, winnt, win2k it works perfectly. we use own designed buttons with transparent gif's

  • Ip constantly needs renewing

    Can anyone help, I have had this problem for about 5 months now and it is progressively getting worse.  Whenever I boot up my PC, or even if I leave it turned on, then next time I come to use access interent, my internet connection has been lost and

  • Displaying/reading multilingual characters

    (1) how do you display universal characters in their native character sets? i have a multilingual file containing chinese, japanese, Korean and english characters (there may be different/more languages). This file is encoded in unicode for developmen

  • Videos Freezes but the sound still continues.

    Hi all, I don't know what my problem is, I've uninstalled and reinstalled many times, I"ve deleted all history and cookies, it affects all browsers. I need help. My problem is that the screen would freeze but the sound and the indicator on the bottom