Error rep-1401 in report 6i

dear sirs,
when i run the report i got this error rep_1401 cf_2formula fatal pl/sql error occurred
known that after i trace i find that the error come because report not see the value inside the paramater :budg_type
the code is here
function CF_2Formula return Number is
cursor c1 is SELECT
to_char(A.DUE_DATE,'mm') ,
SUM(nvl (b.EST_CRAFT,0)) man,
SUM(nvl (b.EST_TOOL,0)) tol,
SUM(nvl (b.EST_SUPPLY,0)) con,
SUM(nvl (b.EST_SPARES,0)) mat,
SUM(nvl (b.EST_MISC,0)) misc
FROM PLANNING_SIMULATION A ,maintenance_plans b
WHERE A.EQUIPMENT_ID = B.equip_EQUIPMENT_ID(+)
AND A.MAINTENANCE_WORK_ID = B.mw_MAINTENANCE_WORK_ID(+)
AND to_number(to_char(a.due_date,'yyyy')) =:YEAR
and A.EQUIPMENT_ID IN (SELECT EQUIPMENT_ID FROM EQUIPMENT WHERE
               COSTCENTER_COST_CENTER_ID = :COST_CENTER)
and to_char(A.DUE_DATE,'mm') = :mon
group by to_char(A.DUE_DATE,'mm');
rec c1%rowtype;
total number(10,3);
begin
open c1;
fetch c1 into rec;
close c1;
total := nvl(rec.mat,0)+nvl(rec.con,0)+nvl(rec.man,0)+nvl(rec.tol,0)+nvl(rec.misc,0);
--if :cf_budg_type = 'material' then
if :budg_type = 'material' then
     total := rec.mat;
     return(total);
elsif :budg_type = 'contract' then
     total := rec.con;
     return(total);
elsif :budg_type = 'manpower' then
     total := rec.man;
     return(total);
elsif :budg_type = 'tool' then
     total := rec.tol;
     return(total);
elsif :budg_type = 'misc.' then
     total := rec.misc;
     return(total);
elsif :budg_type = 'totals' then
     return(total);
end if;
end;
when i make hash for the if statement it work without problem, please advice me how to solve this and why if statement not feel what inside the paramter even i try to print the contents of paramater and it was ok
help me pls
Yasser

I think the problem is that
to_number(interface_header_attribute1)fails when there are non numeric values in interface_header_attribute1.
You could write a stored function in the database for converting char-values to number-values.
These function should catch the conversion errors and return an appropriate default (or null).
You then could use your own function instead of buildin to_number-function.
Edited by: hm on 05.09.2011 01:25

