Getting Error While Attaching Concurrent Program Output PDF file for POAPPRV Workflow

Hi All,
I am getting the below error when I am trying to attach concurrent program output to the PO Approval Notification.
An Error occurred in the following Workflow.
Item Type = POAPPRV
Item Key = 1040589-528378
User Key =945871
Error Name = WF_ERROR
Error Message = [WF_ERROR] ERROR_MESSAGE=3835: Error '-20002 - ORA-20002: [WFMLR_DOCUMENT_ERROR]' encountered during execution of Generate function 'WF_XML.Generate' for event 'oracle.apps.wf.notification.send'. ERROR_STACK=
Wf_Notification.GetAttrblob(3604701, ZZ_PREVIOUS_PO_COMPARE, text/html)
WF_XML.GetAttachment(3604701, text/html)
WF_XML.GetAttachments(3604701, http://oraerp.am.corp.xxxx.com:8099/pls/DEV, 11283)
WF_XML.GenerateDoc(oracle.apps.wf.notification.send, 3604701)
WF_XML.Generate(oracle.apps.wf.notification.send, 3604701)
WF_XML.Generate(oracle.apps.wf.notification.send, 3604701)
Wf_Event.setMessage(oracle.apps.wf.notification.send, 3604701, WF_XML.Generate)
Wf_Event.dispatch_internal()
Error Stack =
Activity ID = 190844
Activity Label = AL_NOTIFY_APPROVER_PROCESS:ZZ_PO_PO_APPROVE_ATTCH
Result Code = #MAIL
Notification ID = 3604701
There are several threads for this error however I cannot find any specific solution to the problem.
Please find the code below -
    wf_engine.setitemattrdocument(itemtype=>itemtype,
                                  itemkey=> itemkey,
                                  aname=>'ZZ_PREVIOUS_PO_COMPARE',
                                  documentid =>'PLSQLBLOB:zz_po_reqapproval_init1.xx_notif_attachments/' || to_char(l_request_id_prev_po)||':'||to_char(l_document_num));
-- here l_request_id_q_and_s is the request id of the program and l_document_num is the PO document number
PROCEDURE xx_notif_attachments(p_request_id    IN VARCHAR2,
                               p_document_num  IN VARCHAR2,
                               p_document      IN OUT BLOB,
                               p_document_type IN OUT VARCHAR2) IS
  v_lob_id          NUMBER;
  v_document_num    VARCHAR2(15);
  v_document_prefix VARCHAR2(100);
  v_file_name       VARCHAR2(500);
  v_file_on_os      BFILE;
  v_temp_lob        BLOB;
  v_dest_offset     NUMBER := 1;
  v_src_offset      NUMBER := 1;
  v_out_file_name   VARCHAR2(2000);
  v_conc_prog_name  VARCHAR2(500);
  v_conc_req_id     NUMBER;
  CURSOR get_output_file(p_concurrent_request_id NUMBER) IS
    SELECT cr.outfile_name, cp.concurrent_program_name
      FROM fnd_concurrent_requests cr, fnd_concurrent_programs_vl cp
     WHERE request_id = p_concurrent_request_id
       AND cp.concurrent_program_id = cr.concurrent_program_id;
BEGIN
  --    set_debug_context('xx_notif_attach_procedure');
  v_conc_req_id  := to_number(substr(p_request_id,
                                     1,
                                     instr(p_request_id, ':') - 1));
  v_document_num := substr(p_request_id,
                           instr(p_request_id, ':') + 1,
                           length(p_request_id) - 2);
  OPEN get_output_file(v_conc_req_id);
  FETCH get_output_file
    INTO v_out_file_name, v_conc_prog_name;
  CLOSE get_output_file;
  v_out_file_name := substr(v_out_file_name,
                            instr(v_out_file_name, '/', -1) + 1);
  v_file_name     := to_char(v_document_num) || '-Previous_PO_Rev.pdf';
  utl_file.fcopy(src_location  => 'APPS_OUT_DIR',
                 src_filename  => v_out_file_name,
                 dest_location => 'PO_DATA_DIR',
                 dest_filename => v_file_name);
  --  v_lob_id := to_number(v_document_id);
  v_file_on_os := bfilename('PO_DATA_DIR', v_file_name);
  dbms_lob.createtemporary(v_temp_lob, cache => FALSE);
  dbms_lob.fileopen(v_file_on_os, dbms_lob.file_readonly);
  dbms_lob.loadblobfromfile(dest_lob    => v_temp_lob,
                            src_bfile   => v_file_on_os,
                            amount      => dbms_lob.getlength(v_file_on_os),
                            dest_offset => v_dest_offset,
                            src_offset  => v_src_offset);
  dbms_lob.fileclose(v_file_on_os);
  p_document_type := 'application/pdf;name=' || v_file_name;
  dbms_lob.copy(p_document, v_temp_lob, dbms_lob.getlength(v_temp_lob));
EXCEPTION
  WHEN OTHERS THEN
    wf_core.CONTEXT('ZZ_PO_REQAPPROVAL_INIT1',
                    'xx_notif_attachments',
                    v_document_num,
                    p_request_id);
    RAISE;
END xx_notif_attachments;
Please help me find a to the above mentioned error.
Thanks,
Suvigya

There are two ways to look at what error the PLSQLBLOB API is throwing.
1) Call your PLSQLBLOB API GNE_PO_CREATE_FILE_ATTACHMENT.Gne_Create_File_Attachment directly from a PLSQL block and verify that it returns the BLOB data successfully.
You could also call another WF API that in turn executes the PLSQLBLOB API internally. For example,
<pre>
declare
l_document blob;
l_doctype varchar2(240);
l_aname varchar2(90);
begin
dbms_lob.CreateTemporary(l_document, true, dbms_lob.Session);
-- 207046 - This is the notification id of your failed workflow
-- PO_REPORT - Document type attribute
-- 'text/html' - Content Type being generated for
Wf_Notification.GetAttrBLOB(207046, 'PO_REPORT', 'text/html', l_document, l_doctype, l_aname);
-- Print the size of the document here to verify it was fetched correctly
end;
</pre>
2) Turn on log for SYSADMIN user with following attributes.
Log Enabled = TRUE
Log Level = ERROR
Log Module = wf.plsql%
Restart the Workflow Deferred Agent Listener and Workflow Notification Deferred Agent Listener and run your workflow process. Search for log messages written for above context and you can identify the error at wf.plsql.WF_XML.GetAttachment module with message starting as "Error when getting BLOB attachment ->"
Hope this helps.
Vijay

