LVRT error treat_cpp Line 1938

This weekend two PC's, that run for about 4 weeks my application (using NI-6034, and a lot of math calculations including FFTs, storing data to HDD), stopped nearly at the same time with the same message: "LVRT error treat_cpp Line 1938". OS Win2k, LVRT Version 6.1.
Can somebody help me how and where to investigate what
it can be?

Usually, errors like this have are an issue with a shared resource. I don't have a definite solution because I have never seen this error, but you could try the followingt:
Disable multithreading in LabVIEW. Go to Edit » Preferences » Performance and Disk (or Tools » Options » Performance and Disk , depending on your version of LabVIEW) and uncheck "Run with Multiple Threads". You have to restart LabVIEW after making this change.
Make sure that your DLL is "Reentrant". Right-click on the Call Library Function and select "Configure" from the pop-up menu. There is a pulldown menu with two options: "Run in UI Thread" and "Reentrant". Select "Reentrant".
If you did an upgrade, did you mass compile all your VIs after installing the update? You can read th
e on-line help in LabVIEW to learn more about how to perform a mass compile (Tools » Advanced » Mass Compile).
Have you changed the priority and/or execution system of your main VI or any of your subVIs? If so, change them back to the standard values and see if that solves the problem (File » VI Properties » Execution).
Also, try running the application on another computer, just to see if the problem has to do with the computer hardware itself.