Similar Messages

  • Iam getting the error REP-1401: '': Fatal PL/SQL error occurred. when i

    When i run the report to generate xml file in report builder the following error messages are displayed.
    REP-0069: Internal error
    REP-57054: In-process job terminated:Terminated with error:
    REP-1401: '': Fatal PL/SQL error occurred.
    pls help me.Its urgent
    Regards,
    Kranthi

    Hi;
    What is EBS version? Is it custom report or not?
    See below which is mention similar errors
    Autoinvoice Error: ORA-1403: no data found [ID 1209403.1]
    APXIIMPT - Payable Open Interface Import Fails on "REP-1401: 'cf_source_nameformula': Fatal PL/SQL error occurred. ORA-01403: no data found" [ID 222058.1]
    Regard
    Helios

  • Error REP-51002 on Report Srveices 10.1.2

    Hi
    I installed Oracle Apps Server 10.1.2 and I only pick Form and Report Services standalone to be installed with standard-dates.
    I create a "Standalone" Report-Server, because I use it with Forms.
    <oarcle_home>\BIN\addNewServerTarget.bat repsrv01
    In "rwservlet.properties" I have changed:
    SERVER_IN_PROCESS =NO
    TRACEOPTS=TRACE_ALL
    TRACEFILIE= rwservlet.trc
    SINGLESIGNON=NO
    SERVER=repsrv01
    In the default from "rwservlet.properties" I read (????):
    OID_ENTITY=%REPORTS_OID_ENTITY%
    But when I test the Report Services : http://host-name:port-number/repdemo, then click : Test a Paper Report. I got this error :
    REP-51002: Bind to Reports Server repsrv01 failed
    In "rwservlet.trc" I can read:
    [2006/4/24 8:59:10:6] Debug 50103 (RWClient:RWClientInit): ORACLE_HOME is derived from RWClient.class, oracle home: C:\oracle\FRHome_1
    [2006/4/24 8:59:10:577] Debug 50103 (InfraConfigMgr:createDirContext): Pool size is 0. 10 more DirContext will be created.
    [2006/4/24 8:59:14:32] Exception 50125 (oracle.ias.repository.schema.SchemaException: Unable to establish initial connection to Oracle Internet Directory Server. Please verify that the correct Oracle Internet Directory Server parameters are specified in C:\oracle\FRHome_1\config\ias.properties. Make sure that the Oracle Internet Directory Server specified in OIDhost, OIDport is up and running. Base Exception : javax.naming.CommunicationException: localhost:389 [Root exception is java.net.ConnectException: Connection refused: connect]
    at oracle.ias.repository.IASSchema.connectAs(IASSchema.java:2273)
    at oracle.ias.repository.IASSchema.connectAs(IASSchema.java:2243)
    at oracle.ias.repository.SchemaManager.connectAs(SchemaManager.java:1288)
    at oracle.reports.utility.InfraConfigMgr.createDirContext(InfraConfigMgr.java:234)
    at oracle.reports.utility.InfraConfigMgr.createOIDContext(InfraConfigMgr.java:149)
    at oracle.reports.rwclient.OIDManager.init(OIDManager.java:88)
    at oracle.reports.rwclient.RWClient.RWClientInit(RWClient.java:634)
    at oracle.reports.rwclient.RWClient.init(RWClient.java:269)
    at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2354)
    at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4795)
    at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4889)
    at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1015)
    at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:549)
    at com.evermind.server.Application.getHttpApplication(Application.java:890)
    at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:707)
    at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:625)
    at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:278)
    at com.evermind.server.http.HttpServer.setSites(HttpServer.java:278)
    at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:179)
    at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2394)
    at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1551)
    at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:92)
    at java.lang.Thread.run(Thread.java:534)
    ): Interner Fehler oracle.ias.repository.schema.SchemaException: Unable to establish initial connection to Oracle Internet Directory Server. Please verify that the correct Oracle Internet Directory Server parameters are specified in C:\oracle\FRHome_1\config\ias.properties. Make sure that the Oracle Internet Directory Server specified in OIDhost, OIDport is up and running. Base Exception : javax.naming.CommunicationException: localhost:389 [Root exception is java.net.ConnectException: Connection refused: connect]
    [2006/4/24 8:59:14:42] Debug 50103 (InfraConfigMgr:createDirContext): Failed to create OiD DirContext.
    [2006/4/24 8:59:14:42] Debug 50103 (InfraConfigMgr:createDirContext): OiD DirContext created successfully. m_totalSize:0
    [2006/4/24 8:59:14:42] Debug 50103 (InfraConfigMgr:createOIDContext): connect to OID server successfully as %REPORTS_OID_ENTITY%
    [2006/4/24 8:59:15:13] Debug 50103 (KeyMapParser:readKeyMapFile): file: C:\oracle\FRHome_1\reports\conf\cgicmd.dat
    [2006/4/24 8:59:15:93] Debug 50103 (NetworkUtility:setTimeout): Timeout value set to 1000
    [2006/4/24 8:59:15:324] Info 65000 (Multicast:init): Der Kommunikationskanal wurde initialisiert
    [2006/4/24 8:59:15:404] Debug 50103 (Multicast:registerReceiver): Packet handler registered
    [2006/4/24 8:59:41:572] (RWClient:doGet) enter...
    [2006/4/24 8:59:41:602] Debug 50103 (RWClient:doGet): QueryString: start=auto
    [2006/4/24 8:59:41:882] Debug 50103 (ServletCmdMgr:handleCmdPingServer): server name: repsrv01
    [2006/4/24 8:59:41:882] Debug 50103 (ServletCmdMgr:handleCmdPingServer): defaultServerName: repsrv01
    [2006/4/24 8:59:41:892] Debug 50103 (ServletCmdMgr:handleCmdPingServer): inprocess: false
    [2006/4/24 8:59:41:892] Info 50103 (RWClientUtility:findServer): Failed to bind to server: repsrv01
    [2006/4/24 8:59:41:892] Debug 50103 (ServletCmdMgr:handleCmdPingServer): reports server status: 0|1
    [2006/4/24 8:59:41:892] Debug 50103 (ServletCmdMgr:handleCmdPingServer): http status code: 200
    [2006/4/24 8:59:41:892] (RWClient:doGet) ...exit
    [2006/4/24 9:0:1:841] (RWClient:doGet) enter...
    [2006/4/24 9:0:1:841] Debug 50103 (RWClient:doGet): QueryString: start=auto
    [2006/4/24 9:0:1:841] Debug 50103 (ServletCmdMgr:handleCmdPingServer): server name: repsrv01
    [2006/4/24 9:0:1:841] Debug 50103 (ServletCmdMgr:handleCmdPingServer): defaultServerName: repsrv01
    [2006/4/24 9:0:1:841] Debug 50103 (ServletCmdMgr:handleCmdPingServer): inprocess: false
    [2006/4/24 9:0:1:841] Info 50103 (RWClientUtility:findServer): Failed to bind to server: repsrv01
    [2006/4/24 9:0:1:841] Debug 50103 (ServletCmdMgr:handleCmdPingServer): reports server status: 0|1
    [2006/4/24 9:0:1:841] Debug 50103 (ServletCmdMgr:handleCmdPingServer): http status code: 200
    [2006/4/24 9:0:1:841] (RWClient:doGet) ...exit
    Now what I have to do ? - in ias.properties ????
    Is it a security-problem with SSO or OID ? - I don't need both.
    Some people in this forum have the same problem, but what is the solution now?
    best regards
    Walter

    question. Did you solve this? If so was it because you firstly needed to create a Report Server and register it with Enterprise Manager?
    Pamela

  • Error REP-51002 on Report Services 10.1.2

    Hi
    I installed Oracle Apps Server 10.1.2 and I only pick Form and Report Services to be installed with standard-dates.
    I create a "Standalone" Report-Server, because I want to see the err-log.
    <oarcle_home>\BIN\addNewServerTarget.bat repsrv01
    In "rwservlet.properties" I have changed:
    SERVER_IN_PROCESS =NO
    TRACEOPTS=TRACE_ALL
    TRACEFILIE= rwservlet.trc
    SINGLESIGNON=NO
    SERVER=repsrv01
    In the default from "rwservlet.properties" I read (????):
    OID_ENTITY=%REPORTS_OID_ENTITY%
    But when I test the Report Services : http://host-name:port-number/repdemo, then click : Test a Paper Report. I got this error :
    REP-51002: Bind to Reports Server repsrv01 failed
    In "rwservlet.trc" I can read:
    [2006/4/24 8:59:10:6] Debug 50103 (RWClient:RWClientInit): ORACLE_HOME is derived from RWClient.class, oracle home: C:\oracle\FRHome_1
    [2006/4/24 8:59:10:577] Debug 50103 (InfraConfigMgr:createDirContext): Pool size is 0. 10 more DirContext will be created.
    [2006/4/24 8:59:14:32] Exception 50125 (oracle.ias.repository.schema.SchemaException: Unable to establish initial connection to Oracle Internet Directory Server. Please verify that the correct Oracle Internet Directory Server parameters are specified in C:\oracle\FRHome_1\config\ias.properties. Make sure that the Oracle Internet Directory Server specified in OIDhost, OIDport is up and running. Base Exception : javax.naming.CommunicationException: localhost:389 [Root exception is java.net.ConnectException: Connection refused: connect]
         at oracle.ias.repository.IASSchema.connectAs(IASSchema.java:2273)
         at oracle.ias.repository.IASSchema.connectAs(IASSchema.java:2243)
         at oracle.ias.repository.SchemaManager.connectAs(SchemaManager.java:1288)
         at oracle.reports.utility.InfraConfigMgr.createDirContext(InfraConfigMgr.java:234)
         at oracle.reports.utility.InfraConfigMgr.createOIDContext(InfraConfigMgr.java:149)
         at oracle.reports.rwclient.OIDManager.init(OIDManager.java:88)
         at oracle.reports.rwclient.RWClient.RWClientInit(RWClient.java:634)
         at oracle.reports.rwclient.RWClient.init(RWClient.java:269)
         at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2354)
         at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4795)
         at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4889)
         at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1015)
         at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:549)
         at com.evermind.server.Application.getHttpApplication(Application.java:890)
         at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:707)
         at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:625)
         at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:278)
         at com.evermind.server.http.HttpServer.setSites(HttpServer.java:278)
         at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:179)
         at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2394)
         at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:1551)
         at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:92)
         at java.lang.Thread.run(Thread.java:534)
    ): Interner Fehler oracle.ias.repository.schema.SchemaException: Unable to establish initial connection to Oracle Internet Directory Server. Please verify that the correct Oracle Internet Directory Server parameters are specified in C:\oracle\FRHome_1\config\ias.properties. Make sure that the Oracle Internet Directory Server specified in OIDhost, OIDport is up and running. Base Exception : javax.naming.CommunicationException: localhost:389 [Root exception is java.net.ConnectException: Connection refused: connect]
    [2006/4/24 8:59:14:42] Debug 50103 (InfraConfigMgr:createDirContext): Failed to create OiD DirContext.
    [2006/4/24 8:59:14:42] Debug 50103 (InfraConfigMgr:createDirContext): OiD DirContext created successfully. m_totalSize:0
    [2006/4/24 8:59:14:42] Debug 50103 (InfraConfigMgr:createOIDContext): connect to OID server successfully as %REPORTS_OID_ENTITY%
    [2006/4/24 8:59:15:13] Debug 50103 (KeyMapParser:readKeyMapFile): file: C:\oracle\FRHome_1\reports\conf\cgicmd.dat
    [2006/4/24 8:59:15:93] Debug 50103 (NetworkUtility:setTimeout): Timeout value set to 1000
    [2006/4/24 8:59:15:324] Info 65000 (Multicast:init): Der Kommunikationskanal wurde initialisiert
    [2006/4/24 8:59:15:404] Debug 50103 (Multicast:registerReceiver): Packet handler registered
    [2006/4/24 8:59:41:572] (RWClient:doGet) enter...
    [2006/4/24 8:59:41:602] Debug 50103 (RWClient:doGet): QueryString: start=auto
    [2006/4/24 8:59:41:882] Debug 50103 (ServletCmdMgr:handleCmdPingServer): server name: repsrv01
    [2006/4/24 8:59:41:882] Debug 50103 (ServletCmdMgr:handleCmdPingServer): defaultServerName: repsrv01
    [2006/4/24 8:59:41:892] Debug 50103 (ServletCmdMgr:handleCmdPingServer): inprocess: false
    [2006/4/24 8:59:41:892] Info 50103 (RWClientUtility:findServer): Failed to bind to server: repsrv01
    [2006/4/24 8:59:41:892] Debug 50103 (ServletCmdMgr:handleCmdPingServer): reports server status: 0|1
    [2006/4/24 8:59:41:892] Debug 50103 (ServletCmdMgr:handleCmdPingServer): http status code: 200
    [2006/4/24 8:59:41:892] (RWClient:doGet) ...exit
    [2006/4/24 9:0:1:841] (RWClient:doGet) enter...
    [2006/4/24 9:0:1:841] Debug 50103 (RWClient:doGet): QueryString: start=auto
    [2006/4/24 9:0:1:841] Debug 50103 (ServletCmdMgr:handleCmdPingServer): server name: repsrv01
    [2006/4/24 9:0:1:841] Debug 50103 (ServletCmdMgr:handleCmdPingServer): defaultServerName: repsrv01
    [2006/4/24 9:0:1:841] Debug 50103 (ServletCmdMgr:handleCmdPingServer): inprocess: false
    [2006/4/24 9:0:1:841] Info 50103 (RWClientUtility:findServer): Failed to bind to server: repsrv01
    [2006/4/24 9:0:1:841] Debug 50103 (ServletCmdMgr:handleCmdPingServer): reports server status: 0|1
    [2006/4/24 9:0:1:841] Debug 50103 (ServletCmdMgr:handleCmdPingServer): http status code: 200
    [2006/4/24 9:0:1:841] (RWClient:doGet) ...exit
    Now what I have to do ? - in ias.properties ????
    Is it a security-problem with SSO or OID ? - I don't need two.
    Some people in this forum have the same problem, but what is the solution now?
    best regards
    Walter

    question. Did you solve this? If so was it because you firstly needed to create a Report Server and register it with Enterprise Manager?
    Pamela

  • Error rep-1401 in formula of report buider

    I am trying to read number from table for a speciific date for which that number does not exit i.e return value is null. I am unable to handle it.
    My code look like this
    declare
    vnum number;
    begin
    select pnum into vnum from XYZ where pdate=:P1_date
    if pnum is null
    return 0;
    else return pnum;
    end if;
    end;
    I also tried
    declare
    vnum number;
    begin
    select pnum into vnum from XYZ where pdate=:P1_date
    exception when no_data_found then
    return 0;
    else return pnum;
    end if;
    end;

    declare
    vnum number;
    begin
      select pnum into vnum from XYZ where pdate=:P1_date;
      return vnum;
    exception when no_data_found then
    return 0;
    end;

  • Error REP-0118 on Report Builder

    Hi,
    I develop Reports with Report Builder Version: 6.0.8.20.1
    on MS Windows XP.
    There are no local installations. All environement setting and tools are netbased(not web).
    And now my problem.
    I have a Formsapplication. In this Formsappl. I starting the Report.
    If I work under Windows NT all works fine.
    But if I work under Windows XP (under the same environement) I get the following Errorsituation.
    - I start the Report from the Forms.
    - The Reportsbackgroundengine is starting and works fine.
    The status of the Report is "initialising"
    - At this point I get the errormessage from ReportsBuilder
    (why not from Reports RunTime, under Windows NT starts
    the Reports-Runtime)
    The error-message is:
    REP-0118: temorary file can not be created (I have it
    translated from german)
    Both Reports are starting from Forms under the same environementsetting and workconditions. The only change is the different Operatingsystem.
    And I can't find the errorexplanation for REP-0118 everywhere.
    Thanks for help
    J.M.-Schubert

    Hi
    Many Thanks for your help!!!!
    In my Company are all computers installed from SysAdmins.
    And they have forgotten to build in the creating of the TEMP-directory in there Installationscripts.
    But in the Environementsettingbatchfiles ist the REPORTS60_TMP parameter correctly staid.
    Again, many thank for so fast help!!
    By and a nice day
    J.M.-Schubert

  • Error REP-826 on reports 9i

    Hi,
    I can run my reports on my 9ids fine.
    But when I run then on 9ias on the web and incorporated into muy application and execute with run_report_object I get: REP-826 after I hit submit on the parameter form.
    I have desformat=pdf and destype=cache too desformat=htmlcss.
    I have the HTML code in the Before Parameter trigger to make the submit function correctly, copy and paste document http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
    Any suggestions?

    Hi ,
    This error occurs when a value other than DFLT is specified as the initial value of the DESFORMAT system parameter.
    The PRT drivers pass values to a printer from character mode
    reports only. Bitmap mode reports cannot use .PRT files and will generate this error if any other value is specified in DESFORMAT.
    Thanks,
    Vinod.

  • Error rep-1401

    I am trying to read number from table for a speciific date for which that number does not exit i.e return value is null. I am unable to handle it.
    My code look like this
    declare
    vnum number;
    begin
    select pnum into vnum from XYZ where pdate=:P1_date
    if pnum is null
    return 0;
    else return pnum
    end if;
    end;
    I also tried
    declare
    vnum number;
    begin
    select pnum into vnum from XYZ where pdate=:P1_date
    exception when no_data_found then
    return 0;
    else return pnum
    end if;
    end;

    I'm suprised these even compile. Try reading the pl/sql user guide and refernce for proper syntax.
    You want sometheng like this.
    declare
    vnum number;
    begin
    select pnum into vnum from XYZ where pdate=:P1_date
    return vnum;
    exception when no_data_found then
    return 0;
    end;By the way, this forum is specificaly for the SQL Developer tool. You should ask general questions in the SQL and PL/SQL forum.

  • See this error in report REP-1401: cf_1formula: Fatal PL/SQL errir occurred

    hi mater
    sir i use oracel reprot 6i
    i try to use formula for calculation see
    function avggFormula return Number is begin
    :cp_1 := (:bugamt-nvl(:totexp,0)/:bugamt)*100 ;
    return(:cp_1);
    end;
    this formula complie rightly no error
    but when i run my report
    that give me this error
    REP-1401: 'cf_1formula': Fatal PL/SQL errir occurred.
    ORA-01476: divisor is equal to zero
    please give me idea how i solve my this error
    thank;
    aamir

    Hi Aamir,
    The problem is that divisor by 0 (zero) is not possible.
    So you need to make sure that in your calculation there's no division by zero.
    In your case :bugamt is equal to zero then you will get this error.
    So just make sure that :bugamt is not equal to zero.
    You can do this as follows:
    function avggFormula return Number is begin
    IF :bugamt != 0 THEN
    :cp_1 := (:bugamt-nvl(:totexp,0)/:bugamt)*100 ;
    END IF;
    return(:cp_1);
    end;
    Regards
    Arif

  • REP-1401:'cf_1formula': Fatal PL/SQL error occured, ORA-01403: no data fou

    hi,
    my report is giving error REP-1401:'cf_1formula': Fatal PL/SQL error occured,
    ORA-01403: no data found
    There are two table emp1 and emp2 created from employees table from HR schema
    I have deleted some records from table emp2 where department id is 110
    main query is
    select employee_id, first_name, department_id from emp1
    now i created a foumula column
    function CF_1Formula return Number is
    dept number;
    begin
    select department_id into dept from emp2 where employee_id = :employee_id;
    return(dept);
    end;
    the above error is given when report is run. i tried
    exception
    when_no_data_found then
    dept:=000
    but problem is not solved
    i want to disply any number in this foumula column if the record is not found

    M. Khurram Khurshid wrote:
    exception
    when_no_data_found then
    dept:=000try this code in formula
    function CF_1Formula return Number is
    dept number;
    begin
    select department_id into dept from emp2 where employee_id = :employee_id;
    if dept is not null then
    return(dept);
    else
    return 0;
    end if;
    end; Hope this will help you...
    If someone response is helpful or correct please, mark is accordingly.

  • REP-1401: Fatal PL/SQL error occurred. ORA-01403: no data found

    Hi guys,
    I am getting error 'REP-1401: Fatal PL/SQL error occurred. ORA-01403: no data found ' when run the report
    and i m also use formula column in my report.
    can any body help me why it's coming.
    following code is used in formula column plz check and verify:
    function CF_3Formula return Char is
    T1 VARCHAR2(100);
    begin
    SELECT
         VAT_REG_NO INTO T1
    FROM
         JA_IN_HR_ORGANIZATION_UNITS JIHOU,
         HR_LOCATIONS HL--,
         --MTL_TXN_REQUEST_HEADERS MTLH
    WHERE
    JIHOU.ORGANIZATION_ID=HL.INVENTORY_ORGANIZATION_ID AND
    JIHOU.LOCATION_ID=HL.LOCATION_ID AND
    --Jihou.ORGANIZATION_ID = Mtlh.Organization_Id AND
    -- Hl.INVENTORY_ORGANIZATION_ID =Mtlh.Organization_Id AND
    -- MTLH.ATTRIBUTE10=SUBSTR(HL.LOCATION_CODE,1,3) AND
    SUBSTR(HL.LOCATION_CODE,1,3)= :TO_ORG1 ;
    RETURN (T1);
    end;
    plz help me out.

    Hi;
    What is EBS version? Is it custom report or not?
    See below which is mention similar errors
    Autoinvoice Error: ORA-1403: no data found [ID 1209403.1]
    APXIIMPT - Payable Open Interface Import Fails on "REP-1401: 'cf_source_nameformula': Fatal PL/SQL error occurred. ORA-01403: no data found" [ID 222058.1]
    Regard
    Helios

  • Rep-1401: 'beforereport': Fatal PL/SQL error occured

    Hi all
    I am working in Oracle reports 6i.
    in my report i hav two program units.
    iam calling them in before report trigger. Then iam getting the following error
    rep-1401: 'beforereport': Fatal PL/SQL error occured
    ORA-03120: two-task conversion routin: integer overflow
    and if i call any one of them they are working fine.
    whenever i call two of them at a time iam getting above error.
    can anybody help me.....

    in the before report trigger check the code where u r assigning value to a variable...like fetching cursor into some variable......or assigning to any variable and there the variable must be smaller than the value being assigned to it....

  • Concurrent Manager encountered an error while running Oracle*Report for you

    hi
    our team is running a report.but encountered
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    P_DELV_ID='8022'
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.US7ASCII
    Enter Password:
    REP-0069: Internal error
    REP-57054: In-process job terminated:Terminated with error:
    REP-1401: '': Fatal PL/SQL error occurred.
    Report Builder: Release 10.1.2.0.2 - Production on Mon Jun 21 11:26:16 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    +---------------------------------------------------------------------------+
    Start of log messages from FND_FILE
    +---------------------------------------------------------------------------+
    +---------------------------------------------------------------------------+
    End of log messages from FND_FILE
    +---------------------------------------------------------------------------+
    Program exited with status 1
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 451508.
    Review your concurrent request log and/or report output file for more detailed information.
    +---------------------------------------------------------------------------+
    Executing request completion options...
    +------------- 1) PUBLISH -------------+
    Beginning post-processing of request 451508 on node DEMO at 21-JUN-2010 11:26:17.
    Post-processing of request 451508 failed at 21-JUN-2010 11:26:17 with the error message:
    One or more post-processing actions failed. Consult the OPP service log for details.
    +--------------------------------------+
    Finished executing request completion options.
    +---------------------------------------------------------------------------+
    Concurrent request completed
    Current system time is 21-JUN-2010 11:26:17
    +---------------------------------------------------------------------------+how to solve it?when i am searching in this error in cmctl log there is nothing for it.
    i have lnched a SR on this they told to run it by appsrwrun.sh.how to run this report by appsrwrun.sh??
    rgrds
    Edited by: new2appsdba on Jun 21, 2010 4:19 AM

    Hi,
    how do you suspect its a OPP related issue??what is OPP?
    Enter value for request_id: 451508
    old   5: AND fcpp.concurrent_request_id = &&request_id
    new   5: AND fcpp.concurrent_request_id = 451508
        REQ_ID NODE_NAME
    LOGFILE_NAME
        451508 DEMO
    /t01/demoap/inst/apps/DEMO_demo/logs/appl/conc/log/FNDOPP94508.txt
    [demoap@demo ~]$ vi /t01/demoap/inst/apps/DEMO_demo/logs/appl/conc/log/FNDOPP94508.txt
    [6/20/10 1:37:36 PM] [main] Starting GSF service with concurrent process id = 94508.
    [6/20/10 1:37:36 PM] [main] Initialization Parameters: oracle.apps.fnd.cp.opp.OPPServiceThread:2:0:max_threads=5
    [6/20/10 1:37:37 PM] [Thread-16] Service thread starting up.
    [6/20/10 1:37:37 PM] [Thread-15] Service thread starting up.
    [6/21/10 11:12:00 AM] [OPPServiceThread0] Post-processing request 451495.
    [6/21/10 11:12:00 AM] [94508:RT451495] Executing post-processing actions for request 451495.
    [6/21/10 11:12:00 AM] [94508:RT451495] Starting XML Publisher post-processing action.
    [6/21/10 11:12:00 AM] [94508:RT451495]
    Template code: WILPACKSLIP
    Template app:  ONT
    Language:      en
    Territory:     00
    Output type:   PDF
    [6/21/10 11:12:00 AM] [UNEXPECTED] [94508:RT451495] java.io.FileNotFoundException: /t01/demoap/inst/apps/DEMO_demo/logs/appl/conc/out/o451495.out (No such file or directory)
            at java.io.FileInputStream.open(Native Method)
            at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:241)
            at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:172)
    [6/21/10 11:12:00 AM] [94508:RT451495] Completed post-processing actions for request 451495.
    [6/21/10 11:22:27 AM] [OPPServiceThread0] Post-processing request 451505.
    [6/21/10 11:22:27 AM] [94508:RT451505] Executing post-processing actions for request 451505.
    [6/21/10 11:22:27 AM] [94508:RT451505] Starting XML Publisher post-processing action.
    [6/21/10 11:22:27 AM] [94508:RT451505]
    Template code: WILPACKSLIP
    Template app:  ONT
    Language:      en
    Territory:     00
    Output type:   PDF
    [6/21/10 11:22:27 AM] [UNEXPECTED] [94508:RT451505] java.io.FileNotFoundException: /t01/demoap/inst/apps/DEMO_demo/logs/appl/conc/out/o451505.out (No such file or directory)
            at java.io.FileInputStream.open(Native Method)
            at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:241)
            at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:172)
    [6/21/10 11:22:27 AM] [94508:RT451505] Completed post-processing actions for request 451505.
    [6/21/10 11:26:17 AM] [OPPServiceThread1] Post-processing request 451508.
    [6/21/10 11:26:17 AM] [94508:RT451508] Executing post-processing actions for request 451508.
    [6/21/10 11:26:17 AM] [94508:RT451508] Starting XML Publisher post-processing action.
    [6/21/10 11:26:17 AM] [94508:RT451508]
    Template code: WILPACKSLIP
    Template app:  ONT
    Language:      en
    Territory:     00
    Output type:   PDF
    [6/21/10 11:26:17 AM] [UNEXPECTED] [94508:RT451508] java.io.FileNotFoundException: /t01/demoap/inst/apps/DEMO_demo/logs/appl/conc/out/o451508.out (No such file or directory)
            at java.io.FileInputStream.open(Native Method)
            at java.io.FileInputStream.<init>(FileInputStream.java:106)
                                                                  at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:241)
            at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:172)
    [6/21/10 12:00:59 PM] [94508:RT451533] Completed post-processing actions for request 451533.
    [6/21/10 12:17:51 PM] [OPPServiceThread0] Post-processing request 451573.
    [6/21/10 12:17:51 PM] [94508:RT451573] Executing post-processing actions for request 451573.
    [6/21/10 12:17:51 PM] [94508:RT451573] Starting XML Publisher post-processing action.
    [6/21/10 12:17:51 PM] [94508:RT451573]
    Template code: XXWEBB_EXP_INV
    Template app:  ONT
    Language:      en
    Territory:     00
    Output type:   PDF
    [6/21/10 12:17:51 PM] [UNEXPECTED] [94508:RT451573] java.io.FileNotFoundException: /t01/demoap/inst/apps/DEMO_demo/logs/appl/conc/out/o451573.out (No such file or directory)
            at java.io.FileInputStream.open(Native Method)
            at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:241)
            at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:172)
    [6/21/10 12:17:51 PM] [94508:RT451573] Completed post-processing actions for request 451573.
    [6/21/10 12:19:19 PM] [OPPServiceThread0] Post-processing request 451577.
    [6/21/10 12:19:19 PM] [94508:RT451577] Executing post-processing actions for request 451577.
    [6/21/10 12:19:19 PM] [94508:RT451577] Starting XML Publisher post-processing action.
    [6/21/10 12:19:19 PM] [94508:RT451577]
    Template code: WILEXINVREP
    Template app:  ONT
    Language:      en
    Territory:     00
    Output type:   PDF
    [062110_121919525][][EXCEPTION] [DEBUG] ------- Preferences defined PreferenceStore -------
    [062110_121919526][][EXCEPTION] [DEBUG] ------- Environment variables stored in EnvironmentStore -------
    [062110_121919526][][EXCEPTION] [DEBUG]  [FND_JDBC_IDLE_THRESHOLD.LOW]:[-1]
    [062110_121919526][][EXCEPTION] [DEBUG]  [FND_JDBC_IDLE_THRESHOLD.LOW]:[-1]
    [062110_121919526][][EXCEPTION] [DEBUG]  [SECURITY_GROUP_ID]:[0]
    [062110_121919526][][EXCEPTION] [DEBUG]  [FND_JDBC_BUFFER_DECAY_INTERVAL]:[300]
    [062110_121919526][][EXCEPTION] [DEBUG]  [NLS_CHARACTERSET]:[US7ASCII]
    [062110_121919526][][EXCEPTION] [DEBUG]  [RESP_APPL_ID]:[-1]
    [062110_121919526][][EXCEPTION] [DEBUG]  [NLS_LANGUAGE]:[AMERICAN]
    [062110_121919526][][EXCEPTION] [DEBUG]  [FND_JDBC_BUFFER_MIN]:[1]
    [062110_121919526][][EXCEPTION] [DEBUG]  [FND_JDBC_BUFFER_MAX]:[2]
    [062110_121919526][][EXCEPTION] [DEBUG]  [NLS_NUMERIC_CHARACTERS]:[.,]
    [062110_121919526][][EXCEPTION] [DEBUG]  [APPS_JDBC_URL]:[jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS=(PROTOCOL=tcp)(HOST=demo.webbindia.com)(PORT=1527)))(CONNECT_DATA=(SID=DEMO)))]
    [062110_121919527][][EXCEPTION] [DEBUG]  [RESP_ID]:[-1]
    [062110_121919527][][EXCEPTION] [DEBUG]  [FND_MAX_JDBC_CONNECTIONS]:[500]
    [062110_121919527][][EXCEPTION] [DEBUG]  [FND_JDBC_USABLE_CHECK]:[false]
    [062110_121919527][][EXCEPTION] [DEBUG]  [USER_ID]:[-1]
    [062110_121919527][][EXCEPTION] [DEBUG]  [NLS_TERRITORY]:[AMERICA]
    [062110_121919527][][EXCEPTION] [DEBUG]  [FND_JDBC_PLSQL_RESET]:[false]
    [062110_121919527][][EXCEPTION] [DEBUG]  [FND_JDBC_CONTEXT_CHECK]:[true]
    [062110_121919527][][EXCEPTION] [DEBUG]  [NLS_DATE_FORMAT]:[DD-MON-RR]
    [062110_121919527][][EXCEPTION] [DEBUG]  [FND_JDBC_BUFFER_DECAY_SIZE]:[5]
    [062110_121919527][][EXCEPTION] [DEBUG]  [FND_JDBC_IDLE_THRESHOLD.HIGH]:[-1]
    [062110_121919527][][EXCEPTION] [DEBUG]  [NLS_SORT]:[BINARY]
    [062110_121919527][][EXCEPTION] [DEBUG]  [NLS_DATE_LANGUAGE]:[AMERICAN]
    [062110_121919527][][EXCEPTION] [DEBUG]  [LOGIN_ID]:[-1]
    [062110_121919528][][EXCEPTION] [DEBUG] ------- Properties stored in Java System Properties -------
    [062110_121919528][][EXCEPTION] [DEBUG]  [APPLTMP]:[/t01/demoap/inst/apps/DEMO_demo/appltmp]
    [062110_121919528][][EXCEPTION] [DEBUG]  [java.runtime.name]:[Java(TM) 2 Runtime Environment, Standard Edition]
    [062110_121919528][][EXCEPTION] [DEBUG]  [sun.boot.library.path]:[/t01/demoap/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/i386]
    [062110_121919528][][EXCEPTION] [DEBUG]  [java.vm.version]:[1.5.0_08-b03]
    [062110_121919528][][EXCEPTION] [DEBUG]  [OVERRIDE_DBC]:[true]
    [062110_121919528][][EXCEPTION] [DEBUG]  [dbcfile]:[/t01/demoap/inst/apps/DEMO_demo/appl/fnd/12.0.0/secure/DEMO.dbc]
    [062110_121919528][][EXCEPTION] [DEBUG]  [java.vm.vendor]:[Sun Microsystems Inc.]
    [062110_121919528][][EXCEPTION] [DEBUG]  [java.vendor.url]:[http://java.sun.com/]
    [062110_121919528][][EXCEPTION] [DEBUG]  [path.separator]:[:]
    [062110_121919528][][EXCEPTION] [DEBUG]  [APPLCSF]:[/t01/demoap/inst/apps/DEMO_demo/logs/appl/conc]
    [062110_121919528][][EXCEPTION] [DEBUG]  [java.vm.name]:[Java HotSpot(TM) Server VM]
    [062110_121919528][][EXCEPTION] [DEBUG]  [file.encoding.pkg]:[sun.io]
    [062110_121919528][][EXCEPTION] [DEBUG]  [user.country]:[US]
    [062110_121919529][][EXCEPTION] [DEBUG]  [sun.os.patch.level]:[unknown]
    [062110_121919529][][EXCEPTION] [DEBUG]  [java.vm.specification.name]:[Java Virtual Machine Specification]
    [062110_121919529][][EXCEPTION] [DEBUG]  [user.dir]:[/t01/demoap/inst/apps/DEMO_demo/logs/appl/conc/log]
    [062110_121919529][][EXCEPTION] [DEBUG]  [java.runtime.version]:[1.5.0_08-b03]
    [062110_121919529][][EXCEPTION] [DEBUG]  [CLIENT_PROCESSID]:[30369]
    [062110_121919529][][EXCEPTION] [DEBUG]  [java.awt.graphicsenv]:[sun.awt.X11GraphicsEnvironment]
    [062110_121919529][][EXCEPTION] [DEBUG]  [java.endorsed.dirs]:[/t01/demoap/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/endorsed]
    [062110_121919529][][EXCEPTION] [DEBUG]  [os.arch]:[i386]
    [062110_121919529][][EXCEPTION] [DEBUG]  [JTFDBCFILE]:[/t01/demoap/inst/apps/DEMO_demo/appl/fnd/12.0.0/secure/DEMO.dbc]
    [062110_121919529][][EXCEPTION] [DEBUG]  [java.io.tmpdir]:[/tmp]
    [062110_121919529][][EXCEPTION] [DEBUG]  [line.separator]:[
    [062110_121919529][][EXCEPTION] [DEBUG]  [java.vm.specification.vendor]:[Sun Microsystems Inc.]
    [062110_121919529][][EXCEPTION] [DEBUG]  [os.name]:[Linux]
    [062110_121919529][][EXCEPTION] [DEBUG]  [FND_JDBC_BUFFER_MIN]:[1]
    [062110_121919530][][EXCEPTION] [DEBUG]  [cpid]:[94508]
    [062110_121919530][][EXCEPTION] [DEBUG]  [sun.jnu.encoding]:[UTF-8]
    [062110_121919530][][EXCEPTION] [DEBUG]  [oracle.apps.fnd.common.Pool.leak.mode]:[stderr:off]
    [062110_121919530][][EXCEPTION] [DEBUG]  [java.library.path]:[/t01/demoap/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/i386/server:/t01/demoap/apps/tech_st/10.1.3/appsutil/jdk/jre/lib/i386:/t01/demoap/apps/tech_st/10.1.3/appsutil/jdk/jre/../lib/i386:/t01/demoap/apps/tech_st/10.1.3/lib32:/t01/demoap/apps/tech_st/10.1.3/lib:/t01/demoap/apps/apps_st/appl/cz/12.0.0/bin:/t01/demoap/apps/apps_st/appl/iby/12.0.0/bin:/t01/demoap/apps/apps_st/appl/pon/12.0.0/bin:/t01/demoap/apps/apps_st/appl/sht/12.0.0/lib]
    [062110_121919530][][EXCEPTION] [DEBUG]  [java.specification.name]:[Java Platform API Specification]
    [062110_121919530][][EXCEPTION] [DEBUG]  [java.class.version]:[49.0]
    [062110_121919530][][EXCEPTION] [DEBUG]  [sun.management.compiler]:[HotSpot Server Compiler]
    [062110_121919530][][EXCEPTION] [DEBUG]  [queue_appl_id]:[0]
    [062110_121919530][][EXCEPTION] [DEBUG]  [os.version]:[2.6.18-164.11.1.el5xen]
    [062110_121919530][][EXCEPTION] [DEBUG]  [LONG_RUNNING_JVM]:[true]
    [062110_121919530][][EXCEPTION] [DEBUG]  [user.home]:[/t01/demoap]
    [062110_121919530][][EXCEPTION] [DEBUG]  [user.timezone]:[GMT+05:30]
    [062110_121919530][][EXCEPTION] [DEBUG]  [java.awt.printerjob]:[sun.print.PSPrinterJob]
    --------------------------------------------------------------------------------lots of lines ----------------------------------------
    [GC 17474K->10837K(24648K), 0.0037890 secs]
    [GC 17685K->11057K(24648K), 0.0035530 secs]
    [GC 17905K->11271K(24648K), 0.0029030 secs]
    [GC 18119K->11488K(24648K), 0.0024650 secs]
    [GC 18336K->11702K(24648K), 0.0023940 secs]
    [GC 18550K->11919K(24648K), 0.0025010 secs]
    [GC 18767K->12133K(24648K), 0.0024460 secs]
    [GC 18981K->12344K(24648K), 0.0024020 secs]
    [GC 19192K->12575K(24648K), 0.0024790 secs]
    [GC 19423K->12781K(24648K), 0.0025650 secs]
    [GC 19629K->12991K(24648K), 0.0024010 secs]
    [GC 19839K->13212K(24648K), 0.0024430 secs]
    [GC 20060K->13427K(24648K), 0.0024160 secs]
    [GC 20275K->13641K(24648K), 0.0024440 secs]
    [GC 20489K->13857K(24648K), 0.0024410 secs]
    [GC 20705K->14073K(24648K), 0.0024570 secs]
    [GC 20921K->14284K(24648K), 0.0024340 secs]
    [GC 21132K->14504K(24648K), 0.0024580 secs]
    [GC 21352K->14719K(24648K), 0.0024620 secs]
    [GC 21567K->14935K(24648K), 0.0024600 secs]
    [GC 21783K->15151K(24648K), 0.0024360 secs]
    [GC 21999K->15365K(24648K), 0.0024180 secs]
    [GC 22213K->15004K(24648K), 0.0204220 secs]rgrds
    Edited by: new2appsdba on Jun 22, 2010 1:43 AM
    Edited by: new2appsdba on Jun 22, 2010 2:12 AM
    Edited by: new2appsdba on Jun 22, 2010 5:37 AM

  • REP-271468673 Saving report to pdf

    Report upgraded from Reports 6i to Developer 10g fails only when output to a pdf file with error REP-271468673. Report returns to screen without issue. Report output is 6k+ pages and 3.5k images.
    Can anyone offer assistance?

    hello,
    what you would have to do, is to create a table with a column BLOB and then use the functions of the DBMS_LOB package to read the PDF file from the filesystem into the database.
    sending a report via mail is done by using DESTYPE=MAIL and DESNAME=<receipient>
    regards,
    the oracle reports team
    null

  • Rep-1401: formula name : Fatal Pl/SQL error occured

    Hi,
    I am using report builder 6.0 and recently came across a error while running the report. Rep-1401:<formula name> : Fatal Pl/SQL error occured.
    I created a formula column in the report. In that i have three local variable.
    f_val number := 0;
    s_val number := 0;
    t_val number := 0;
    t_val := f_val/s_val ; --> this gives the above fatal error.
    t_val := (f_val + 1)/s_val; --> this gives the above fatal error
    t_val := f_val/(s_val + 1); ---> no error
    if i change the value of s_val
    s_val := 1;
    t_val := f_val/(s_val - 1) ; ----> this gives the above fatal error.
    Can anyone help me to solve this problem or is it report builder bug.
    Please help me, as i desperately need help.
    Thanks

    Thanks for ur reply.
    I used nvl too, but the same error occurred.
    For the information in my question I by mistake typed
    t_val := (f_val + 1)/s_val; --> this gives the above fatal error.
    but when the value of f_val = zero and s_val is zero why it gives fatal error when i divide, i used nvl on both the variable while dividing but still got the same error.
    but if s_val is greater than zero then no error occurs.
    please help me, I feel it is a bug.

Maybe you are looking for

  • JetPack 4G LTE connects but "no internet access" message

    Would appreciate any help. My JetPack 4G LTE mi-fi connects to the internet (3G or 4G) and shows that my devices are connected to it.  However, I cannot get on the internet. 1)  I have three different devices - two laptops and a smartphone.  All thre

  • Text file from sap - non-sap

    Hi , I am new to sap.I have task like Shipment history, customer orders, stock on hand, vendor purchase orders and some master data items for service parts are collected from SAP in a flat file format and imported into non sap on a monthly basis. A n

  • Can't bring up videos tab on my 3rd gen iPod touch

    As of late I haven't been able to bring up my videos using the button on the bottom of the touch screen. I can still watch music videos if use the search function or go through the music tab. When I press the video button the screen turns white for a

  • Help with external table authorization

    Hi Every One, I am using OBIEE 11.1.1.6. I have setup MSAD authentication through rpd and every user is able to login to analytics. And there is an external table in the database where I have all the user and their groups( all users in MSAD are in th

  • IllegalArgumentException: no ':' in URL

    Hi, I just dont know why when my MIDlet try to invoke my servlet program through web server. It gives java.lang.IllegalArgumentException: no ':' in URL. I really don't know why. Can anybody help? Pls. When user's press button to trigger this part: An