Auto Invoice Master Program

Hi All,
I have problem in exceuting the Auto Invoice Master Program, which is taking long time to complete. Can any help me why is this taking too much time.
we are using 12.0.6
thnxs

Hello.
To trace the program, login as System Administrator, navigate to Concurrent/Programs/Define and query the program name. Check the Enable Trace checkbox.
The trace file will be placed on the $ORACLE_HOME directory/admin/udump. Run the tkprof on the trc file and see which code is taking too long.
Octavio

Similar Messages

  • Auto Invoice Import Program is not grouping by Transaction Type

    Hi All,
    The Auto Invoice Master program which inturn spwans Auto invoice Import program is not grouping by Transaction type. It is printing for each transaction individually.
    What could be the reason for this to happen?
    Please let me know.
    Thanks,
    Prathima

    Dear,
    You must define "Auto-Invoice Grouping Rules". Define Group by column of the interface table where u are moving transaction type.
    Hope it will helps u
    Regards

  • Auto-Invoice Concurrent program running very slow

    Hi,
    EBS 11i
    Help please.......
    Our 2 users are running Auto-Invoice Concurrent programs and it made our 4-cpu (quad core) server spike to all 100%
    We have just bounced back the Oracle Apps but still it getting very slow. Is there a way to tune the auto-invoice program?
    This problem did not happen before only lately :(. Is it because our data is growing bigger?
    Thanks a lot
    Ms Inday

    Thanks hussein/helios .....I am panicking now :(
    I want to cancell all the queued Autoinvoice Master Program that are submitted so I can trace if they are the ones causing the problem. The Autoinvoice Master Program is calling a child program Autoinvoice Import Program. I also cancelled these child programs. but now I can not cancel the Master Program. Its "Phase" is Running but its status is "Paused". When I cancel it I got error >
    Request 2259845 can no longer be cancelled. The Concurrent Manager process
    that was running this request has exited abnormally. The ICM will mark this request as complered with error.How can I delete this RUNNING-PAUSED Autoinvice Master Program?
    How do I clean up these aborted processes?
    Thanks a lot

  • Error in AR - Auto Invoice Import Program

    Hi,
    Please help me out for AR - Auto Invoice Import Program.
    When i am running Auto Invoice Import Program in UAT instance then its getting completed but with error and error is not reflecting in RA_INTERFACE_ERRORS_ALL table.
    Initially when i ran Interface Program in CRP instance then the program was successfull, but in UAT instance it is giving error,
    The Log is as follows, Its a big log but to get an idea please find the few starting lines of the same.
    Regards,
    Sitesh
    org parameter (raamai) = ~91~
    raassc()+ Current system time is 02-APR-2012 01:42:57
    org parameter (raassc) character = ~91~
    org parameter (raassc) numeric = ~91~
    raassc()- Current system time is 02-APR-2012 01:42:57
    raagsp()+ Current system time is 02-APR-2012 01:42:57
    raagsp()- Current system time is 02-APR-2012 01:42:57
    raaini()+ Current system time is 02-APR-2012 01:42:57
    raaapx()+ Current system time is 02-APR-2012 01:42:57
    raaapx()- Current system time is 02-APR-2012 01:42:57
    raagbo()+ Current system time is 02-APR-2012 01:42:57
    Dumping data fetched from RA_BATCH_SOURCES
    batch_source_id = 1141
    batch_source_name = Export Entry
    auto_trx_numbering_flag = N
    copy_doc_number_flag = N
    cust_trx_type_rule = I
    sold_customer_rule = R
    bill_customer_rule = R
    bill_address_rule = R
    bill_contact_rule = N
    ship_customer_rule = R
    ship_address_rule = R
    ship_contact_rule = N
    memo_reason_rule = R
    term_rule = I
    invoicing_rule_rule = R
    accounting_rule_rule = R
    unit_of_measure_rule = R
    agreement_rule = R
    inventory_item_rule = R
    fob_point_rule = S
    ship_via_rule = S
    invalid_lines_rule = R
    salesperson_rule = I
    sales_credit_type_rule = I
    accounting_flexfield_rule = R
    invalid_tax_rate_rule = R
    rev_acc_allocation_rule = P
    gl_date_period_rule = R
    create_clearing_flag = N
    derive_date_flag = Y
    sales_credit_rule = P
    sales_territory_rule = R
    receipt_method_rule = R
    customer_bank_account_rule = R
    related_document_rule = R
    memo_line_rule = R
    allow_sales_credit_flag = Y
    receipt_handling_option = N
    allow_duplicate_trx_num_flag = N
    raagbo()- Current system time is 02-APR-2012 01:42:57
    raaggi()+ Current system time is 02-APR-2012 01:42:57
    raagixpfx = 0
    raagixtpf = 0
    raagixddf = 1
    raagixacf = 0
    raagixagd = 0
    raagixatn = 0
    raagixadn = 0
    raagixcte = 0
    raagixdfd =
    raagixctc = 1683960112
    raagixrmx = T
    raagixfdx = 02-APR-12
    raagixbix =
    raagixbsi = 1141
    raagixbnx = Export Entry
    raagixoix = 91
    raagixrix = 3584119
    raagixpix = 20428
    raagixpai = 222
    raagixuix = 1458
    raagixunx = EMS
    raagixanx = AR
    raagixlul = 2968171
    raagixasc = 1
    raagixrho = N
    raagixrsf = 0
    raagixcbf = 0
    raagixuax = 1
    raagixsnf = 0
    raagixtao = 1
    raagixptf = 1
    raagixstf = 0
    raagixrfi = 0
    raagixtac = 0
    raagixcai = 50388
    raagixsbi = 2022
    raagixcpr = 2
    raagixmau =
    raagixmlx = 3
    raagixmbx = 99999999
    raagixafp = Account
    raagixifp = Item
    raagixtfp = Sub-branch
    Argbdf = 1
    Argddo = -9999
    raaggi()- Current system time is 02-APR-2012 01:42:57
    raaseb()+ Current system time is 02-APR-2012 01:42:57
    raaseb()- Current system time is 02-APR-2012 01:42:57
    arcdsu()+ Current system time is 02-APR-2012 01:42:57
    arcdsu() error level: 3 array size: 99999999 insert array size: 99999999
    arcdsu() Use Invoice Accounting For Credit Memo: Y
    arcdsu()- Current system time is 02-APR-2012 01:42:57
    raaini()- Current system time is 02-APR-2012 01:42:57
    raapft()+ Current system time is 02-APR-2012 01:42:57
    raagtr()+ Current system time is 02-APR-2012 01:42:57
    crb->raaucrpn = RAXTRX
    crb->raaucrcr = 3584119
    crb->raaucrnt = 0
    crb->raaucrml = 3
    raagtr()- Current system time is 02-APR-2012 01:42:57
    raamil()+ Current system time is 02-APR-2012 01:42:57
    raaasf()+ Current system time is 02-APR-2012 01:42:57
    raaasf()- Current system time is 02-APR-2012 01:42:57
    raaasf()+ Current system time is 02-APR-2012 01:42:57
    raaasf()- Current system time is 02-APR-2012 01:42:57
    raaasf()+ Current system time is 02-APR-2012 01:42:57
    raaasf()- Current system time is 02-APR-2012 01:42:57
    raaasf()+ Current system time is 02-APR-2012 01:42:57
    raaasf()- Current system time is 02-APR-2012 01:42:57
    raaasf()+ Current system time is 02-APR-2012 01:42:57
    raaasf()- Current system time is 02-APR-2012 01:42:57
    raaasf()+ Current system time is 02-APR-2012 01:42:57
    raaasf()- Current system time is 02-APR-2012 01:42:57
    raacrf()+ Current system time is 02-APR-2012 01:42:57
    raacrf()- Current system time is 02-APR-2012 01:42:57
    raacrf()+ Current system time is 02-APR-2012 01:42:57
    raacrf()- Current system time is 02-APR-2012 01:42:57
    raacrf()+ Current system time is 02-APR-2012 01:42:57
    raacrf()- Current system time is 02-APR-2012 01:42:57
    raacrf()+ Current system time is 02-APR-2012 01:42:57
    raacrf()- Current system time is 02-APR-2012 01:42:57
    raacrf()+ Current system time is 02-APR-2012 01:42:57
    raacrf()- Current system time is 02-APR-2012 01:42:57
    raaasf()+ Current system time is 02-APR-2012 01:42:57
    raaasf()- Current system time is 02-APR-2012 01:42:57
    raacrf()+ Current system time is 02-APR-2012 01:42:57
    raacrf()- Current system time is 02-APR-2012 01:42:57
    raacrf()+ Current system time is 02-APR-2012 01:42:57
    raacrf()- Current system time is 02-APR-2012 01:42:57
    raacrf()+ Current system time is 02-APR-2012 01:42:57
    raacrf()- Current system time is 02-APR-2012 01:42:57
    raacrf()+ Current system time is 02-APR-2012 01:42:57
    raacrf()- Current system time is 02-APR-2012 01:42:57
    raaasf()+ Current system time is 02-APR-2012 01:42:57
    raaasf()- Current system time is 02-APR-2012 01:42:57
    raaasf()+ Current system time is 02-APR-2012 01:42:57
    raaasf()- Current system time is 02-APR-2012 01:42:57
    raaasf()+ Current system time is 02-APR-2012 01:42:57
    raaasf()- Current system time is 02-APR-2012 01:42:57
    raaasf()+ Current system time is 02-APR-2012 01:42:57
    raaasf()- Current system time is 02-APR-2012 01:42:57
    raaasf()+ Current system time is 02-APR-2012 01:42:57
    raaasf()- Current system time is 02-APR-2012 01:42:57
    raaasf()+ Current system time is 02-APR-2012 01:42:57
    raaasf()- Current system time is 02-APR-2012 01:42:57
    raaasf()+ Current system time is 02-APR-2012 01:42:57
    raaasf()- Current system time is 02-APR-2012 01:42:57
    raaasf()+ Current system time is 02-APR-2012 01:42:57
    raaasf()- Current system time is 02-APR-2012 01:42:57
    raaasf()+ Current system time is 02-APR-2012 01:42:57
    raaasf()- Current system time is 02-APR-2012 01:42:57
    raaasf()+ Current system time is 02-APR-2012 01:42:57
    raaasf()- Current system time is 02-APR-2012 01:42:57
    raaasf()+ Current system time is 02-APR-2012 01:42:57
    raaasf()- Current system time is 02-APR-2012 01:42:57
    raaasf()+ Current system time is 02-APR-2012 01:42:57
    raaasf()- Current system time is 02-APR-2012 01:42:57
    raaasf()+ Current system time is 02-APR-2012 01:42:57
    raaasf()- Current system time is 02-APR-2012 01:42:57
    raaasf()+ Current system time is 02-APR-2012 01:42:57
    raaasf()- Current system time is 02-APR-2012 01:42:57
    raaasf()+ Current system time is 02-APR-2012 01:42:57
    raaasf()- Current system time is 02-APR-2012 01:42:57
    UPDATE RA_INTERFACE_LINES
    SET REQUEST_ID = :b1,
    LAST_UPDATE_DATE = sysdate,
    LAST_UPDATED_BY = :b2,
    LAST_UPDATE_LOGIN = :b3,
    SET_OF_BOOKS_ID = NVL(SET_OF_BOOKS_ID, :b4),
    ORG_ID = NVL(ORG_ID, :b5),
    TRX_DATE = TRUNC(TRX_DATE),
    GL_DATE = TRUNC(GL_DATE),
    ORIGINAL_GL_DATE = TRUNC(GL_DATE),
    CONVERSION_DATE = TRUNC(CONVERSION_DATE),
    PURCHASE_ORDER_DATE = TRUNC(PURCHASE_ORDER_DATE),
    RULE_START_DATE = TRUNC(RULE_START_DATE),
    RULE_END_DATE = TRUNC(RULE_END_DATE),
    SALES_ORDER_DATE = TRUNC(SALES_ORDER_DATE),
    SHIP_DATE_ACTUAL = TRUNC(SHIP_DATE_ACTUAL),
    CUSTOMER_TRX_ID = NULL,
    INTERFACE_LINE_ID = NVL(INTERFACE_LINE_ID, RA_CUSTOMER_TRX_LINES_S.NEXTVAL)
    WHERE NVL(INTERFACE_STATUS, '~') != 'P'
    AND (REQUEST_ID IS NULL OR REQUEST_ID IN (3584119))
    AND BATCH_SOURCE_NAME = 'Export Entry'
    AND TRX_NUMBER = 'E512000002' AND LINK_TO_LINE_ATTRIBUTE1 IS NULL
    AND LINK_TO_LINE_ATTRIBUTE2 IS NULL
    AND LINK_TO_LINE_ATTRIBUTE3 IS NULL
    AND LINK_TO_LINE_ATTRIBUTE4 IS NULL
    AND LINK_TO_LINE_ATTRIBUTE5 IS NULL
    AND LINK_TO_LINE_ATTRIBUTE6 IS NULL
    AND LINK_TO_LINE_ATTRIBUTE7 IS NULL
    AND LINK_TO_LINE_ATTRIBUTE8 IS NULL
    AND LINK_TO_LINE_ATTRIBUTE9 IS NULL
    AND LINK_TO_LINE_ATTRIBUTE10 IS NULL
    AND LINK_TO_LINE_ATTRIBUTE11 IS NULL
    AND LINK_TO_LINE_ATTRIBUTE12 IS NULL
    AND LINK_TO_LINE_ATTRIBUTE13 IS NULL
    AND LINK_TO_LINE_ATTRIBUTE14 IS NULL
    AND LINK_TO_LINE_ATTRIBUTE15 IS NULL

    Hi Pk,
    in log file i found the below:
    arcdsu() error level: 3 array size: 99999999 insert array size: 99999999
    and
    raaafs()+ Current system time is 02-APR-2012 01-42-57
    Failed to allocate memory for memptr
    Error calling raaafs()
    Error calling raaffc()
    Error calling raaaui()
    is it related to memory size????????
    let me know
    Regards,
    SItesh

  • Auto Invoice Import Program not processing records

    Hi,
    I wrote a procedure at back end to submit the auto invoice import program. I find concurrent program being submitted but none of the records are processed.
    Please find the code given below for reference.
    APPS Version : 11.5.10.2
    fnd_global.apps_initialize(2709,50325,222);
    l_request:= FND_REQUEST.SUBMIT_REQUEST
    (application => 'AR',
    program => 'RAXTRX',
    description => 'Auto',
    start_time => NULL,-- To start immediately
    sub_request => FALSE,
    argument1 => 'MAIN',
    argument2 => 'T',
    argument3 => '24',--batch_source_id
    argument4 => 'AR Batch Source', --batch_source_name
    argument5 => to_char(SYSDATE,'YYYY/MM/DD HH:MM:SS'), -- should be in format -- RR-MON-DD
    argument6 => '',
    argument7 => '',
    argument8 => '',
    argument9 => '',
    argument10 => '',
    argument11 => '',
    argument12 => '',
    argument13 => '',
    argument14 => '',
    argument15 => '',
    argument16 => '',
    argument17 => '',
    argument18 => '',
    argument19 => '',
    argument20 => '',
    argument21 => '',
    argument22 => '',
    argument23 => '',
    argument24 => '',
    argument25 => '',
    argument26 => 'Y',
    argument27 => 'Y',
    argument28 => '',
    argument29 => 155, -- org_id
    argument30 => chr(0) -- end with chr(0)as end of parameters
    COMMIT;
    - - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - - - - - - - - - - - - -- - - - - - - - - - - - - - - - - - - - - - -

    Pl post the log of the concurrent request. Pl see if MOS Doc 1089172.1 (Troubleshooting Autoinvoice Import - Execution Report Errors (Request Status = Completed)) can help
    HTH
    Srini

  • In R12 standard Auto Invoice Import program is erroring out

    Hi All,
    The standard Auto Invoice Import concurrent porgram is erroring out when i run for the source as 'SUM_DIF', in the log messages its showing the following error:
    UPDATE RA_INTERFACE_LINES L1
    SET REQUEST_ID = :b1,
    LAST_UPDATE_DATE = sysdate,
    LAST_UPDATED_BY = :b2,
    LAST_UPDATE_LOGIN = :b3,
    CUSTOMER_TRX_ID = NULL,
    INTERFACE_LINE_ID = NVL(INTERFACE_LINE_ID,
    RA_CUSTOMER_TRX_LINES_S.NEXTVAL),
    SET_OF_BOOKS_ID = NVL(SET_OF_BOOKS_ID, :b4),
    LINK_TO_LINE_ID =
    SELECT INTERFACE_LINE_ID
    FROM RA_INTERFACE_LINES L2
    WHERE L2.REQUEST_ID = :b5
    AND L2.INTERFACE_LINE_CONTEXT = 'SUM_DIF'
    AND L1.LINK_TO_LINE_CONTEXT = L2.INTERFACE_LINE_CONTEXT
    AND L1.LINK_TO_LINE_ATTRIBUTE13 = L2.INTERFACE_LINE_ATTRIBUTE13
    AND L1.LINK_TO_LINE_ATTRIBUTE14 = L2.INTERFACE_LINE_ATTRIBUTE14
    AND L1.LINK_TO_LINE_ATTRIBUTE15 = L2.INTERFACE_LINE_ATTRIBUTE15
    AND L1.LINK_TO_LINE_ATTRIBUTE1 = L2.INTERFACE_LINE_ATTRIBUTE1
    WHERE NVL(INTERFACE_STATUS, '~') != 'P'
    AND (REQUEST_ID IS NULL OR REQUEST_ID IN (:b6)
    AND EXISTS
    SELECT 'x'
    FROM RA_INTERFACE_LINES L2
    WHERE L2.REQUEST_ID = :b7
    AND L2.INTERFACE_LINE_CONTEXT = 'SUM_DIF'
    AND L1.LINK_TO_LINE_CONTEXT = L2.INTERFACE_LINE_CONTEXT
    AND L1.LINK_TO_LINE_ATTRIBUTE13 = L2.INTERFACE_LINE_ATTRIBUTE13
    AND L1.LINK_TO_LINE_ATTRIBUTE14 = L2.INTERFACE_LINE_ATTRIBUTE14
    AND L1.LINK_TO_LINE_ATTRIBUTE15 = L2.INTERFACE_LINE_ATTRIBUTE15
    AND L1.LINK_TO_LINE_ATTRIBUTE1 = L2.INTERFACE_LINE_ATTRIBUTE1
    len = 1289
    Current system time is 18-SEP-2008 21:35:19
    APP-AR-11526: ORA-01427: single-row subquery returns more than one row
    UPDATE RA_INTERFACE_LINES L1
    SET REQUEST_ID = :b1,
    LAST_UPDATE_DATE = !
    APP-AR-11526: 5069629/ar/src/autoinv/raamil.lpc 1342
    UPDATE RA_INTERFACE_LINES L1
    SET REQUEST_ID = :b1,
    LAST_UPDATE_DATE = sysdate,
    LAST_UPDATED_BY = :b2,
    LAST_UPDATE_LOGIN = :b3,
    CUSTOMER_TRX_ID = NULL,
    INTERFACE_LINE_ID = NVL(INTERFACE_LINE_ID,
    RA_CUSTOMER_TRX_LINES_S.NEXTVAL),
    SET_OF_BOOKS_ID = NVL(SET_OF_BOOKS_ID, :b4),
    LINK_TO_LINE_ID =
    SELECT INTERFACE_LINE_ID
    FROM RA_INTERFACE_LINES L2
    WHERE L2.REQUEST_ID = :b5
    AND L2.INTERFACE_LINE_CONTEXT = 'SUM_DIF'
    AND L1.LINK_TO_LINE_CONTEXT = L2.INTERFACE_LINE_CONTEXT
    AND L1.LINK_TO_LINE_ATTRIBUTE13 = L2.INTERFACE_LINE_ATTRIBUTE13
    AND L1.LINK_TO_LINE_ATTRIBUTE14 = L2.INTERFACE_LINE_ATTRIBUTE14
    AND L1.LINK_TO_LINE_ATTRIBUTE15 = L2.INTERFACE_LINE_ATTRIBUTE15
    AND L1.LINK_TO_LINE_ATTRIBUTE1 = L2.INTERFACE_LINE_ATTRIBUTE1
    WHERE NVL(INTERFACE_STATUS, '~') != 'P'
    AND (REQUEST_ID IS NULL OR REQUEST_ID IN (:b6)
    AND EXISTS
    SELECT 'x'
    FROM RA_INTERFACE_LINES L2
    WHERE L2.REQUEST_ID = :b7
    AND L2.INTERFACE_LINE_CONTEXT = 'SUM_DIF'
    AND L1.LINK_TO_LINE_CONTEXT = L2.INTERFACE_LINE_CONTEXT
    AND L1.LINK_TO_LINE_ATTRIBUTE13 = L2.INTERFACE_LINE_ATTRIBUTE13
    AND L1.LINK_TO_LINE_ATTRIBUTE14 = L2.INTERFACE_LINE_ATTRIBUTE14
    AND L1.LINK_TO_LINE_ATTRIBUTE15 = L2.INTERFACE_LINE_ATTRIBUTE15
    AND L1.LINK_TO_LINE_ATTRIBUTE1 = L2.INTERFACE_LINE_ATTRIBUTE1
    Error calling raamil()
    Error calling raapft()
    Thanks,
    Ramakrishna.
    Edited by: user605279 on Sep 18, 2008 11:59 PM

    Ramakrishna
    Looks like this is for the tax line (based on the fact that it is trying to update the link_to_line_id). The issue seems to be from the duplicate interface_line_attributes for the two different lines.This leads to this query returning more than one row for the tax line when it is trying to update.
    For two different lines, make one of your interface_line_attributes (in this query I see 1, 13, 14, 15) unique.
    Thanks
    Nagamohan

  • AR Credit Memo's not picked by Auto Invoice

    Hi gurus,
    I am facing an issue in loading the CM's through Auto Invoice. when we submit the Auto Invoice Master Program, it is populating the Interface_line_id, but it's not populating request_id, so eventually the Auto Invoice Import program is not picking those records with request_id as null.
    Please advice me, how to process the CM's.
    Thanks
    Srinivas

    Hi Ivruksh,
    Thanks for the reply, the reference you gave was not actually related to the issue I had, let me put it this way,
    Our Auto Invoice Job is scheduled at midnight, it runs and process only few CM's, rest of them are left behind with out any error message in error tables. Al I can see in the ra_interface_lines_all table is interface_line_id is populated, which shows that the Auto Invoice program has picked all the records but it is processing only few, the rest are left out with out any error message.
    Interestingly, when I tried to run those stuck CM's Individual one by one its gets successfully processed.
    Is anyone faced with similar kind of issue, kindly let me know of any solutions you guys had.
    Thanks in advance.
    Regards
    Srinivas

  • TAX code error in ar Auto Invoice Import

    Hi All,
    I am getting error in Auto Invoice Import program
    Unable to find a default tax code for this transaction.
    ==========================================
    BT Taiwan AutoInvoice Execution Report Date: 22-JUL-2009 12:33
    Page: 1 of 4
    Request Id: 936978
    Batch Source: HANSENS
    Transaction Flexfield:
    Transaction Type:
    Bill To Customer Number: to
    Bill To Customer Name: to
    GL Date: to
    Ship Date: to
    Transaction Number: to
    Sales Order Number: to
    Transaction Date: to
    Ship To Cust Number: to
    Ship To Cust Name: to
    Interface Lines:
    Selected: 2
    Successfully Processed: 0
    Rejected: 2
    Interface Salesreps:
    Selected: 0
    Successfully Processed: 0
    Rejected: 0
    Interface Distributions:
    Selected: 0
    Successfully Processed: 0
    Rejected: 0
    Transactions Created:
    BT Taiwan AutoInvoice Execution Report Date: 22-JUL-2009 12:33
    Page: 2 of 4
    Request Id: 936978
    Grand Totals:
    Number of Number of Number of Number of
    Class Transactions Lines Sales Credits Distributions Invoice Amount
    0.00
    BT Taiwan AutoInvoice Execution Report Date: 22-JUL-2009 12:33
    Page: 3 of 4
    Request Id: 936978
    BT Taiwan AutoInvoice Execution Report Date: 22-JUL-2009 12:33
    Page: 4 of 4
    Request Id: 936978
    Summary of Receipts Processed :
    Taiwan AutoInvoice Validation Report Date: 22-JUL-2009 12:33
    Page: 1 of 3
    Auto Invoice Request Id 936978
    Batch Source: HANSENS
    Transaction Flexfield: HANSENS: BT5830000575.1
    Type Bill to Customer Name Item Description Currency Amount
    Invoice Merrill xx Pierce, xxr & Smith Inc Audio TWD 167.00
    Errors: 1) Unable to find a default tax code for this transaction.
    Transaction Flexfield: HANSENS: BT5830000575.2
    Type Bill to Customer Name Item Description Currency Amount
    Invoice Merrill xx Pierce, xx & Smith Inc VAT TWD 8.00
    Errors: 1) Unable to find a default tax code for this transaction.
    Summary of Transactions Rejected:
    Currency Number of Number of Number of
    Code Lines Sales Credits Distributions Invoice Currency Amount
    TWD 2 0 0 175.00
    Summary of Transactions with Errors:
    Currency Number of Number of Number of
    Code Lines Sales Credits Distributions Invoice Currency Amount
    TWD 2 0 0 175.00
    BT Taiwan AutoInvoice Validation Report Date: 22-JUL-2009 12:33
    Page: 2 of 3
    Auto Invoice Request Id 936978
    Batch Source: HANSENS
    BT Taiwan AutoInvoice Exception Report Date: 22-JUL-2009 12:33
    Page: 3 of 3
    Auto Invoice Request Id 936978
    Batch Source: HANSENS
    ==========================================
    I have checked in Memo Lines all exists.
    Please suggest.
    Thanks in advance,
    Ajit
    Edited by: Ajit Raut on Jul 21, 2009 7:39 PM

    Hi Ajit
    Please Check if TAX is enabled in Transaction Type.
    regards
    raghu

  • Sales order line with status calcelled picked by auto invoice program

    I cancelled  one line in Sales Order and Shipped remaining lines
    after Ship Confirm process ,I ran workflow background process.
    I am getting cancelled line information to AR interface tables
    when I run Auto invoice amount is sitting in Unearned account
    The status of cancelled line -  Cancelled
    Flow status code is cancelled
    INVOICE_INTERFACE_STATUS_CODE I AM SEEING is YES for that line.
    Why the cancelled Sales order line is picked by auto invoice program?
    Thanks,
    John

    Hi Ivruksh,
    Thanks for the reply, the reference you gave was not actually related to the issue I had, let me put it this way,
    Our Auto Invoice Job is scheduled at midnight, it runs and process only few CM's, rest of them are left behind with out any error message in error tables. Al I can see in the ra_interface_lines_all table is interface_line_id is populated, which shows that the Auto Invoice program has picked all the records but it is processing only few, the rest are left out with out any error message.
    Interestingly, when I tried to run those stuck CM's Individual one by one its gets successfully processed.
    Is anyone faced with similar kind of issue, kindly let me know of any solutions you guys had.
    Thanks in advance.
    Regards
    Srinivas

  • Auto Invoice Program taking too much time : problem with update sql

    Hi ,
    Oracle db version 11.2.0.3
    Oracle EBS version : 12.1.3
    Though we have a SEV-1 SR with oracle we have not been able to find much success.
    We have an auto invoice program which runs many times in the day and its taking too much time since the begining . On troubleshooting we have found one query to be taking too much of the time and seek suggestion on how to tune it.  I am attaching the explain plan for the for same.  Its an update query. Please guide.
    Plan
    UPDATE STATEMENT  ALL_ROWSCost: 0  Bytes: 124  Cardinality: 1 
      50 UPDATE AR.RA_CUST_TRX_LINE_GL_DIST_ALL
      27 FILTER 
      26 HASH JOIN  Cost: 8,937,633  Bytes: 4,261,258,760  Cardinality: 34,364,990 
      24 VIEW VIEW SYS.VW_NSO_1 Cost: 8,618,413  Bytes: 446,744,870  Cardinality: 34,364,990 
      23 SORT UNIQUE  Cost: 8,618,413  Bytes: 4,042,339,978  Cardinality: 34,364,990 
      22 UNION-ALL 
      9 FILTER 
      8 SORT GROUP BY  Cost: 5,643,052  Bytes: 3,164,892,625  Cardinality: 25,319,141 
      7 HASH JOIN  Cost: 1,640,602  Bytes: 32,460,436,875  Cardinality: 259,683,495 
      1 TABLE ACCESS FULL TABLE AR.RA_CUST_TRX_LINE_GL_DIST_ALL Cost: 154,993  Bytes: 402,499,500  Cardinality: 20,124,975 
      6 HASH JOIN  Cost: 853,567  Bytes: 22,544,143,440  Cardinality: 214,706,128 
      4 HASH JOIN  Cost: 536,708  Bytes: 2,357,000,550  Cardinality: 29,835,450 
      2 TABLE ACCESS FULL TABLE AR.RA_CUST_TRX_LINE_GL_DIST_ALL Cost: 153,008  Bytes: 1,163,582,550  Cardinality: 29,835,450 
      3 TABLE ACCESS FULL TABLE AR.RA_CUSTOMER_TRX_LINES_ALL Cost: 307,314  Bytes: 1,193,526,000  Cardinality: 29,838,150 
      5 TABLE ACCESS FULL TABLE AR.RA_CUSTOMER_TRX_ALL Cost: 132,951  Bytes: 3,123,197,116  Cardinality: 120,122,966 
      21 FILTER 
      20 SORT GROUP BY  Cost: 2,975,360  Bytes: 877,447,353  Cardinality: 9,045,849 
      19 HASH JOIN  Cost: 998,323  Bytes: 17,548,946,769  Cardinality: 180,916,977 
      13 VIEW VIEW AR.index$_join$_027 Cost: 108,438  Bytes: 867,771,256  Cardinality: 78,888,296 
      12 HASH JOIN 
      10 INDEX RANGE SCAN INDEX AR.RA_CUSTOMER_TRX_N15 Cost: 58,206  Bytes: 867,771,256  Cardinality: 78,888,296 
      11 INDEX FAST FULL SCAN INDEX (UNIQUE) AR.RA_CUSTOMER_TRX_U1 Cost: 62,322  Bytes: 867,771,256  Cardinality: 78,888,296 
      18 HASH JOIN  Cost: 748,497  Bytes: 3,281,713,302  Cardinality: 38,159,457 
      14 TABLE ACCESS FULL TABLE AR.RA_CUST_TRX_LINE_GL_DIST_ALL Cost: 154,993  Bytes: 402,499,500  Cardinality: 20,124,975 
      17 HASH JOIN  Cost: 519,713  Bytes: 1,969,317,900  Cardinality: 29,838,150 
      15 TABLE ACCESS FULL TABLE AR.RA_CUSTOMER_TRX_LINES_ALL Cost: 302,822  Bytes: 716,115,600  Cardinality: 29,838,150 
      16 TABLE ACCESS FULL TABLE AR.RA_CUST_TRX_LINE_GL_DIST_ALL Cost: 149,847  Bytes: 1,253,202,300  Cardinality: 29,838,150 
      25 TABLE ACCESS FULL TABLE AR.RA_CUST_TRX_LINE_GL_DIST_ALL Cost: 157,552  Bytes: 5,158,998,615  Cardinality: 46,477,465 
      41 SORT GROUP BY  Bytes: 75  Cardinality: 1 
      40 FILTER 
      39 MERGE JOIN CARTESIAN  Cost: 11  Bytes: 75  Cardinality: 1 
      35 NESTED LOOPS  Cost: 8  Bytes: 50  Cardinality: 1 
      32 NESTED LOOPS  Cost: 5  Bytes: 30  Cardinality: 1 
      29 TABLE ACCESS BY INDEX ROWID TABLE AR.RA_CUSTOMER_TRX_LINES_ALL Cost: 3  Bytes: 22  Cardinality: 1 
      28 INDEX UNIQUE SCAN INDEX (UNIQUE) AR.RA_CUSTOMER_TRX_LINES_U1 Cost: 2  Cardinality: 1 
      31 TABLE ACCESS BY INDEX ROWID TABLE AR.RA_CUSTOMER_TRX_ALL Cost: 2  Bytes: 133,114,520  Cardinality: 16,639,315 
      30 INDEX UNIQUE SCAN INDEX (UNIQUE) AR.RA_CUSTOMER_TRX_U1 Cost: 1  Cardinality: 1 
      34 TABLE ACCESS BY INDEX ROWID TABLE AR.RA_CUST_TRX_LINE_GL_DIST_ALL Cost: 3  Bytes: 20  Cardinality: 1 
      33 INDEX RANGE SCAN INDEX AR.RA_CUST_TRX_LINE_GL_DIST_N6 Cost: 2  Cardinality: 1 
      38 BUFFER SORT  Cost: 9  Bytes: 25  Cardinality: 1 
      37 TABLE ACCESS BY INDEX ROWID TABLE AR.RA_CUST_TRX_LINE_GL_DIST_ALL Cost: 3  Bytes: 25  Cardinality: 1 
      36 INDEX RANGE SCAN INDEX AR.RA_CUST_TRX_LINE_GL_DIST_N1 Cost: 2  Cardinality: 1 
      49 SORT GROUP BY  Bytes: 48  Cardinality: 1 
      48 FILTER 
      47 NESTED LOOPS 
      45 NESTED LOOPS  Cost: 7  Bytes: 48  Cardinality: 1 
      43 TABLE ACCESS BY INDEX ROWID TABLE AR.RA_CUST_TRX_LINE_GL_DIST_ALL Cost: 4  Bytes: 20  Cardinality: 1 
      42 INDEX RANGE SCAN INDEX AR.RA_CUST_TRX_LINE_GL_DIST_N6 Cost: 3  Cardinality: 1 
      44 INDEX RANGE SCAN INDEX AR.RA_CUST_TRX_LINE_GL_DIST_N1 Cost: 2  Cardinality: 1 
      46 TABLE ACCESS BY INDEX ROWID TABLE AR.RA_CUST_TRX_LINE_GL_DIST_ALL Cost: 3  Bytes: 28  Cardinality: 1 
    As per oracle , they had suggested multiple patches but that has not been helpful. Please suggest how do i tune this query. I dont have much clue of query tuning.
    Regards

    Hi Paul, My bad. I am sorry I missed it.
    Query as below :
    UPDATE RA_CUST_TRX_LINE_GL_DIST LGD SET (AMOUNT, ACCTD_AMOUNT) = (SELECT /*+ index(rec1 RA_CUST_TRX_LINE_GL_DIST_N6) ordered */ NVL(LGD.AMOUNT, 0) - ( SUM(LGD2.AMOUNT) - ( DECODE(LGD.GL_DATE, REC1.GL_DATE, 1, 0) * CTL.EXTENDED_AMOUNT ) ), NVL(LGD.ACCTD_AMOUNT, 0) - ( SUM(LGD2.ACCTD_AMOUNT) - ( DECODE(LGD.GL_DATE, REC1.GL_DATE, 1, 0) * DECODE(:B2 , NULL, ROUND( CTL.EXTENDED_AMOUNT * NVL(CT.EXCHANGE_RATE,1), :B3 ), ROUND( ( CTL.EXTENDED_AMOUNT * NVL(CT.EXCHANGE_RATE,1) ) / :B2 ) * :B2 ) ) ) FROM RA_CUSTOMER_TRX_LINES CTL, RA_CUSTOMER_TRX CT, RA_CUST_TRX_LINE_GL_DIST LGD2, RA_CUST_TRX_LINE_GL_DIST REC1 WHERE CTL.CUSTOMER_TRX_LINE_ID = LGD2.CUSTOMER_TRX_LINE_ID AND CTL.CUSTOMER_TRX_ID = CT.CUSTOMER_TRX_ID AND LGD.CUSTOMER_TRX_LINE_ID = CTL.CUSTOMER_TRX_LINE_ID AND LGD2.ACCOUNT_SET_FLAG = 'N' AND REC1.CUSTOMER_TRX_ID = CT.CUSTOMER_TRX_ID AND REC1.ACCOUNT_CLASS = 'REC' AND REC1.LATEST_REC_FLAG = 'Y' AND NVL(LGD.GL_DATE, TO_DATE( 2415021, 'J') ) = NVL(LGD2.GL_DATE, TO_DATE( 2415021, 'J') ) GROUP BY CTL.CUSTOMER_TRX_LINE_ID, REC1.GL_DATE, CTL.EXTENDED_AMOUNT, CTL.REVENUE_AMOUNT, CT.EXCHANGE_RATE ), PERCENT = (SELECT /*+ index(rec2 RA_CUST_TRX_LINE_GL_DIST_N6) */ DECODE(LGD.ACCOUNT_CLASS || LGD.ACCOUNT_SET_FLAG, 'SUSPENSEN', LGD.PERCENT, 'UNBILLN', LGD.PERCENT, 'UNEARNN', LGD.PERCENT, NVL(LGD.PERCENT, 0) - ( SUM(NVL(LGD4.PERCENT, 0)) - DECODE(REC2.GL_DATE, NVL(LGD.GL_DATE, REC2.GL_DATE), 100, 0) ) ) FROM RA_CUST_TRX_LINE_GL_DIST LGD4, RA_CUST_TRX_LINE_GL_DIST REC2 WHERE LGD.CUSTOMER_TRX_LINE_ID = LGD4.CUSTOMER_TRX_LINE_ID AND REC2.CUSTOMER_TRX_ID = LGD.CUSTOMER_TRX_ID AND REC2.CUSTOMER_TRX_ID = LGD4.CUSTOMER_TRX_ID AND REC2.ACCOUNT_CLASS = 'REC' AND REC2.LATEST_REC_FLAG = 'Y' AND LGD4.ACCOUNT_SET_FLAG = LGD.ACCOUNT_SET_FLAG AND DECODE(LGD4.ACCOUNT_SET_FLAG, 'Y', LGD4.ACCOUNT_CLASS, LGD.ACCOUNT_CLASS) = LGD.ACCOUNT_CLASS AND NVL(LGD.GL_DATE, TO_DATE( 2415021, 'J') ) = NVL(LGD4.GL_DATE, TO_DATE( 2415021, 'J') ) GROUP BY REC2.GL_DATE, LGD.GL_DATE ), LAST_UPDATED_BY = :B1 , LAST_UPDATE_DATE = SYSDATE WHERE CUST_TRX_LINE_GL_DIST_ID IN (SELECT /*+ index(rec3 RA_CUST_TRX_LINE_GL_DIST_N6) */ MIN(DECODE(LGD3.GL_POSTED_DATE, NULL, LGD3.CUST_TRX_LINE_GL_DIST_ID, NULL) ) FROM RA_CUSTOMER_TRX_LINES CTL, RA_CUSTOMER_TRX T, RA_CUST_TRX_LINE_GL_DIST LGD3, RA_CUST_TRX_LINE_GL_DIST REC3 WHERE T.REQUEST_ID = :B5 AND T.CUSTOMER_TRX_ID = CTL.CUSTOMER_TRX_ID AND (CTL.LINE_TYPE IN ( 'TAX','FREIGHT','CHARGES','SUSPENSE' ) OR (CTL.LINE_TYPE = 'LINE' AND CTL.ACCOUNTING_RULE_ID IS NULL )) AND LGD3.CUSTOMER_TRX_LINE_ID = CTL.CUSTOMER_TRX_LINE_ID AND LGD3.ACCOUNT_SET_FLAG = 'N' AND REC3.CUSTOMER_TRX_ID = T.CUSTOMER_TRX_ID AND REC3.ACCOUNT_CLASS = 'REC' AND REC3.LATEST_REC_FLAG = 'Y' AND NVL(T.PREVIOUS_CUSTOMER_TRX_ID, -1) = DECODE(:B4 , 'INV', -1, 'REGULAR_CM', T.PREVIOUS_CUSTOMER_TRX_ID, NVL(T.PREVIOUS_CUSTOMER_TRX_ID, -1) ) GROUP BY CTL.CUSTOMER_TRX_LINE_ID, LGD3.GL_DATE, REC3.GL_DATE, CTL.EXTENDED_AMOUNT, CTL.REVENUE_AMOUNT, T.EXCHANGE_RATE HAVING ( SUM(NVL(LGD3.AMOUNT, 0)) <> CTL.EXTENDED_AMOUNT * DECODE(LGD3.GL_DATE, REC3.GL_DATE, 1, 0) OR SUM(NVL(LGD3.ACCTD_AMOUNT, 0)) <> DECODE(LGD3.GL_DATE, REC3.GL_DATE, 1, 0) * DECODE(:B2 , NULL, ROUND( CTL.EXTENDED_AMOUNT * NVL(T.EXCHANGE_RATE,1), :B3 ), ROUND( ( CTL.EXTENDED_AMOUNT * NVL(T.EXCHANGE_RATE,1) ) / :B2 ) * :B2 ) ) UNION SELECT /*+ index(rec5 RA_CUST_TRX_LINE_GL_DIST_N6) INDEX (lgd5 ra_cust_trx_line_gl_dist_n6) index(ctl2 ra_customer_trx_lines_u1) */ TO_NUMBER( MIN(DECODE(LGD5.GL_POSTED_DATE||LGD5.ACCOUNT_CLASS|| LGD5.ACCOUNT_SET_FLAG, 'REVN', LGD5.CUST_TRX_LINE_GL_DIST_ID, 'REVY', LGD5.CUST_TRX_LINE_GL_DIST_ID, 'TAXN', LGD5.CUST_TRX_LINE_GL_DIST_ID, 'TAXY', LGD5.CUST_TRX_LINE_GL_DIST_ID, 'FREIGHTN', LGD5.CUST_TRX_LINE_GL_DIST_ID, 'FREIGHTY', LGD5.CUST_TRX_LINE_GL_DIST_ID, 'CHARGESN', LGD5.CUST_TRX_LINE_GL_DIST_ID, 'CHARGESY', LGD5.CUST_TRX_LINE_GL_DIST_ID, 'UNEARNY', LGD5.CUST_TRX_LINE_GL_DIST_ID, 'UNBILLY', LGD5.CUST_TRX_LINE_GL_DIST_ID, NULL ) ) ) FROM RA_CUST_TRX_LINE_GL_DIST LGD5, RA_CUST_TRX_LINE_GL_DIST REC5, RA_CUSTOMER_TRX_LINES CTL2, RA_CUSTOMER_TRX T WHERE T.REQUEST_ID = :B5 AND T.CUSTOMER_TRX_ID = REC5.CUSTOMER_TRX_ID AND CTL2.CUSTOMER_TRX_LINE_ID = LGD5.CUSTOMER_TRX_LINE_ID AND REC5.CUSTOMER_TRX_ID = LGD5.CUSTOMER_TRX_ID AND REC5.ACCOUNT_CLASS = 'REC' AND REC5.LATEST_REC_FLAG = 'Y' AND (CTL2.LINE_TYPE IN ( 'TAX','FREIGHT','CHARGES','SUSPENSE') OR (CTL2.LINE_TYPE = 'LINE' AND (CTL2.ACCOUNTING_RULE_ID IS NULL OR LGD5.ACCOUNT_SET_FLAG = 'Y' ))) GROUP BY LGD5.CUSTOMER_TRX_LINE_ID, LGD5.GL_DATE, REC5.GL_DATE, LGD5.ACCOUNT_SET_FLAG, DECODE(LGD5.ACCOUNT_SET_FLAG, 'N', NULL, LGD5.ACCOUNT_CLASS) HAVING SUM(NVL(LGD5.PERCENT, 0)) <> DECODE( NVL(LGD5.GL_DATE, REC5.GL_DATE), REC5.GL_DATE, 100, 0) )
    I understand that this could be a seeded query but my attempt is to tune it.
    Regards

  • Order Number not showing in Autoinvoice Master Program.

    I have a demo version ERP Interface that i use to practice at home. I have booked an Order and after booking i have also done the ship confirm. Now, my shipping status is showing as "INTERFACED" and my Sales Order Line status is shown as "CLOSED". But after performing the Ship Confirm for the booked order when i am going to run the Autoinvoive Master Program from Receivables module the booked Sales Order Number which has already been shipped is not shown in the (Low) Sales Order Number and (High) Sales Order Number field of Autoinvoice Master Program. i am unable to understand about why this is happening. Please help.

    Hi,
    First run workflow background engine with following parameters:
    Item Type : OM Order Line
    Process Deferred : Yes
    Process Timeout : Yes
    Process Stuck : Yes
    Also check invoiceable flag of item at org level in Invoicing Flag and also invoiceable flag in oe_order_lines_all table
    Check the workflow attached in Order type and also current workflow status at Sales Order line level.
    Regards,
    Vikas

  • Generate auto invoice partially against partial PO Receipts

    Dear All,
    Is it possible to do partial receipt against a PO , and generate Payables auto invoice for this partial receipts in 11.5.10.2?
    Please update...
    many thanks in advance...

    Hi,
    Your question : 1) Is it possible to do partial receipt against a PO , and generate Payables auto invoice for this partial receipts in 11.5.10.2?
    Ans :_ Yes you can do a partial receipt of the PO, and you can create auto invoice for this partial receipt in 2 ways..
    a) In supplier site if "Pay on receipt" option is checked.
    b) or "Pay On Receipt AutoInvoice" conc. program is sceduled.
    Hope above explanation will help.
    Regards :),
    S.P DASH

  • Auto Invoice Error

    Hey,i am getting this error while running the Auto Invoice Import
    "Please correct the revenue account assignment"
    Note found in metalink was not helpful.
    Please let me know your inputs

    Hi,
    Check if your Revenue, Receivable and Tax have an account in Setup --> Transactions --> Transaction Type
    If u using Transaction type.
    Else to avoid this, you can explicitly insert data for accounts in the table RA_INTERFACE_DISTRIBUTIONS_ALL, by this, the import program will not check the accounts in Transaction Type setup but will use those CCIDs you inserted for REC, REV and TAX.
    Hope this helps,
    vik

  • Differences between Automatic Receipts Creation Program and Master Program

    This is something I observed today - I'm hoping someone can explain it to me.
    If I go through the Receipt Batches form and create a new batch for Automatic Receipts, this calls the Automatic Receipts Creation Program and my batch gets created successfully.
    If I launch the concurrent request Automatic Receipts Master Program, no receipts are created. But there are invoices in the system eligible for receipting.
    I'm trying to understand what the Automatic Receipts Master Program does differently? What does it do in general?

    This is something I observed today - I'm hoping someone can explain it to me.
    If I go through the Receipt Batches form and create a new batch for Automatic Receipts, this calls the Automatic Receipts Creation Program and my batch gets created successfully.
    If I launch the concurrent request Automatic Receipts Master Program, no receipts are created. But there are invoices in the system eligible for receipting.
    I'm trying to understand what the Automatic Receipts Master Program does differently? What does it do in general?

  • Invoice validation program error:Could not find operating unit options

    Dear Team,
    Once my Payables Open Interface Import program successfully completed, I am trying to running invoice validation program which is ended with warning as bellow,
    (Bulk CALCULATE) START SYSDATE 17-DEC-2012 04:04:19
    Could not find operating unit options
    Encountered unexpected error: User-Defined Exception
    (Bulk CALCULATE) END SYSDATE 17-DEC-2012 04:04:23
    and invoice placing into Dist Variance hold,
    my interface program placed data in to based tables (ap_invoices_all and lines_all ) but distributions are not getting generating. Can you please do help me.
    Find attached excel sheet for ur references.
    Thanks
    Sathiya

    Make sure the library (pll file) is in the path indicated by your FORMS60_PATH in the registry.
    Hope that helps,
    Karim.