Similar Messages

  • Getting error While attaching Report out put Pdf file to POAPPRV workflow

    I am getting below error in workflow
    Item Type = POAPPRV
    Item Key = 60383-243513
    User Key =40515
    Error Name = WF_ERROR
    Error Message = [WF_ERROR] ERROR_MESSAGE=3835: Error '-20002 - ORA-20002: [WFMLR_DOCUMENT_ERROR]' encountered during execution of Generate function 'WF_XML.Generate' for event 'oracle.apps.wf.notification.send'. ERROR_STACK=
    GNE_PO_CREATE_FILE_ATTACHMENT.Gne_Create_File_Attachment(60383-243513 OAPPRV, text/html)
    Wf_Notification.GetAttrblob(207046, PO_REPORT, text/html)
    WF_XML.GetAttachment(207046, text/html)
    WF_XML.GetAttachments(207046, http://gnedxbebsdev.gerab.ae:8003/pls/DEV, 850
    WF_XML.GenerateDoc(oracle.apps.wf.notification.send, 207046)
    WF_XML.Generate(oracle.apps.wf.notification.send, 207046)
    WF_XML.Generate(oracle.apps.wf.notification.send, 207046)
    Wf_Event.setMessage(oracle.apps.wf.notification.send, 207046, WF_XML.Generate)
    Wf_Event.dispatch_internal()
    Error Stack =
    Activity Id = 124108
    Activity Label = NOTIFY_APPROVER_SUBPROCESS:GNE_PO_NOTI_TO_CEO
    Result Code = #MAIL
    Notification Id = 207046
    The Code used in procedure is given below
    procedure Gne_Create_File_Attachment (document_id in varchar2,
    display_type in varchar2,
    document in out blob,
    document_type in out varchar2)
    is
    l_itemtype varchar2(100);
    l_itemkey varchar2(100);
    l_output_directory varchar2(30);
    l_filename varchar2(255);
    src_loc bfile;
    bdoc blob;
    src_offset number := 1;
    dst_offset number := 1;
    amount number;
    l_request_id varchar2(100);
    begin
    l_itemtype := substr(document_id, 1, instr(document_id, ':') - 1);
    l_itemkey := substr(document_id, instr(document_id, ':') + 1, length(document_id) - 2);
    select attribute4
    into l_request_id
    from po_headers_all
    where to_char(PO_HEADER_ID)=l_itemtype;
    l_output_directory := 'APPLCSF/APPLOUT';
    l_filename := 'o'||l_request_id;
    src_loc := bfilename(l_output_directory,l_filename);
    dbms_lob.createTemporary(bdoc, FALSE, dbms_lob.call);
    dbms_lob.fileopen(src_loc, dbms_lob.file_readonly);
    dbms_lob.loadblobfromfile(bdoc,src_loc,dbms_lob.lobmaxsize,src_offset,dst_offset);
    dbms_lob.fileclose(src_loc);
    amount := dbms_lob.getLength(bdoc);
    dbms_lob.copy(document,bdoc,amount,1,1);
    document_type := 'application/pdf; name=attach.pdf';
    EXCEPTION
    WHEN OTHERS THEN
    wf_core.CONTEXT('GNE_PO_CREATE_FILE_ATTACHMENT'
    ,'Gne_Create_File_Attachment'
    ,document_id
    ,display_type);
    RAISE;
    end GNE_Create_File_Attachment;
    PROCEDURE Gne_Assign_wf_Attribute(
    itemtype IN VARCHAR2,
    itemkey IN VARCHAR2,
    actid IN NUMBER,
    funcmode IN VARCHAR2,
    resultout OUT NOCOPY VARCHAR2)
    IS
    v_user_name varchar2(100);
    BEGIN
    IF FUNCMODE = 'RUN' THEN
    wf_engine.setitemattrdocument
    (itemtype => itemtype
    , itemkey => itemkey
    , aname => 'PO_REPORT'
    , documentid =>'PLSQLBLOB:GNE_PO_CREATE_FILE_ATTACHMENT.GNE_Create_File_Attachment/'
    || itemkey
    || ':'
    || itemtype);
    end if;
    EXCEPTION
    WHEN OTHERS THEN
    wf_core.CONTEXT('GNE_PO_CREATE_FILE_ATTACHMENT'
    ,'Gne_Assign_wf_Attribute'
    ,itemtype
    ,itemkey);
    RAISE;
    END Gne_Assign_wf_Attribute;
    Can Any Body Please help me....
    It is very urgent..
    Thanks In Advance
    Anil Kumar

    There are two ways to look at what error the PLSQLBLOB API is throwing.
    1) Call your PLSQLBLOB API GNE_PO_CREATE_FILE_ATTACHMENT.Gne_Create_File_Attachment directly from a PLSQL block and verify that it returns the BLOB data successfully.
    You could also call another WF API that in turn executes the PLSQLBLOB API internally. For example,
    <pre>
    declare
    l_document blob;
    l_doctype varchar2(240);
    l_aname varchar2(90);
    begin
    dbms_lob.CreateTemporary(l_document, true, dbms_lob.Session);
    -- 207046 - This is the notification id of your failed workflow
    -- PO_REPORT - Document type attribute
    -- 'text/html' - Content Type being generated for
    Wf_Notification.GetAttrBLOB(207046, 'PO_REPORT', 'text/html', l_document, l_doctype, l_aname);
    -- Print the size of the document here to verify it was fetched correctly
    end;
    </pre>
    2) Turn on log for SYSADMIN user with following attributes.
    Log Enabled = TRUE
    Log Level = ERROR
    Log Module = wf.plsql%
    Restart the Workflow Deferred Agent Listener and Workflow Notification Deferred Agent Listener and run your workflow process. Search for log messages written for above context and you can identify the error at wf.plsql.WF_XML.GetAttachment module with message starting as "Error when getting BLOB attachment ->"
    Hope this helps.
    Vijay

  • Error While Submitting Concurrent Program

    Hi all,
    While submitting Concurrent Program in HRMS to check the Seeded Output,I am getting the following Message
    app-fnd-00314 invalid printer ( not print ) and print style (ZA PS Portrait) combination.
    Could someone please tell me How could I figure it out.
    Thanks & Regards

    914618 wrote:
    Hi all,
    While submitting Concurrent Program in HRMS to check the Seeded Output,I am getting the following Message
    app-fnd-00314 invalid printer ( not print ) and print style (ZA PS Portrait) combination.
    Could someone please tell me How could I figure it out.
    Thanks & RegardsWhat is the type of the concurrent program?
    Are you printing to specific printer or to noprint?
    Please see the solution in these docs.
    Accrual Reconciliation Report Errors With APP-FND-00314 Invalid Printer And Print Style Combination [ID 564009.1]
    Cash/Bank Book Report Error APP-FND-00314: "invalid printer and print style inloc_bacs” [ID 551975.1]
    Quarterly Tax Return Worksheet (Form 941) Fails With APP-FND-00314 [ID 307701.1]
    Thanks,
    Hussein

  • Getting error while Year end closing in asset accounting for the year ...

    Hi,
        i am getting error while doing Year end closing in asset accounting for the year 2004. It is giving few assets and saying that "Depreciation not posted completely"
    Can any body help in this reagards.
    With regards,

    Dear Shree,
    Do u have the list of all such assets for which no depreciation has been posted. If yes, then go to AFAB, upload the list all these assets & then select the radio button as 'repeat'.
    This will post you depreciation for all the assets. then close the year.
    regards,
    Ajay

  • Getting warning while running concurrent program for XML report

    HI,
    Am trying to run a xml-publisher report by converting a D2k report and am getting the following warning message and not getting the out put.
    Receivables: Version : 11.5.0 - Development
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    XX_EMPLOYEES module: XX_EMPLOYEES
    Current system time is 04-DEC-2007 12:25:37
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    APPLLCSP Environment Variable set to :
    XML_REPORTS_XENVIRONMENT is :
    /dplay/applmgr/product/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    XENVIRONMENT is set to /dplay/applmgr/product/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    AMERICAN_AMERICA.UTF8
    Report Builder: Release 6.0.8.25.0 - Production on Tue Dec 4 12:25:38 2007
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    Enter Username:
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Executing request completion options...
    ------------- 1) PUBLISH -------------
    Beginning post-processing of request 2057165 on node CRMAP102.ASHOKLEYLAND.COM at 04-DEC-2007 12:25:42.
    Post-processing of request 2057165 failed at 04-DEC-2007 12:27:43 with the error message:
    The Output Post-processor is running but has not picked up this request.
    No further attempts will be made to post-process this request, and the request will be marked
    with Warning status.
    Setting the profile option Concurrent: OPP Response Timeout to a higher value may be necessary.
    ------------- 2) PRINT   -------------
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 04-DEC-2007 12:27:43
    pls help
    Thanks

    Hi
    pls see this post
    OPP Timing out
    Thanks
    Rahul

  • Error while running concurrent program in Release 12.0.6

    Hi All,
    We are running many requests of a concurrent program in parallel in Oracle Applications Release 12.0.6 and many requests are erroring out with the below error message :
    X Error of failed request: BadWindow (invalid Window parameter)
    Major opcode of failed request: 15 (X_QueryTree)
    Resource id in failed request: 0x7400001
    Serial number of failed request: 532
    Current serial number in output stream: 532"
    Could someone please advise as to what could be the issue here.
    This is happening in production instance
    Thanks

    we are getting the same error in 11.5.10 oracle apps!
    Current system time is 19-MAR-2013 11:41:33
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    p_order_by='TRX_NUMBER'
    p_cust_trx_class='CM'
    p_trx_number_low='1'
    p_trx_number_high='1'
    p_project_number='2160610'
    p_report_fmt='Y'
    p_open_invoice='N'
    p_check_for_taxyn='N'
    p_choice='SEL'
    p_header_pages='1'
    p_debug_flag='N'
    p_message_level='10'
    p_pmt_advice='Y'
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.US7ASCII
    Spawned Process 5484
    X Error of failed request: BadWindow (invalid Window parameter)
    Major opcode of failed request: 15 (X_QueryTree)
    Resource id in failed request: 0xa400001
    Serial number of failed request: 518
    Current serial number in output stream: 518
    Database version: 10.2.0.4

  • Getting error while running DateDisplay program

    Please help me.
    I wrote this sample program:
         Chapter 2 Sample Program: Displays Formatted Date Information
         File: Ch2DateDisplay.java
    import javax.swing.*;
    import java.util.*; //for Date
    import java.text.*; // for SimpleDateFormat
    class Ch2DateDisplay {
         public static void main(String[] args) {
         Date today;
         SimpleDateFormat simpleDF1,
                    simpleDF2;
         today = new Date();
         simpleDF1 = new SimpleDateFormat();
         simpleDF2 = new SimpleDateFormat("EEEE MMMM dd, yyyy");
         //Default short format display
         JOptionPane.showMessageDialog(null, "Today is" + simpleDF1.format(today));
         //Programmer-designated long format display
         JOptionPane.showMessageDialog(null, "Today is" + simpleDF2.format(today));
    }I am getting this error
    E:\Java Programs>javac Ch2DateDisplay.java
    E:\Java Programs>java  Ch2DateDisplay
    Exception in thread "main" java.lang.IllegalArgumentException: Cannot format giv
    en Object as a Date
            at java.text.DateFormat.format(DateFormat.java:279)
            at java.text.Format.format(Format.java:133)
            at Ch2DateDisplay.main(Ch2DateDisplay.java:22)
    E:\Java Programs>Here is the screenshot
    http://i16.photobucket.com/albums/b50/ejaz2006/error.gif
    Please help me what should I do ??
    I m using jdk-1_5_0-windows-i586.exe
    Thanks in Advance

    Thank you so much my friend.. but I dont know why do I get this error..
    I also installed jdk-1_5_0_15-nb-6_1-windows.exe but still getting the same problem
    But I downloaded Sample files from http://drcaffeine.com/student/student.htm
    When I copied the class file from the above mentioned file its work properly.
    The problem is when I use javac command to make class file its show no error, but after running using java command its show the same error...

  • Error while trying to Insert a pdf file in database

    Hi All,
    I have sent this problem to Informix. By any chance if you had faced the same problem and found the solution, pls send mail to [email protected]
    Thanks
    Babu
    Hi there,
    I tried to insert a pdf file in to Informix database. I followed the guidelines
    given in the "InformixJDBC Driver
    Programmer's Guide". Actually my program works if i use
    PreparedStatement.setBytes method. But why
    PreparedStatement.setBinaryStream method is not working????.
    Here is the code snippet.....
    Connection conn = null;
    PreparedStatement ps = null;
    try
    File ff = new File("C:\\test.pdf");
    InputStream value = null;
    FileInputStream fileinp = new FileInputStream(ff);
    value = (InputStream) value;
    int len = (int) ff.length();
    System.out.println("len: " + len);
    conn = connect();
    String sql = "INSERT INTO dbep04m@inf10004:pg_wip_t (c_db,n_object,u_img) VALUES (\"2\",?,?)";
    if (conn != null)
    long stTime = System.currentTimeMillis();
    ps = conn.prepareStatement(sql);
    for (int ii=1;ii<=10000;ii++)
    ps.setInt(1,ii);
    ps.setBinaryStream(2,value,len);
    int rtVal = ps.executeUpdate();
    //System.out.println("return value" + rtVal);
    ps.close();
    conn.close();
    long endTime = System.currentTimeMillis();
    System.out.println("Total time taken for this run: " + (endTime-stTime)/(1000) + " seconds");
    catch (FileNotFoundException ex)
    ex.printStackTrace();
    catch (IOException ex)
    ex.printStackTrace();
    catch (SQLException ex)
    ex.printStackTrace();
    finally
    try
    if (ps != null)
    ps.close();
    if (conn != null)
    conn.close();
    catch (SQLException ex)
    ex.printStackTrace();
    I am getting the following error message.......
    java.sql.SQLException: Insufficient Blob data
    at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java)
    at com.informix.jdbc.IfxSqli.sendStreamBlob(IfxSqli.java, Compiled Code)
    at com.informix.jdbc.IfxSqli.sendBlob(IfxSqli.java, Compiled Code)
    at com.informix.jdbc.IfxSqli.sendBind(IfxSqli.java, Compiled Code)
    at com.informix.jdbc.IfxSqli.sendExecute(IfxSqli.java)
    at com.informix.jdbc.IfxSqli.sendCommand(IfxSqli.java)
    at com.informix.jdbc.IfxSqli.executeCommand(IfxSqli.java)
    at com.informix.jdbc.IfxResultSet.executeUpdate(IfxResultSet.java)
    at com.informix.jdbc.IfxStatement.executeUpdateImpl(IfxStatement.java)
    at com.informix.jdbc.IfxPreparedStatement.executeUpdate(IfxPreparedStatement.java)
    at com.aexp.eaim.iu.isp.testcase.InsertBlob.insertUsingSql(InsertBlob.java, Compiled Code)
    at com.aexp.eaim.iu.isp.testcase.InsertBlob.main(InsertBlob.java:194)
    Here is the example given in the "Informix JDBC Driver Programmer's Guide". In the line maked bold, the blob size was hard coded as 10. Then
    why you are trying to find the file length???.
    try
    stmt = conn.createStatement();
    stmt.executeUpdate("create table tab1(col1 byte)");
    catch ( SQLException e)
    System.out.println("Failed to create table ..." + e.getMessage());
    System.out.println("Trying to insert data using Prepare Statement ...");
    try
    pstmt = conn.prepareStatement("insert into tab1 values (?)");
    catch (SQLException e)
    System.out.println("Failed to Insert into tab:" + e.toString());
    File file = new File("data.dat");
    int fileLength = (int) file.length();
    InputStream value = null;
    FileInputStream fileinp = null;
    int row = 0;
    String str = null;
    int rc = 0;
    ResultSet rs = null;
    System.out.println("Inserting data ...\n");
    try
    fileinp = new FileInputStream(file);
    value = (InputStream)fileinp;
    catch (Exception e) {}
    try
    pstmt.setBinaryStream(1,value,10); //set 1st column
    catch (SQLException e)
    System.out.println("Unable to set parameter");
    set_execute();
    public static void set_execute()
    try
    pstmt.executeUpdate();
    catch (SQLException e)
    System.out.println("Failed to Insert into tab:" + e.toString());
    e.printStackTrace();
    Best Regards
    Babu

    sorry!!!. There is an error in the code
    old code :
    value = (InputStream) value ;
    should be code :
    value = (InputStream) fileinp;

  • Getting error while trying to import the eex files

    I am facing few problem while importing..
    here is the error message from log
    Processing files for US language ...
    Searching D:/sachin/Discoverer/AU_TOP/discover/US directory for files to import ...
    Number of files to process for US language : 2648
    adupdeul.sh: line 766: perl: command not found
    ERROR : adupdeul_ald2 is unable to determine character set encoding
    for D:/sachin/Discoverer/AU_TOP/discover/US/abmactaccdaseflo.eex file.
    adupdeul_ald2 is exiting with status 1
    I checked the code in adupdeul.sh
    here is the code which errored out
    firstspace=" "
    cset=`head -10 $topdir/$lang/$fname | \
    perl -e 'while(<>){' \
    -e ' if (/^<\?xml.*\sencoding=\"(.+)"/){ ' \
    -e ' print uc "$1\n";' \
    -e ' }' \
    -e '}' `
    if test "$cset" = ""; then
    echo "ERROR : $program is unable to determine character set encoding"
    echo " for $topdir/$lang/$fname file."
    exit 1
    else
    echo "$cset" >> $tmpcsetfile
    fi
    First 10 lines from D:/sachin/Discoverer/AU_TOP/discover/US/abmactaccdaseflo.eex file
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <EndUserLayerExport SourceEULId="20001214113219" SourceEULVersion="4.1.44.00.00" MinimumCodeVersion="4.1.0" ExportFileVersion="4.1.0">
    <ExternalElement>
    <APPS Header="$Header: abmactaccdaseflo.eex 115.7 2003/02/19 18:11:04 pkm ship $"> </APPS>
    </ExternalElement>
    <ExternalElement>
    <OraTranslatability>
         <XlatElement Name="BusinessArea">
              <XlatID>
                   <Key>DeveloperKey</Key>
    I think this code should work...
    Please help me :-(
    - Sachin

    Hi,
    I'm following the note 139516.1 on metalink to use Discoverer 4i with E-Business Suite 11.5.10.2.
    Everything goes well until I try to import the eex files (downloaded to my Windows XP desktop). Here is what I get:
    You are running adupdeul, version 115.11
    Start of adupdeul session
    Date/time is Fri Jul 27 10:15:16 WEST 2007
    Log file is adupdeul.log
    Command line arguments are
         "connect=apps/apps@CESEBTST"
         "resp=System Administrator"
         "gwyuid=APPLSYSPUB/PUB"
         "fndnam=APPS"
         "secgroup=standard"
         "topdir=/cygdrive/c/oracle/Disco4i/Discover/discover"
         "language=US"
         "eulprefix=EUL"
         "eultype=OLTP"
         "mode=complete"
    Processing files for US language ...
    Searching /cygdrive/c/oracle/Disco4i/Discover/discover/US directory for files to import ...
    Number of files to process for US language : 2648
    Determining the character set for the import session ...
    The following encoding schemes have been found
         ISO-8859-1
         UTF-8
    ERROR : adupdeul does not support importing files with
    multiple encodings.
    adupdeul is exiting with status 1
    End of adupdeul session
    Date/time is Fri Jul 27 10:20:20 WEST 2007
    Could someone explain me this multiple encodings error and tell me how to avoid it?
    Thanks in advance!

  • Error while trying to open exported PDF file from Datagridview??

    Hi everyone ,
       I want to export datagridview to PDF file,After generating the pdf I'm not able to open that file..when i try to open it shows file corrupted error message and also not getting "Pdf Generation successfully " Message.
    Here is my code :
    private void btnExportPdf_Click(string heading, string filename)
                try
                    SaveFileDialog saveFileDialog = new SaveFileDialog();
                    saveFileDialog.Filter = "All Files | *.*  ";
                    if (saveFileDialog.ShowDialog() == DialogResult.OK)
                        string path = saveFileDialog.FileName;
                        Document pdfdoc = new Document(PageSize.A4); // Setting the page size for the PDF
                        PdfWriter writer = PdfWriter.GetInstance(pdfdoc, new FileStream(path + ".pdf", FileMode.Create)); //Using the PDF Writer class to generate the PDF
                        writer.PageEvent = new PDFFooter();
                        // Opening the PDF to write the data from the textbox
                        PdfPTable table = new PdfPTable(dataGridView1.Columns.Count);
                        //table.TotalWidth = GridView.Width;
                        float[] widths = new float[] 
                            dataGridView1.Columns[0].Width, dataGridView1.Columns[1].Width, dataGridView1.Columns[2].Width 
                        table.SetWidths(widths);
                        table.HorizontalAlignment = 1; // 0 - left, 1 - center, 2 - right;
                        table.SpacingBefore = 2.0F;
                        PdfPCell cell = null;
                        pdfdoc.Open();
                        //doc.Open();
                        //   Phrase p = new Phrase(new Chunk(heading, titleFont));
                        // doc.Add(p);
                        foreach (DataGridViewColumn c in dataGridView1.Columns)
                            cell = new PdfPCell(new Phrase(new Chunk(c.HeaderText)));
                            cell.HorizontalAlignment = PdfPCell.ALIGN_CENTER;
                            cell.VerticalAlignment = PdfPCell.ALIGN_CENTER;
                            table.AddCell(cell);
                        if (dataGridView1.Rows.Count > 0)
                            for (int i = 0; i < dataGridView1.Rows.Count; i++)
                                PdfPCell[] objcell = new PdfPCell[dataGridView1.Columns.Count];
                                for (int j = 0; j < dataGridView1.Columns.Count - 1; j++)
                                    cell = new PdfPCell(new Phrase(dataGridView1.Rows[i].Cells[j].Value.ToString()));
                                    cell.HorizontalAlignment = PdfPCell.ALIGN_CENTER;
                                    cell.VerticalAlignment = PdfPCell.ALIGN_CENTER;
                                    table.AddCell(cell);
                                    //lstCells.Add(cell);
                                    objcell[j] = cell;
                                PdfPRow newrow = new PdfPRow(objcell);
                                table.Rows.Add(newrow);
                        pdfdoc.Add(table);
                        MessageBox.Show("Pdf Generation Successfully.");
                        pdfdoc.Close();
                catch (Exception ex)
                    MessageBox.Show("Error in pdf Generation.");
    Thanks & Regards RAJENDRAN M

    Your question sounds like it is related to PdfWriter as that is how you're saving the file.  These forums are for MS products.  Please post questions related to third-party products in their forums.

  • In which folder oracle print quote concurrent program save pdf files

    Hi,
    IN oracle print quote functionality, where is the path of the directory where are files are saved.I have checked with so many documents but not found the solution
    I have checked the aso profile option for setting directory path also but the profile option is not available in our EBS

    plz re-check $APPLCSF/$APPLOUT
    what is
    cd $APPLCSF/$APPLOUT
    pwdis it blank for you?
    did you set env before check $APPLCSF/$APPLOUT ?
    also check $APPLPTMP
    concurrent request output $APPLCSF/$APPLOUT and log $APPLCSF/$APPLLOG
    How To Change The Log And Output Location For Concurrent Managers? [ID 872766.1]
    Concurrent Processing - Concurrent Manager Generic Platform Questions and Answers [ID 105133.1]
    On A Multi-node / RAC Installation Is $APPLCSF And $APPLPTMP An NFS Mount Point [ID 371896.1]
    Concurrent Processing - Concurrent Requests Fail with FDPSTP failed due to ORA-20100: File o0002712.tmp creation for FND_FILE [ID 148262.1]
    Reports Cache Directory in Oracle E-Business R12 is Growing Rapidly [ID 859255.1]
    Knowledge Management: How To Find Output File For Knowledge Management Solution Export Program [ID 292922.1]

  • Getting error while converting an iview output into pdf format

    hi all,
    i am new to visual composer and portal.
    i have created an iview to display a list. i can see the list  but on clicking a button 'copy to pdf' ,i am getting an error message
    Portal Runtime Error
    An exception occurred while processing your request
    Exception id: 04:33_19/09/08_0002_2720650
    See the details for the exception ID in the log file.
    where can i see this log file?? and what will be the reason for this error? and the way to solve this???
    thanks in advance...

    i have created a simple rfc to get the detail list of the company codes in r3.
    in visual composer , i have created an iview using this rfc to display the list.
    i have one button called copy to pdf to convert this list into pdf format.
    i have used formula for this button is
    "pcd!3aportal_content!2fcom.sap.pct!2fplatform-add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bexwebanalyzer?QUERY="& STORE@REPTNAME & "&BI_COMMAND_1-EXPORT_FORMAT=PDF&BI_COMMAND_1-SHOW_EXPORT_DIALOG=X&BI_COMMAND_1-null="
    when i am executing the iview , i am able to see the output of the iview which is a company code list.
    but when i am pressing the button to convert to pdf, i am getting the error.
    Portal Runtime Error
    An exception occurred while processing your request
    Exception id: 04:33_19/09/08_0002_2720650
    See the details for the exception ID in the log file.
    so please help me out..

  • I am getting error while attaching Menu Module to FORM

    Hi to everyone, I have created a Menu Module(mmx file), now i am trying to attach that menu to a FORM, I have entered the proper Menu Module address in the property window of that FORM, but i am continously facing the following problem.
    FRM-40738: Argument 1 to builtin CALL_FORM cannot be null
    Also i have applied following code in that Menu Module
    call_form('F:\Database Files\Contingent Database\Forms & Reports\Forms\BILL DETAIL.fmx');
    but the required FORM is not running.
    Please help me to sove out this problem

    I did this today, in this way,
    I create the menu then CRT-SHIFT K, then CRT -T
    then check you have the mmx
    - now you put full path to the form
    Menu module like c:\aaa\bb\menuname
    I did not put extension
    Hope this will work.

  • Need to view concurrent request output(pdf file of XML report)from OAFpage

    Hi,
    I am submitting a concurrent request from OA page (on click of submit button).
    As of now, to view output of the request user has to open SRS form.
    Now the rquirement is to submit the request as well as to open the output file of the request in one action(i.e. on click of submitbutton) instead of going to SRS form to view output.
    From the forum, I found out the way to go to request monitoring page and view all the current requests. But this is something different from what I am looking for.
    Can somebody help m in this case?
    Thanks & Regards
    Nitin

    refer this link
    http://apps2fusion.com/at/ps/286-bi-publisher-document-viewer-common-region-embeded-report-output-in-oa-framework-page
    --prasanna                                                                                                                                                                                                                                                                                                                   

  • Receiving error  message while trying to insert a pdf file into a Word document

    Error while trying to insert a pdf file as object into a word documnet , error: "The program used to create this object is AcroExch. That program is either not installed on your computer or it is not responding.

    Try disabling Protected Mode in Adobe Reader [Edit | Preferences | Security (Enhanced)].

Maybe you are looking for

  • Error in using a variable

    Hi All, I have got 2 packages, A & B. Package A includes package B and some variables. My question out here is that i am using assigning some values to variables in the package B, i want those values to be reflected and be usable in the package A. Ca

  • Vendor shipment receipts and tracking

    Hello Sir, we have orders procured directly from a vendor through a solicitation process. An approved order placed within the system triggers a purchase requisition. This purchase requisition is placed in a solicitation, and a purchase order is sent

  • Installation with two users

    I've installed Lightroom under one user account on the only desktop computer in my house, but when I try to use it in the other user account, I get a "Runtime Error" message. Both accounts have administrator privileges. Anyone have any ideas?

  • FBU8 REVERSAL error

    Hi all, We have two co.codes 1000,2000. We want to reverse a particular document(eg .Doc no : 123 in cc 1000, 456 in cc 2000 and cross cc doc no :0000147),while we are trying to do the same via FBU8 and save the document,sytem is prompting an error a

  • Can' trash appl in use

    I am trying to remove an old application "Dropbox" which is not working so I can install a newer version. When I try to trash it, I am told that it is in use.  Even after I restart the computer I am still told it is in use. What does this mean? I wan