Similar Messages

  • Error 38 "thread.cpp line 1938" failure during an application execution

    I made a Labview6.1 based application that handle serial communication with six RS-232 ports. The program is intended to run 24 hours a day. After around 2 days of execution an error occurs. Here the reference:
    Error 38
    thread.cpp line 1938
    What can be the root cause of this failure?
    I'm pretty sure it's not lack of memory/CPU.

    Hi Mao,
    Be sure that all the threads you oppened are all closed.
    For example if you put an "open VI reference" don't forget to put the "close reference" at the end of the task.
    Hope it helps!
    Best regards,
    G Liagre
    Best regards,
    G Liagre

  • Thread.cpp​, line 1938

    I got this error message when I was running my programm.
    "thread.cpp", line 1938
    labview version 6.1
    I went to check "Task Manager", and it seemed like labview kept increasing memory its memory usage until there was not any left. so this error did not happen in the begining. It took some time.
    Is this a bug of Labview6.1? Or where can I set up the maximum memory usage of this application so the computor won't be dead?
    thank you.

    This may be cause by a bug in your program. LV does automatic memory management for you, and it's usually pretty good about it, but if you use functions that require more memory during run-time, LV will allocate more and more memory until you run out. Good examples of this are Build Array and Concatenate String. If you use these in a loop to build a large array and do it fast, you may run out of memory pretty quickly.
    Try using the profiling tools in Tools>>Advanced (I don't think they exist in the base package) to see if you can pinpoint the consumption to one of your VIs. You should also read the white paper about memory management in LV. You can find it in Help>>Search the LabVIEW Bookshelf or by searching this site.
    If this is consistent and you can't solve it, I suggest you post your code.
    Try to take over the world!

  • "This page contains the following errors: error on line 1 at column 1: error on line 1 at column 1: Encoding error Below is a rendering of the page up to the first error"

    I am getting this error since purchasing my latest book:
    “This page contains the following errors: error on line 1 at column 1: error on line 1 at column 1: Encoding error
    Below is a rendering of the page up to the first error”
    This message also appears on some, but not all books I purchased earlier.
    I've tried to restart my iPhone (5) and downloaded iBooks (and the books itself) again several times but nothing has changed. I’m also synced the iPhone via iTunes without luck.
    It’s the latest version of iBooks from Appstore. The same books on iBooks for iPad and Mac working fine!
    iOS 7.0.6
    iBooks 3.2 (2083)

    Did you Reset your iphone?

  • ERROR at line 1:ORA-01012: not logged on

    Hi ,i installed OID and the owner of the binaries and database(repository ) is Oracle and then i cahnged the permissions to 775 and now when i am trying to logon to a db(locally) using a different user x who is member of DBA group its saying not logged on .Is something wrong with permissions?
    env|grep ORA
    ORACLE_SID=oidtest
    PS1=[${ME}:${UNAME}:${ORACLE_SID}] ${PWD} >
    ORACLE_HOME=/amoidts1/OID
    [amoidts1:panther:oidtest] /home/amoidts1 > sqlplus
    SQL*Plus: Release 10.1.0.5.0 - Production on Wed Nov 21 19:24:37 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Enter user-name: / as sysdba
    Connected.
    SQL> select * from v$database;
    select * from v$database
    ERROR at line 1:
    ORA-01012: not logged on

    What oracle version?
    Probably there is not enough OS resources.
    *Process J000 died, kkjcre1p: unable to spawn jobq slave process [ID 833613.1]*

  • I cannot open a file from LR5 into CC2014 unless it is a smart object. also will not save back to LR at all it gives me an error message "Line: 1 -   photoshop.notifyLightroomDocClosed ('lightroom-2.0', 'B53AFA39-A49B-4709-A9BD-0B6467C175C3', 'Macintosh H

    I cannot open a file from lightroom into CC2014 unless I open it as a smart object. CC opens, just will not display my image. i am given an error code when I save an image, and can only save to my desktop or other locations, not automatically back into my lightroom.
    I am using LR5 latest update, as well as CC2014
    Below is the error message:
    Line: 1 ->  photoshop.notifyLightroomDocClosed ('lightroom-2.0', 'B53AFA39-A49B-4709-A9BD-0B6467C175C3', 'Macintosh HD:Users:BPexposures:Desktop:_DSC5962 as Smart Object-1.psd');

    I was also having this issue, and I did some more searching and found this answer in the Adobe forums: Re: Photos from Lightroom 5 to Photoshop CC (2014) and back.... The issue appears to be caused by having not updated Lightroom to the latest version prior to having CC2014 installed (wow that's stupid). The trick seems to be to uninstall Photoshop CC2014 and to then reinstall it after having upgraded to Lightroom 5.5.

  • ERROR at line 1:ORA-00600: internal error code, arguments: [ktsircinfo_num1

    Hi all,
    I need one help. In our one schema we have design like one temp and one parmanent table. The parmanent table is partition and we are used to exchange this partition with temporary table.
    It was working fine but since last many days we are facing a issue that while exchanging the table partition or coz some activity the table get courrepted and get the following error
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [ktsircinfo_num1], [24], [2],
    [49317], [], [], [], []
    Can anyone help us out. Any suggetion is greatful.
    Thanks

    It was working fine but since last many days we are facing a issueReview the changes that might have happened to the server in those past few days. OS upgrade, OS move, Oracle upgrade, post installation steps unsuccessful/not completed could be some of the many reasons, among others that Oracle support will identify when you open a SR, as suggested above.

  • Help for debug un package PL/SQL error at line 723 Encountered

    create or replace package body SPR_AP_FUSION_EXTRACT_PKG is
    PROCEDURE MAIN_FUSION_EXTRACT(
    pv_errbuff IN OUT VARCHAR2,
    pn_retcode IN OUT NUMBER
    IS
    lv_ligne VARCHAR2 (500);
    lv_rep VARCHAR2 (260); --:= '/usr/tmp';
    ln_retcode NUMBER;
    vv_separator VARCHAR2 (2) := ';';
    ln_compteur_lignes NUMBER := 0; -- nombre de lignes insérées dans le fichier
    ln_counteur NUMBER := 0;
    vv_buffer VARCHAR2 (32000);
    vv_buffer_et VARCHAR2 (32000);
    vv_buffer_etold VARCHAR2 (32000);
    lt_id UTL_FILE.file_type;
    ln_counter NUMBER (24, 0);
    lv_seq VARCHAR2 (30);
    lv_num_paiement VARCHAR2 (10);
    flag_ecriture VARCHAR2 (1);
    lv_filler_ligne VARCHAR2 (500);
    ln_long_buff NUMBER := 0;
    ln_compteur_factures NUMBER := 0;
    lv_name VARCHAR2 (500);
    vv_entete VARCHAR2 (500);
    LV_INVOICE_ID ap_invoices_all.invoice_id%type;
    ln_compteur_hold NUMBER := 0;
    lv_hode_reason VARCHAR2 (500);
    lv_release_reason VARCHAR2 (500);
    lv_societe_absorbee VARCHAR2 (500);
    lv_societe_absorbante VARCHAR2 (500);
    ln_org_id NUMBER := 0;
    lv_date_fusion DATE;
    err_non_parameter Exception;
    err_Soc_sr Exception;
    err_file_write Exception;
    err_file_invalid_path Exception;
    err_ecriture_file Exception;
    CURSOR cur_ap_hold_invoices
    ( LV$invoice_id IN AP_invoices_all.Invoice_Id%TYPE)
    IS
    SELECT aha.hold_reason, aha.release_reason
    from ap_holds_all aha
    where aha.invoice_id = LV$invoice_id
    rec_ap_hold_invoices cur_ap_hold_invoices%ROWTYPE;
    --Enregistrement "DESTINATAIRE"
    CURSOR cur_fusion_extract_AP_invoice
    ( LV$Societe_absorbee IN cgey_parameters.VARCHAR2_VALUE%Type,
    LV$Societe_absorbant IN cgey_parameters.VARCHAR2_VALUE%Type,
    LV$Date_fusion IN cgey_parameters.DATE_VALUE%Type
    IS
    SELECT
    Aia.Invoice_Id
    , Aia.Invoice_Num
    , Aia.Invoice_Type_Lookup_Code
    , Aia.Invoice_Date
    , Pv.Vendor_Id
    , Pv.Segment1
    , Pv.Vendor_Name
    , pvsa.Vendor_Site_Id
    , Pvsa.Vendor_Site_Code
    , aia.invoice_amount
    , aia.amount_paid
    -- RG3: Montant repris = valeur restante a regler
    , ROUND (NVL(SUM(Apsa.Amount_Remaining),0),2) Amount_Remaining
    , Ap_Invoices_Utility_Pkg.get_approval_status(aia.invoice_id,aia.invoice_amount,aia.payment_status_flag,aia.invoice_type_lookup_code) STATUT
    , aia.invoice_currency_code
    , aia.exchange_rate
    , aia.exchange_rate_type
    , aia.exchange_date
    , Ate.Name Terms_Name
    , aia.terms_date
    , aia.source
    , aia.doc_category_code
    , aia.payment_method_lookup_code
    , aia.pay_group_lookup_code
    , aia.gl_date
    , Aia.Doc_Sequence_Id
    , aia.accts_pay_code_combination_id
    , CGEY_TOOLS_PKG.get_segments_from_ccid(Aia.Accts_Pay_Code_Combination_Id) Cle_Comptable_Founisseur
    , aia.org_id
    , aia.payment_cross_rate_type
    , aia.payment_cross_rate_date
    , aia.payment_cross_rate
    , aia.payment_currency_code
    , aia.attribute_category
    , Aia.Attribute1
    , Aia.Attribute2
    , Aia.Attribute3
    , Aia.Attribute4
    , Aia.Attribute5
    , Aia.Attribute6
    , Aia.Attribute7
    , Aia.Attribute8
    , Aia.Attribute9
    , Aia.Attribute10
    , Aia.Attribute11
    , Aia.Attribute12
    , Aia.Attribute13
    , Aia.Attribute14
    , Aia.Attribute15
    , Aia.Global_Attribute_Category
    , Aia.Global_Attribute1
    , Aia.Global_Attribute2
    , Aia.Global_Attribute3
    , Aia.Global_Attribute4
    , Aia.Global_Attribute5
    , Aia.Global_Attribute6
    , Aia.Global_Attribute7
    , Aia.Global_Attribute8
    , Aia.Global_Attribute9
    , Aia.Global_Attribute10
    , Aia.Global_Attribute11
    , Aia.Global_Attribute12
    , Aia.Global_Attribute13
    , Aia.Global_Attribute14
    , Aia.Global_Attribute15
    , Aia.Global_Attribute16
    , Aia.Global_Attribute17
    , Aia.Global_Attribute18
    , Aia.Global_Attribute19
    , Aia.Global_Attribute20
    FROM
    Ap_Invoices_All Aia
    , Ap_Payment_Schedules_All Apsa
    , Po_Vendor_Sites_All Pvsa
    , Ap_Terms Ate
    , Po_Vendors Pv
    WHERE
    1=1
    -- RG1: Type de la facture
    AND Aia.invoice_type_lookup_code IN ('STANDARD', 'CREDIT', 'DEBIT')
    AND Apsa.Invoice_Id = Aia.Invoice_Id
    AND Pvsa.Vendor_Site_Id = Aia.Vendor_Site_Id
    AND Ate.Term_Id = Aia.Terms_Id
    AND Pv.Vendor_Id = Aia.Vendor_Id
    -- RG 1: pour les factures créées antétieur à la date de fusion
    AND Aia.Creation_Date < LV$Date_fusion
    -- RG1: Ensemble des lignes de la facture postees
    AND NOT EXISTS ( SELECT 'x'
    FROM
    Ap_Invoice_Distributions_All Aida
    WHERE
    Aida.Invoice_id = Aia.Invoice_Id
    AND NVL(Aida.Accrual_Posted_Flag,'N') <> 'Y' )
    -- pour la société absorbée
    AND aia.org_id = (select ORGANIZATION_ID from HR_ALL_ORGANIZATION_UNITS HAOU
    where HAOU.Name = LV$Societe_absorbee
    GROUP BY
    Aia.Invoice_Id
    , Aia.Invoice_Num
    , Aia.Invoice_Type_Lookup_Code
    , Aia.Invoice_Date
    , Pv.Vendor_Id
    , Pv.Segment1
    , Pv.Vendor_Name
    , pvsa.Vendor_Site_Id
    , Pvsa.Vendor_Site_Code
    , aia.invoice_amount
    , aia.amount_paid
    -- RG3: Montant repris = valeur restante a regler
    , Apsa.Amount_Remaining
    , aia.payment_status_flag
    , aia.invoice_currency_code
    , aia.exchange_rate
    , aia.exchange_rate_type
    , aia.exchange_date
    , Ate.Name
    , aia.terms_date
    , aia.source
    , aia.doc_category_code
    , aia.payment_method_lookup_code
    , aia.pay_group_lookup_code
    , aia.gl_date
    , Aia.Doc_Sequence_Id
    , aia.accts_pay_code_combination_id
    , aia.org_id
    , aia.payment_cross_rate_type
    , aia.payment_cross_rate_date
    , aia.payment_cross_rate
    , aia.payment_currency_code
    , aia.attribute_category
    , Aia.Attribute1
    , Aia.Attribute2
    , Aia.Attribute3
    , Aia.Attribute4
    , Aia.Attribute5
    , Aia.Attribute6
    , Aia.Attribute7
    , Aia.Attribute8
    , Aia.Attribute9
    , Aia.Attribute10
    , Aia.Attribute11
    , Aia.Attribute12
    , Aia.Attribute13
    , Aia.Attribute14
    , Aia.Attribute15
    , Aia.Global_Attribute_Category
    , Aia.Global_Attribute1
    , Aia.Global_Attribute2
    , Aia.Global_Attribute3
    , Aia.Global_Attribute4
    , Aia.Global_Attribute5
    , Aia.Global_Attribute6
    , Aia.Global_Attribute7
    , Aia.Global_Attribute8
    , Aia.Global_Attribute9
    , Aia.Global_Attribute10
    , Aia.Global_Attribute11
    , Aia.Global_Attribute12
    , Aia.Global_Attribute13
    , Aia.Global_Attribute14
    , Aia.Global_Attribute15
    , Aia.Global_Attribute16
    , Aia.Global_Attribute17
    , Aia.Global_Attribute18
    , Aia.Global_Attribute19
    , Aia.Global_Attribute20
    HAVING NVL(SUM(Apsa.Amount_Remaining),0) <> 0
    UNION ALL
    SELECT
    Aia.Invoice_Id
    , Aia.Invoice_Num
    , Aia.Invoice_Type_Lookup_Code
    , Aia.Invoice_Date
    , Pv.Vendor_Id
    , Pv.Segment1
    , Pv.Vendor_Name
    , pvsa.Vendor_Site_Id
    , Pvsa.Vendor_Site_Code
    , aia.invoice_amount
    , aia.amount_paid
    -- RG3: Montant repris = valeur restante a regler
    , Ap_Invoices_Utility_PKG.get_prepay_amount_remaining (Aia.invoice_Id) "Amount_Remaining"
    , Ap_Invoices_Utility_Pkg.get_approval_status(aia.invoice_id,aia.invoice_amount,aia.payment_status_flag,aia.invoice_type_lookup_code) STATUT
    , aia.invoice_currency_code
    , aia.exchange_rate
    , aia.exchange_rate_type
    , aia.exchange_date
    , Ate.Name Terms_Name
    , aia.terms_date
    , aia.source
    , aia.doc_category_code
    , aia.payment_method_lookup_code
    , aia.pay_group_lookup_code
    , aia.gl_date
    , Aia.Doc_Sequence_Id
    , aia.accts_pay_code_combination_id
    , CGEY_TOOLS_PKG.get_segments_from_ccid(Aia.Accts_Pay_Code_Combination_Id) Cle_Comptable_Founisseur
    , aia.org_id
    , aia.payment_cross_rate_type
    , aia.payment_cross_rate_date
    , aia.payment_cross_rate
    , aia.payment_currency_code
    , aia.attribute_category
    , Aia.Attribute1
    , Aia.Attribute2
    , Aia.Attribute3
    , Aia.Attribute4
    , Aia.Attribute5
    , Aia.Attribute6
    , Aia.Attribute7
    , Aia.Attribute8
    , Aia.Attribute9
    , Aia.Attribute10
    , Aia.Attribute11
    , Aia.Attribute12
    , Aia.Attribute13
    , Aia.Attribute14
    , Aia.Attribute15
    , Aia.Global_Attribute_Category
    , Aia.Global_Attribute1
    , Aia.Global_Attribute2
    , Aia.Global_Attribute3
    , Aia.Global_Attribute4
    , Aia.Global_Attribute5
    , Aia.Global_Attribute6
    , Aia.Global_Attribute7
    , Aia.Global_Attribute8
    , Aia.Global_Attribute9
    , Aia.Global_Attribute10
    , Aia.Global_Attribute11
    , Aia.Global_Attribute12
    , Aia.Global_Attribute13
    , Aia.Global_Attribute14
    , Aia.Global_Attribute15
    , Aia.Global_Attribute16
    , Aia.Global_Attribute17
    , Aia.Global_Attribute18
    , Aia.Global_Attribute19
    , Aia.Global_Attribute20
    FROM
    Ap_Invoices_All Aia
    , Po_Vendor_Sites_All Pvsa
    , Ap_Terms Ate
    , Po_Vendors Pv
    WHERE 1=1
    -- RG2: Type de la facture
    AND Aia.invoice_type_lookup_code = 'PREPAYMENT'
    -- RG2: Amount_Paid <> Invoice_Amount
    AND NVL(Aia.Invoice_Amount,0) = NVL(Aia.Amount_Paid,0)
    AND Pvsa.Vendor_Site_Id = Aia.Vendor_Site_Id
    AND Ate.Term_Id = Aia.Terms_Id
    AND Pv.Vendor_Id = Aia.Vendor_Id
    -- RG2: Ensemble des lignes de la facture postees
    AND NOT EXISTS ( SELECT 'x'
    FROM
    Ap_Invoice_Distributions_All Aida
    WHERE
    Aida.Invoice_id = Aia.Invoice_Id
    AND NVL(Aida.Accrual_Posted_Flag,'N') <> 'Y' )
    -- pour la société absorbée
    AND aia.org_id = (select ORGANIZATION_ID from HR_ALL_ORGANIZATION_UNITS HAOU
    where HAOU.Name = LV$Societe_absorbee
    -- RG 1: pour les factures créées antétieur à la date de fusion
    AND Aia.Creation_Date < LV$Date_fusion
    GROUP BY
    Aia.Invoice_Id
    , Aia.Invoice_Num
    , Aia.Invoice_Type_Lookup_Code
    , Aia.Invoice_Date
    , Pv.Vendor_Id
    , Pv.Segment1
    , Pv.Vendor_Name
    , pvsa.Vendor_Site_Id
    , Pvsa.Vendor_Site_Code
    , aia.invoice_amount
    , aia.amount_paid
    , aia.payment_status_flag
    , aia.invoice_currency_code
    , aia.exchange_rate
    , aia.exchange_rate_type
    , aia.exchange_date
    , Ate.Name
    , aia.terms_date
    , aia.source
    , aia.doc_category_code
    , aia.payment_method_lookup_code
    , aia.pay_group_lookup_code
    , aia.gl_date
    , Aia.Doc_Sequence_Id
    , aia.accts_pay_code_combination_id
    , aia.org_id
    , aia.payment_cross_rate_type
    , aia.payment_cross_rate_date
    , aia.payment_cross_rate
    , aia.payment_currency_code
    , aia.attribute_category
    , Aia.Attribute1
    , Aia.Attribute2
    , Aia.Attribute3
    , Aia.Attribute4
    , Aia.Attribute5
    , Aia.Attribute6
    , Aia.Attribute7
    , Aia.Attribute8
    , Aia.Attribute9
    , Aia.Attribute10
    , Aia.Attribute11
    , Aia.Attribute12
    , Aia.Attribute13
    , Aia.Attribute14
    , Aia.Attribute15
    , Aia.Global_Attribute_Category
    , Aia.Global_Attribute1
    , Aia.Global_Attribute2
    , Aia.Global_Attribute3
    , Aia.Global_Attribute4
    , Aia.Global_Attribute5
    , Aia.Global_Attribute6
    , Aia.Global_Attribute7
    , Aia.Global_Attribute8
    , Aia.Global_Attribute9
    , Aia.Global_Attribute10
    , Aia.Global_Attribute11
    , Aia.Global_Attribute12
    , Aia.Global_Attribute13
    , Aia.Global_Attribute14
    , Aia.Global_Attribute15
    , Aia.Global_Attribute16
    , Aia.Global_Attribute17
    , Aia.Global_Attribute18
    , Aia.Global_Attribute19
    , Aia.Global_Attribute20
    HAVING Ap_Invoices_Utility_PKG.get_prepay_amount_remaining (Aia.invoice_Id) <> 0
    AND Ap_Invoices_Utility_Pkg.get_approval_status(aia.invoice_id,aia.invoice_amount,aia.payment_status_flag,aia.invoice_type_lookup_code) = 'AVAILABLE'
    Rec_fusion_extract_AP_invoice cur_fusion_extract_AP_invoice%ROWTYPE;
    BEGIN
    ---------Initialisation
    pn_retcode := 0;
    pv_errbuff := NULL;
    ln_compteur_lignes := 0;
    lv_societe_absorbee := CGEY_TOOLS_PKG.get_varchar2_parameter ('SPR_FUSION_AP_SOCIETE', 'SOC_SR');
    lv_societe_absorbante :=CGEY_TOOLS_PKG.get_varchar2_parameter ('SPR_FUSION_AP_SOCIETE', 'SOC_CB');
    lv_date_fusion := CGEY_TOOLS_PKG.get_date_parameter ('SPR_FUSION_AP_SOCIETE', 'DATE_FUSION');
    lv_rep := cgey_tools_pkg.get_varchar2_parameter ('SPR_FUSION_AP_SOCIETE', 'REPERTOIRE_SORTIE');
    ----err_non_parameter
    IF lv_societe_absorbee is null or lv_societe_absorbante is null or lv_date_fusion is null or lv_rep is null
    THEN raise err_non_parameter;
    select NVL(ORGANIZATION_ID, 'NULL')
    INTO ln_org_id
    from HR_ALL_ORGANIZATION_UNITS HAOU
    where HAOU.Name = lv_societe_absorbee
    ----err_Soc_sr
    IF ln_org_id ='NULL'
    THEN Raise err_Soc_sr;
    BEGIN
    ----Création du fichier sorti
    cgey_tools_pkg.put_log_message ('Création et Ouverture du fichier en lecture');
    lv_name := 'FUSION_fac_AP_EXTRAIRE' || TO_CHAR(SYSDATE, 'DDMMYYYY_HH24MISS') || '.txt';
    cgey_tools_pkg.put_log_message ('Fichier sortie est '|| lv_name );
    lt_id := UTL_FILE.FOPEN(lv_rep, lv_name, 'w');
    IF UTL_FILE.IS_OPEN(lt_id) THEN
    cgey_tools_pkg.put_log_message (cv_line);
    cgey_tools_pkg.put_log_message('Creation OK du fichier: ' || lv_name);
    ELSE
    cgey_tools_pkg.put_log_message(cv_line);
    cgey_tools_pkg.put_log_message('Probleme ouverture du fichier ' ||lv_name);
    END IF;
    ----EXCEPTION UTL_FILE.WRITE_ERROR, UTL_FILE.INVALID_PATH
    EXCEPTION
    WHEN UTL_FILE.WRITE_ERROR
    THEN raise err_file_write;
    WHEN UTL_FILE.INVALID_PATH
    THEN raise err_file_invalid_path;
    ----Création du fichier sorti
    END;
    BEGIN
    UTL_FILE.PUT_LINE(lt_id, vv_entete);
    ----CURSOR FACTURE A EXTRAIRE
    OPEN cur_fusion_extract_AP_invoice
    (lv_societe_absorbee,
    lv_societe_absorbante,
    lv_date_fusion
    LOOP
    FETCH cur_fusion_extract_AP_invoice
    INTO rec_fusion_extract_AP_invoice;
    EXIT WHEN cur_fusion_extract_AP_invoice%NOTFOUND;
    LV_INVOICE_ID := rec_fusion_extract_AP_invoice.Invoice_Id;
    ln_compteur_hold := 0;
    lv_hode_reason := null;
    lv_release_reason := null;
    OPEN cur_ap_hold_invoices (rec_fusion_extract_AP_invoice.Invoice_Id);
    LOOP
    FETCH cur_ap_hold_invoices
    INTO rec_ap_hold_invoices;
    EXIT WHEN cur_ap_hold_invoices%NOTFOUND;
    ----La première blocage à traiter
    IF ln_compteur_hold =0 THEN
    lv_hode_reason := nvl(rec_ap_hold_invoices.hold_reason, ' ') ;
    lv_release_reason := nvl(rec_ap_hold_invoices.release_reason, ' ');
    ----concatener des autres blocages suivants pour la même facture
    Else
    lv_hode_reason := lv_hode_reason||nvl(rec_ap_hold_invoices.hold_reason, ' ');
    lv_release_reason := lv_release_reason||nvl(rec_ap_hold_invoices.release_reason, ' ');
    END IF;
    ln_compteur_hold := ln_compteur_hold +1;
    END LOOP;
    CLOSE cur_ap_hold_invoices;
    vv_buffer :=
    NVL(lv_societe_absorbee, ' ') ||vv_separator||
    NVL(lv_societe_absorbante, ' ') ||vv_separator||
    NVL(to_char(lv_date_fusion,'dd/mm/yyyy' ), ' ') ||vv_separator||
    NVL(to_char(rec_fusion_extract_AP_invoice.Invoice_Id), ' ') ||vv_separator
    UTL_FILE.PUT_LINE(lt_id, vv_buffer);
    ln_compteur_lignes := ln_compteur_lignes + 1;
    END LOOP;
    cgey_tools_pkg.put_log_message(to_char(ln_compteur_lignes) ||
    ' lignes inserees dans le fichier ' ||lv_rep||'/'
    || lv_name);
    CLOSE cur_fusion_extract_AP_invoice;
    UTL_FILE.FCLOSE(lt_id);
    cgey_tools_pkg.put_log_message(' ');
    cgey_tools_pkg.put_log_message(cv_line);
    EXCEPTION
    WHEN OTHERS THEN
    ROLLBACK;
    Raise err_ecriture_file;
    END ;
    EXCEPTION_
    WHEN err_non_parameter THEN
    pn_retcode := SQLCODE;
    cgey_tools_pkg.put_log_message ('error'||SQLCODE);
    cgey_tools_pkg.put_log_message ('error parameter : Veuillez vous verifier la configuration dans la table CGEY_PARAMETERS!');
    WHEN err_Soc_sr THEN
    pn_retcode := SQLCODE;
    cgey_tools_pkg.put_log_message ('error'||SQLCODE);
    cgey_tools_pkg.put_log_message ('error société_absorbée : Veuillez vous verifier le parameter de la société absorbée !');
    WHEN err_file_write THEN
    UTL_FILE.FCLOSE(lt_id);
    pv_errbuff := SQLERRM;
    pn_retcode := SQLCODE;
    cgey_tools_pkg.put_log_message ('error'||SQLCODE);
    cgey_tools_pkg.put_log_message('erreur write_error:'||pv_errbuff);
    WHEN err_file_invalid_path THEN
    UTL_FILE.FCLOSE(lt_id);
    pn_retcode := SQLCODE;
    pv_errbuff := SQLERRM;
    cgey_tools_pkg.put_log_message ('error'||SQLCODE);
    cgey_tools_pkg.put_log_message('erreur invalid_path:'||pv_errbuff);
    WHEN err_ecriture_file THEN
    UTL_FILE.FCLOSE(lt_id);
    pn_retcode := SQLCODE;
    pv_errbuff := SQLERRM;
    cgey_tools_pkg.put_log_message ('error'||SQLCODE);
    cgey_tools_pkg.put_log_message('err_ecriture_file:'||pv_errbuff);
    WHEN OTHERS THEN
    cgey_tools_pkg.put_log_message ('Une Erreur inconnue arrive lors que l''extraction du FUSION_fac_AP_EXTRAIRE!!');
    END MAIN_FUSION_EXTRACT;
    END SPR_AP_FUSION_EXTRACT_PKG;
    error at line 723 PLS-100103 "EXCEPTION"
    when expecting one of the following Error. Please help me!!
    Thanks a lot
    Edited by: kinkichin on 11 mars 2010 03:19

    Hi ,
    I have made some changes to the code search for --check condition* and check if the condition is correct.
    CREATE OR REPLACE PACKAGE BODY spr_ap_fusion_extract_pkg
    IS
       PROCEDURE main_fusion_extract (
          pv_errbuff   IN OUT   VARCHAR2,
          pn_retcode   IN OUT   NUMBER
       IS
          lv_ligne                        VARCHAR2 (500);
          lv_rep                          VARCHAR2 (260);        --:= '/usr/tmp';
          ln_retcode                      NUMBER;
          vv_separator                    VARCHAR2 (2)                     := ';';
          ln_compteur_lignes              NUMBER                             := 0;
                                   -- nombre de lignes insérées dans le fichier
          ln_counteur                     NUMBER                             := 0;
          vv_buffer                       VARCHAR2 (32000);
          vv_buffer_et                    VARCHAR2 (32000);
          vv_buffer_etold                 VARCHAR2 (32000);
          lt_id                           UTL_FILE.file_type;
          ln_counter                      NUMBER (24, 0);
          lv_seq                          VARCHAR2 (30);
          lv_num_paiement                 VARCHAR2 (10);
          flag_ecriture                   VARCHAR2 (1);
          lv_filler_ligne                 VARCHAR2 (500);
          ln_long_buff                    NUMBER                             := 0;
          ln_compteur_factures            NUMBER                             := 0;
          lv_name                         VARCHAR2 (500);
          vv_entete                       VARCHAR2 (500);
          lv_invoice_id                   ap_invoices_all.invoice_id%TYPE;
          ln_compteur_hold                NUMBER                             := 0;
          lv_hode_reason                  VARCHAR2 (500);
          lv_release_reason               VARCHAR2 (500);
          lv_societe_absorbee             VARCHAR2 (500);
          lv_societe_absorbante           VARCHAR2 (500);
          ln_org_id                       NUMBER                             := 0;
          lv_date_fusion                  DATE;
          err_non_parameter               EXCEPTION;
          err_soc_sr                      EXCEPTION;
          err_file_write                  EXCEPTION;
          err_file_invalid_path           EXCEPTION;
          err_ecriture_file               EXCEPTION;
          CURSOR cur_ap_hold_invoices (
             lv$invoice_id   IN   ap_invoices_all.invoice_id%TYPE
          IS
             SELECT aha.hold_reason, aha.release_reason
               FROM ap_holds_all aha
              WHERE aha.invoice_id = lv$invoice_id;
          rec_ap_hold_invoices            cur_ap_hold_invoices%ROWTYPE;
          --Enregistrement "DESTINATAIRE"
          CURSOR cur_fusion_extract_ap_invoice (
             lv$societe_absorbee    IN   cgey_parameters.varchar2_value%TYPE,
             lv$societe_absorbant   IN   cgey_parameters.varchar2_value%TYPE,
             lv$date_fusion         IN   cgey_parameters.date_value%TYPE
          IS
             SELECT aia.invoice_id, aia.invoice_num,
                    aia.invoice_type_lookup_code, aia.invoice_date, pv.vendor_id,
                    pv.segment1, pv.vendor_name, pvsa.vendor_site_id,
                    pvsa.vendor_site_code, aia.invoice_amount, aia.amount_paid
                                                                              -- RG3: Montant repris = valeur restante a regler
                    ROUND (NVL (SUM (apsa.amount_remaining), 0),
                           2
                          ) amount_remaining,
                    ap_invoices_utility_pkg.get_approval_status
                                             (aia.invoice_id,
                                              aia.invoice_amount,
                                              aia.payment_status_flag,
                                              aia.invoice_type_lookup_code
                                             ) statut,
                    aia.invoice_currency_code, aia.exchange_rate,
                    aia.exchange_rate_type, aia.exchange_date,
                    ate.NAME terms_name, aia.terms_date, aia.SOURCE,
                    aia.doc_category_code, aia.payment_method_lookup_code,
                    aia.pay_group_lookup_code, aia.gl_date, aia.doc_sequence_id,
                    aia.accts_pay_code_combination_id,
                    cgey_tools_pkg.get_segments_from_ccid
                       (aia.accts_pay_code_combination_id
                       ) cle_comptable_founisseur,
                    aia.org_id, aia.payment_cross_rate_type,
                    aia.payment_cross_rate_date, aia.payment_cross_rate,
                    aia.payment_currency_code, aia.attribute_category,
                    aia.attribute1, aia.attribute2, aia.attribute3,
                    aia.attribute4, aia.attribute5, aia.attribute6,
                    aia.attribute7, aia.attribute8, aia.attribute9,
                    aia.attribute10, aia.attribute11, aia.attribute12,
                    aia.attribute13, aia.attribute14, aia.attribute15,
                    aia.global_attribute_category, aia.global_attribute1,
                    aia.global_attribute2, aia.global_attribute3,
                    aia.global_attribute4, aia.global_attribute5,
                    aia.global_attribute6, aia.global_attribute7,
                    aia.global_attribute8, aia.global_attribute9,
                    aia.global_attribute10, aia.global_attribute11,
                    aia.global_attribute12, aia.global_attribute13,
                    aia.global_attribute14, aia.global_attribute15,
                    aia.global_attribute16, aia.global_attribute17,
                    aia.global_attribute18, aia.global_attribute19,
                    aia.global_attribute20
               FROM ap_invoices_all aia,
                    ap_payment_schedules_all apsa,
                    po_vendor_sites_all pvsa,
                    ap_terms ate,
                    po_vendors pv
              WHERE 1 = 1
                -- RG1: Type de la facture
                AND aia.invoice_type_lookup_code IN
                                                  ('STANDARD', 'CREDIT', 'DEBIT')
                AND apsa.invoice_id = aia.invoice_id
                AND pvsa.vendor_site_id = aia.vendor_site_id
                AND ate.term_id = aia.terms_id
                AND pv.vendor_id = aia.vendor_id
                -- RG 1: pour les factures créées antétieur à la date de fusion
                AND aia.creation_date < lv$date_fusion
                -- RG1: Ensemble des lignes de la facture postees
                AND NOT EXISTS (
                       SELECT   'x'
                           FROM ap_invoice_distributions_all aida
                          WHERE aida.invoice_id = aia.invoice_id
                            AND NVL (aida.accrual_posted_flag, 'N' = 'Y')
                                                                 --check condition
                            -- pour la société absorbée
                            AND aia.org_id =
                                          (SELECT organization_id
                                             FROM hr_all_organization_units haou
                                            WHERE haou.NAME = lv$societe_absorbee)
                       GROUP BY aia.invoice_id,
                                aia.invoice_num,
                                aia.invoice_type_lookup_code,
                                aia.invoice_date,
                                pv.vendor_id,
                                pv.segment1,
                                pv.vendor_name,
                                pvsa.vendor_site_id,
                                pvsa.vendor_site_code,
                                aia.invoice_amount,
                                aia.amount_paid
                                               -- RG3: Montant repris = valeur restante a regler
                                apsa.amount_remaining,
                                aia.payment_status_flag,
                                aia.invoice_currency_code,
                                aia.exchange_rate,
                                aia.exchange_rate_type,
                                aia.exchange_date,
                                ate.NAME,
                                aia.terms_date,
                                aia.SOURCE,
                                aia.doc_category_code,
                                aia.payment_method_lookup_code,
                                aia.pay_group_lookup_code,
                                aia.gl_date,
                                aia.doc_sequence_id,
                                aia.accts_pay_code_combination_id,
                                aia.org_id,
                                aia.payment_cross_rate_type,
                                aia.payment_cross_rate_date,
                                aia.payment_cross_rate,
                                aia.payment_currency_code,
                                aia.attribute_category,
                                aia.attribute1,
                                aia.attribute2,
                                aia.attribute3,
                                aia.attribute4,
                                aia.attribute5,
                                aia.attribute6,
                                aia.attribute7,
                                aia.attribute8,
                                aia.attribute9,
                                aia.attribute10,
                                aia.attribute11,
                                aia.attribute12,
                                aia.attribute13,
                                aia.attribute14,
                                aia.attribute15,
                                aia.global_attribute_category,
                                aia.global_attribute1,
                                aia.global_attribute2,
                                aia.global_attribute3,
                                aia.global_attribute4,
                                aia.global_attribute5,
                                aia.global_attribute6,
                                aia.global_attribute7,
                                aia.global_attribute8,
                                aia.global_attribute9,
                                aia.global_attribute10,
                                aia.global_attribute11,
                                aia.global_attribute12,
                                aia.global_attribute13,
                                aia.global_attribute14,
                                aia.global_attribute15,
                                aia.global_attribute16,
                                aia.global_attribute17,
                                aia.global_attribute18,
                                aia.global_attribute19,
                                aia.global_attribute20
                         HAVING NVL (SUM (apsa.amount_remaining), 0) <>
                                                                0
                                                                 --check condition
                       UNION ALL
                       SELECT   aia.invoice_id, aia.invoice_num,
                                aia.invoice_type_lookup_code, aia.invoice_date,
                                pv.vendor_id, pv.segment1, pv.vendor_name,
                                pvsa.vendor_site_id, pvsa.vendor_site_code,
                                aia.invoice_amount, aia.amount_paid
                                                                   -- RG3: Montant repris = valeur restante a regler
                                ap_invoices_utility_pkg.get_prepay_amount_remaining
                                               (aia.invoice_id)
                                                               "Amount_Remaining",
                                ap_invoices_utility_pkg.get_approval_status
                                             (aia.invoice_id,
                                              aia.invoice_amount,
                                              aia.payment_status_flag,
                                              aia.invoice_type_lookup_code
                                             ) statut,
                                aia.invoice_currency_code, aia.exchange_rate,
                                aia.exchange_rate_type, aia.exchange_date,
                                ate.NAME terms_name, aia.terms_date, aia.SOURCE,
                                aia.doc_category_code,
                                aia.payment_method_lookup_code,
                                aia.pay_group_lookup_code, aia.gl_date,
                                aia.doc_sequence_id,
                                aia.accts_pay_code_combination_id,
                                cgey_tools_pkg.get_segments_from_ccid
                                   (aia.accts_pay_code_combination_id
                                   ) cle_comptable_founisseur,
                                aia.org_id, aia.payment_cross_rate_type,
                                aia.payment_cross_rate_date,
                                aia.payment_cross_rate, aia.payment_currency_code,
                                aia.attribute_category, aia.attribute1,
                                aia.attribute2, aia.attribute3, aia.attribute4,
                                aia.attribute5, aia.attribute6, aia.attribute7,
                                aia.attribute8, aia.attribute9, aia.attribute10,
                                aia.attribute11, aia.attribute12, aia.attribute13,
                                aia.attribute14, aia.attribute15,
                                aia.global_attribute_category,
                                aia.global_attribute1, aia.global_attribute2,
                                aia.global_attribute3, aia.global_attribute4,
                                aia.global_attribute5, aia.global_attribute6,
                                aia.global_attribute7, aia.global_attribute8,
                                aia.global_attribute9, aia.global_attribute10,
                                aia.global_attribute11, aia.global_attribute12,
                                aia.global_attribute13, aia.global_attribute14,
                                aia.global_attribute15, aia.global_attribute16,
                                aia.global_attribute17, aia.global_attribute18,
                                aia.global_attribute19, aia.global_attribute20
                           FROM ap_invoices_all aia,
                                po_vendor_sites_all pvsa,
                                ap_terms ate,
                                po_vendors pv
                          WHERE 1 = 1
                            -- RG2: Type de la facture
                            AND aia.invoice_type_lookup_code = 'PREPAYMENT'
                            -- RG2: Amount_Paid Invoice_Amount
                            AND NVL (aia.invoice_amount, 0) =
                                                          NVL (aia.amount_paid, 0)
                            AND pvsa.vendor_site_id = aia.vendor_site_id
                            AND ate.term_id = aia.terms_id
                            AND pv.vendor_id = aia.vendor_id
                            -- RG2: Ensemble des lignes de la facture postees
                            AND NOT EXISTS (
                                   SELECT 'x'
                                     FROM ap_invoice_distributions_all aida
                                    WHERE aida.invoice_id = aia.invoice_id
                                      AND NVL (aida.accrual_posted_flag, 'N') =
                                                                               'Y')
                                                                 --check condition
                            -- pour la société absorbée
                            AND aia.org_id =
                                          (SELECT organization_id
                                             FROM hr_all_organization_units haou
                                            WHERE haou.NAME = lv$societe_absorbee)
                            -- RG 1: pour les factures créées antétieur à la date de fusion
                            AND aia.creation_date < lv$date_fusion
                       GROUP BY aia.invoice_id,
                                aia.invoice_num,
                                aia.invoice_type_lookup_code,
                                aia.invoice_date,
                                pv.vendor_id,
                                pv.segment1,
                                pv.vendor_name,
                                pvsa.vendor_site_id,
                                pvsa.vendor_site_code,
                                aia.invoice_amount,
                                aia.amount_paid,
                                aia.payment_status_flag,
                                aia.invoice_currency_code,
                                aia.exchange_rate,
                                aia.exchange_rate_type,
                                aia.exchange_date,
                                ate.NAME,
                                aia.terms_date,
                                aia.SOURCE,
                                aia.doc_category_code,
                                aia.payment_method_lookup_code,
                                aia.pay_group_lookup_code,
                                aia.gl_date,
                                aia.doc_sequence_id,
                                aia.accts_pay_code_combination_id,
                                aia.org_id,
                                aia.payment_cross_rate_type,
                                aia.payment_cross_rate_date,
                                aia.payment_cross_rate,
                                aia.payment_currency_code,
                                aia.attribute_category,
                                aia.attribute1,
                                aia.attribute2,
                                aia.attribute3,
                                aia.attribute4,
                                aia.attribute5,
                                aia.attribute6,
                                aia.attribute7,
                                aia.attribute8,
                                aia.attribute9,
                                aia.attribute10,
                                aia.attribute11,
                                aia.attribute12,
                                aia.attribute13,
                                aia.attribute14,
                                aia.attribute15,
                                aia.global_attribute_category,
                                aia.global_attribute1,
                                aia.global_attribute2,
                                aia.global_attribute3,
                                aia.global_attribute4,
                                aia.global_attribute5,
                                aia.global_attribute6,
                                aia.global_attribute7,
                                aia.global_attribute8,
                                aia.global_attribute9,
                                aia.global_attribute10,
                                aia.global_attribute11,
                                aia.global_attribute12,
                                aia.global_attribute13,
                                aia.global_attribute14,
                                aia.global_attribute15,
                                aia.global_attribute16,
                                aia.global_attribute17,
                                aia.global_attribute18,
                                aia.global_attribute19,
                                aia.global_attribute20
                         HAVING ap_invoices_utility_pkg.get_prepay_amount_remaining
                                                                   (aia.invoice_id) <>
                                                                                 0
                            AND ap_invoices_utility_pkg.get_approval_status
                                                     (aia.invoice_id,
                                                      aia.invoice_amount,
                                                      aia.payment_status_flag,
                                                      aia.invoice_type_lookup_code
                                                     ) = 'AVAILABLE');
                                                                --check condition;
          rec_fusion_extract_ap_invoice   cur_fusion_extract_ap_invoice%ROWTYPE;
       BEGIN
          ---------Initialisation
          pn_retcode := 0;
          pv_errbuff := NULL;
          ln_compteur_lignes := 0;
          lv_societe_absorbee :=
             cgey_tools_pkg.get_varchar2_parameter ('SPR_FUSION_AP_SOCIETE',
                                                    'SOC_SR'
          lv_societe_absorbante :=
             cgey_tools_pkg.get_varchar2_parameter ('SPR_FUSION_AP_SOCIETE',
                                                    'SOC_CB'
          lv_date_fusion :=
             cgey_tools_pkg.get_date_parameter ('SPR_FUSION_AP_SOCIETE',
                                                'DATE_FUSION'
          lv_rep :=
             cgey_tools_pkg.get_varchar2_parameter ('SPR_FUSION_AP_SOCIETE',
                                                    'REPERTOIRE_SORTIE'
          ----err_non_parameter
          IF    lv_societe_absorbee IS NULL
             OR lv_societe_absorbante IS NULL
             OR lv_date_fusion IS NULL
             OR lv_rep IS NULL
          THEN
             RAISE err_non_parameter;
          END IF;
          SELECT NVL (organization_id, 'NULL')
            INTO ln_org_id
            FROM hr_all_organization_units haou
           WHERE haou.NAME = lv_societe_absorbee;
          ----err_Soc_sr
          IF ln_org_id = 'NULL'
          THEN
             RAISE err_soc_sr;
          END IF;
          BEGIN
             ----Création du fichier sorti
             cgey_tools_pkg.put_log_message
                                   ('Création et Ouverture du fichier en lecture');
             lv_name :=
                   'FUSION_fac_AP_EXTRAIRE'
                || TO_CHAR (SYSDATE, 'DDMMYYYY_HH24MISS')
                || '.txt';
             cgey_tools_pkg.put_log_message ('Fichier sortie est ' || lv_name);
             lt_id := UTL_FILE.fopen (lv_rep, lv_name, 'w');
             IF UTL_FILE.is_open (lt_id)
             THEN
                cgey_tools_pkg.put_log_message (cv_line);
                cgey_tools_pkg.put_log_message (   'Creation OK du fichier: '
                                                || lv_name
             ELSE
                cgey_tools_pkg.put_log_message (cv_line);
                cgey_tools_pkg.put_log_message
                                             (   'Probleme ouverture du fichier '
                                              || lv_name
             END IF;
          ----EXCEPTION UTL_FILE.WRITE_ERROR, UTL_FILE.INVALID_PATH
          EXCEPTION
             WHEN UTL_FILE.write_error
             THEN
                RAISE err_file_write;
             WHEN UTL_FILE.invalid_path
             THEN
                RAISE err_file_invalid_path;
          ----Création du fichier sorti
          END;
          BEGIN
             UTL_FILE.put_line (lt_id, vv_entete);
             ----CURSOR FACTURE A EXTRAIRE
             OPEN cur_fusion_extract_ap_invoice (lv_societe_absorbee,
                                                 lv_societe_absorbante,
                                                 lv_date_fusion
             LOOP
                FETCH cur_fusion_extract_ap_invoice
                 INTO rec_fusion_extract_ap_invoice;
                EXIT WHEN cur_fusion_extract_ap_invoice%NOTFOUND;
                lv_invoice_id := rec_fusion_extract_ap_invoice.invoice_id;
                ln_compteur_hold := 0;
                lv_hode_reason := NULL;
                lv_release_reason := NULL;
                OPEN cur_ap_hold_invoices
                                        (rec_fusion_extract_ap_invoice.invoice_id);
                LOOP
                   FETCH cur_ap_hold_invoices
                    INTO rec_ap_hold_invoices;
                   EXIT WHEN cur_ap_hold_invoices%NOTFOUND;
                   ----La première blocage à traiter
                   IF ln_compteur_hold = 0
                   THEN
                      lv_hode_reason :=
                                      NVL (rec_ap_hold_invoices.hold_reason, ' ');
                      lv_release_reason :=
                                   NVL (rec_ap_hold_invoices.release_reason, ' ');
                   ----concatener des autres blocages suivants pour la même facture
                   ELSE
                      lv_hode_reason :=
                            lv_hode_reason
                         || NVL (rec_ap_hold_invoices.hold_reason, ' ');
                      lv_release_reason :=
                            lv_release_reason
                         || NVL (rec_ap_hold_invoices.release_reason, ' ');
                   END IF;
                   ln_compteur_hold := ln_compteur_hold + 1;
                END LOOP;
                CLOSE cur_ap_hold_invoices;
                vv_buffer :=
                      NVL (lv_societe_absorbee, ' ')
                   || vv_separator
                   || NVL (lv_societe_absorbante, ' ')
                   || vv_separator
                   || NVL (TO_CHAR (lv_date_fusion, 'dd/mm/yyyy'), ' ')
                   || vv_separator
                   || NVL (TO_CHAR (rec_fusion_extract_ap_invoice.invoice_id),
                   || vv_separator;
                UTL_FILE.put_line (lt_id, vv_buffer);
                ln_compteur_lignes := ln_compteur_lignes + 1;
             END LOOP;
             cgey_tools_pkg.put_log_message
                                           (   TO_CHAR (ln_compteur_lignes)
                                            || ' lignes inserees dans le fichier '
                                            || lv_rep
                                            || '/'
                                            || lv_name
             CLOSE cur_fusion_extract_ap_invoice;
             UTL_FILE.fclose (lt_id);
             cgey_tools_pkg.put_log_message (' ');
             cgey_tools_pkg.put_log_message (cv_line);
          EXCEPTION
             WHEN OTHERS
             THEN
                ROLLBACK;
                RAISE err_ecriture_file;
          END;
       EXCEPTION
          WHEN err_non_parameter
          THEN
             pn_retcode := SQLCODE;
             cgey_tools_pkg.put_log_message ('error' || SQLCODE);
             cgey_tools_pkg.put_log_message
                ('error parameter : Veuillez vous verifier la configuration dans la table CGEY_PARAMETERS!'
          WHEN err_soc_sr
          THEN
             pn_retcode := SQLCODE;
             cgey_tools_pkg.put_log_message ('error' || SQLCODE);
             cgey_tools_pkg.put_log_message
                ('error société_absorbée : Veuillez vous verifier le parameter de la société absorbée !'
          WHEN err_file_write
          THEN
             UTL_FILE.fclose (lt_id);
             pv_errbuff := SQLERRM;
             pn_retcode := SQLCODE;
             cgey_tools_pkg.put_log_message ('error' || SQLCODE);
             cgey_tools_pkg.put_log_message ('erreur write_error:' || pv_errbuff);
          WHEN err_file_invalid_path
          THEN
             UTL_FILE.fclose (lt_id);
             pn_retcode := SQLCODE;
             pv_errbuff := SQLERRM;
             cgey_tools_pkg.put_log_message ('error' || SQLCODE);
             cgey_tools_pkg.put_log_message ('erreur invalid_path:' || pv_errbuff);
          WHEN err_ecriture_file
          THEN
             UTL_FILE.fclose (lt_id);
             pn_retcode := SQLCODE;
             pv_errbuff := SQLERRM;
             cgey_tools_pkg.put_log_message ('error' || SQLCODE);
             cgey_tools_pkg.put_log_message ('err_ecriture_file:' || pv_errbuff);
          WHEN OTHERS
          THEN
             cgey_tools_pkg.put_log_message
                ('Une Erreur inconnue arrive lors que l''extraction du FUSION_fac_AP_EXTRAIRE!!'
       END main_fusion_extract;
    END spr_ap_fusion_extract_pkg;*009*
    Edited by: 009 on Mar 11, 2010 3:31 AM

  • When I try to burn a DVD in Premiere Elements 12 I get an Internal software error%0, line %

    When I try to burn a DVD in Premiere Elements 12, I get an Internal software error %0, line %1. This is the first time that I have tried to use this program.

    As suggested in the original reply in January, you will find best advice over on the video forum. Most of us here are photographers.
    Click on the link below and copy and paste your question again. Good luck.
    Video questions: Click here for Premiere Elements Forum

  • ERROR at line 1: ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine ORA-20000: Oracle Text error: DRG-10700: preference does not exist: global_lexer ORA-06512: at "CTXSYS.DRUE", line 160 ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 366

    database version 11.2.0.4
    rac two node
    CREATE INDEX MAXIMO.ACTCI_NDX3 ON MAXIMO.ACTCI
    (DESCRIPTION)
    INDEXTYPE IS CTXSYS.CONTEXT
    PARAMETERS('lexer global_lexer language column LANGCODE')
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-10700: preference does not exist: global_lexer
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 366

    Like the error message says, you don't have a global_lexer.  So, you need to create a global_lexer and that lexer must have at least a default sub_lexer, then you can use that global_lexer in your index parameters.  Please see the demonstration below, including reproduction of the error and solution.
    SCOTT@orcl12c> -- reproduction of problem:
    SCOTT@orcl12c> CREATE TABLE actci
      2    (description  VARCHAR2(60),
      3      langcode     VARCHAR2(30))
      4  /
    Table created.
    SCOTT@orcl12c> CREATE INDEX ACTCI_NDX3 ON ACTCI (DESCRIPTION)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  PARAMETERS('lexer global_lexer language column LANGCODE')
      4  /
    CREATE INDEX ACTCI_NDX3 ON ACTCI (DESCRIPTION)
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-10700: preference does not exist: global_lexer
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 366
    SCOTT@orcl12c> -- solution:
    SCOTT@orcl12c> DROP INDEX actci_ndx3
      2  /
    Index dropped.
    SCOTT@orcl12c> BEGIN
      2    CTX_DDL.CREATE_PREFERENCE ('global_lexer', 'multi_lexer');
      3    CTX_DDL.CREATE_PREFERENCE ('english_lexer', 'basic_lexer');
      4    CTX_DDL.ADD_SUB_LEXER ('global_lexer', 'default', 'english_lexer');
      5  END;
      6  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> CREATE INDEX ACTCI_NDX3 ON ACTCI (DESCRIPTION)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  PARAMETERS('lexer global_lexer language column LANGCODE')
      4  /
    Index created.

  • Error - Balancing Line Item Profit Center not filled in Line Item 007

    Hi
    I am trying to do a transfer posting from one vendor account to another. However, system is giving an error - Balancing Line Item Profit Center not filled in line Item 001. Pls suggest.
    Regards
    Vaibhav

    hi  vaibhav
    you go through this Tcode  FAGL3KEH  and maintain default profit centre. in the  error message system shown GL accounts
    hope you userstand
    thanks
    dharmendar

  • Error While fetching data error on line 2 at column 245:

    This page contains the following errors:
    error on line 2 at column 245: Opening and ending tag mismatch: img line 0 and span
    Below is a rendering of the page up to the first error.
    I'm not using date column in report.

    Hi,
    at least, isn't this should be in double quotes: 'Stock Order'
    i.e. 'Stock Order' change to "Stock Order"
    seems you either using some customized RMS or you have couple errors in table names and columns names as well.
    Eldar.A

  • TS1424 All of my books in iBooks have the following message:  "this page has the following errors:  error on line 1 at column 1 document is empty error on line 1 : encoding error..,...". Any advice?

    All of my books in iBooks have the following message:  "this page has the following errors:  error on line 1 at column 1 document is empty error on line 1 : encoding error..,...". Any advice?

    I have the same problem. I've tried to restart my Ipad and downloaded the book again several times but nothing has changed. There aren't any reviews on the book with that problem and I've got the latest version of iBook so I don't know what else I can do to get the book which I've paid for. Does anyone have another idea what I could do? (maybe one of the above might help you, Paul)
    Thanks

  • Ibooks Error This page contains the following errors: error on line 1 at column 1: Document is empty error on line 1 at column 1: Encoding error Below is a rendering of the page up to the first error

    I am getting this error with my latest Ibook,
    This page contains the following errors:
    error on line 1 at column 1: Document is empty error on line 1 at column 1: Encoding error
    Below is a rendering of the page up to the first error
    Can anyone offer a fix?
    Thanks
    Paul

    I have the same problem. I've tried to restart my Ipad and downloaded the book again several times but nothing has changed. There aren't any reviews on the book with that problem and I've got the latest version of iBook so I don't know what else I can do to get the book which I've paid for. Does anyone have another idea what I could do? (maybe one of the above might help you, Paul)
    Thanks

  • Trying to create a pdf with jasper - Parse Fatal Error at line 1 column 1:

    29/11/2007 16:52:03 org.apache.commons.digester.Digester fatalError
    SEVERE: Parse Fatal Error at line 1 column 1: Content is not allowed in prolog.
    org.xml.sax.SAXParseException: Content is not allowed in prolog.
         at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
         at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:215)
         at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386)
         at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
         at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1438)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(XMLDocumentScannerImpl.java:899)
         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
         at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
         at org.apache.commons.digester.Digester.parse(Digester.java:1666)
         at net.sf.jasperreports.engine.xml.JRPrintXmlLoader.loadXML(JRPrintXmlLoader.java:151)
         at net.sf.jasperreports.engine.xml.JRPrintXmlLoader.load(JRPrintXmlLoader.java:103)
         at net.sf.jasperreports.view.JRViewer.loadReport(JRViewer.java:1376)
         at net.sf.jasperreports.view.JRViewer.<init>(JRViewer.java:243)
         at net.sf.jasperreports.view.JRViewer.<init>(JRViewer.java:214)
         at net.sf.jasperreports.view.JasperViewer.<init>(JasperViewer.java:140)
         at net.sf.jasperreports.view.JasperViewer.viewReport(JasperViewer.java:397)
         at net.sf.jasperreports.view.JasperViewer.viewReport(JasperViewer.java:328)
         at br.com.abril.contratos.Gerar.geraRelatorio(Gerar.java:38)
         at br.com.abril.contratos.Gerar.main(Gerar.java:47)

    The XML file that you're reading has something before the first line - either a comment, whitespace, or other characters. The first characters of your XML file MUST be the XML declaration:
    <?xml ...
    If there's anything before that angle bracket it's not valid XML.

Maybe you are looking for

  • My iphone4 is not recognized by my mac

    I cant do an update on my iphone. I plug it into the computer and the only thing that happens is the phone starts to charge. I have deleted itunes and reinstalled as well as a few other tips and tricks online with no success. I have an iphone 4, an i

  • Why am I losing the right side of my frames?

    I am working with video originally shot on handled camer with an SD card that has then been copied to a DVD.  The VOB files are 720x480 and 29FPS.  When I add the media I have tried several project pre-set settings, however all of them are cutting of

  • Database Adapter: exposing multiple operations using one PartnerLink

    Hi, I use the Database Adapter for accessing stored procedures in a package. Using the wizard, I am able to specify a PartnerLink for one procedure in my package. However, the same package (my 'business service') contains multiple procedures I want t

  • A scanned pageful of different images. i want to delete just a few. how?

    i have scanned a page full of small tattoo designs. i would like to delete some off the page and just keep the ones i like. masking doesnt work because i want to delete what i put in the square, not everything around the square. would also like to kn

  • Canon Pixma MP495 not working with mini

    I'm trying to use the scanner on my Canon Pixma MP495 with my Mac Mini.  The printer works okay, but when I click on the scanner, I get an error that says reopeon or okay - MP Navigator EX quit unexpectedly.