Maybe you are looking for

  • Receiver IDoc Adapter - Outbound IDocs in IDX5 but stucked in SM58

    Hi Gurus, I have a Receiver IDoc issue with the above error. My message is successful in the IE pipeline (but with error on outbound side) I can even view the generated IDoc numbers for those messages in IDX5,   but when double-clicking on those IDX5

  • Help with : oracle.ewt.scrolling.scrollBox.ScrollBox

    I want to show a ScrollBox in a VBean area. How do I tell the ScrollBox that I want to wrap the lines instead of using a vertical scrollbar, just a horisontal scroolbar. I set it up like this. scrollpane = new ScrollBox(Pane, scrollpane.DISPLAY_NEVER

  • Backup MX Server

    I have my domain with an ISP and all is well. I was wanting to set my domains DNS records so that I get copies of all emails, sent and recieved on this domain, to my mac OSX 10.7 Server, as a backup. I have OSX Server 10.7.latest setup and ready to g

  • MAXL Filter Import

    I have a need to import security filters where a user may have multiple Reads and/or writes. I have been unsuccessful thus far in creating an import of anything other than a "no_access on" filter. I would greatly appreciate an example of a no_access,

  • What cameras will import directly to iMovie?

    Years ago I used a mini-tape firewire camcorder that imported directly into iMovie. Since I switched to cameras that record both video and still images, I must transfer all videos from iPhoto to iMovie (a real pain since I take a lot of video). I am