Error in formula function (ROUTINE_18) record 1

Hi All,
We are loading a flat file in to a DSO. From here we are loading the data from DSO to a cube (using this DSO as a Export datasource). In the export datasource infopackage, we are giving date in the selection screen and loading the data. before it is working fine. Now when we try to load the data, i am facing the error " Error in formula function (ROUTINE_18) record 1" and the data was not moving from the PSA to the infocube.
Recently we have upgraded the BI system from 7.0 version to 7.3.
Please let me know the reasong for the failure and how to correct it.
I have replicated the Export datasource and even i re-generated the DSO as export datasource but no use and getting the same error.
Thanks,
jack

Ok...you have a BW 3.5 flow.
As you said you have selection at InfoPackage level. Please check whether the InfoPackage without selection works or not.
If it works then you have the problem in Selection field.
Also check if there is any problem in Update Rule /Transfer rule
If you have selection routine written at InfoPackage level, create a new InfoPackage ( Full) and load .
Anindya
Edited by: Anindya Bose on Nov 3, 2011 11:01 AM

Similar Messages

  • Error in Formula Function

    Dear Experts,
    I tried to convert the fiscal period into calander month by using the following formula in transformation -
    FISCPER_CALMONTH( RIGHT( 3, PERBL ), 'v3', GJAHR, 0 )
    where PERBL is the Period block/year having the data like 2008004 & GJAHR is the fiscal year as I does not have posting period in data source or fiscal period, that is why i have to use the Period block/year.
    I am getting the problem while uploading the data into the cube. It gives me an error Error in a formula function (routine 82 ), record 1
    Please let me know how can i resolve this problem ??/
    Thanks
    neha

    Thanks for the response
    I test it in transformation.here it is giving an error message Error in rule test:
    Now please tell me what to do the next?
    Neha

  • Error while creating function with record type as return type

    Hi i tried the following code to get the nth highest sal using record type and function.
    CREATE OR REPLACE PACKAGE pack_rec_cur AS
    TYPE rec_type IS RECORD (
    name EMP.ename%TYPE,
    sal EMP.sal%TYPE);
      END;The above package is created
    CREATE OR REPLACE
      FUNCTION fun_rec_cur(n INT) RETURN pack_rec_cur.rec_type AS
       rec pack_rec_cur.rec_type;
        CURSOR cur_rec IS
          SELECT ename,sal
            FROM emp
             WHERE sal is not null
              ORDER BY DESC;
    BEGIN
    OPEN cur_rec;
      FOR i IN 1..n LOOP
       FETCH cur_rec into rec;
       EXIT WHEN cur_rec%NOTFOUND;
      END LOOP;
    CLOSE cur_rec;
    RETURN rec;
    END;   The above function is giving errors
    LINE/COL ERROR
    4/7      PL/SQL: SQL Statement ignored
    7/16     PL/SQL: ORA-00936: missing expression
    SQL> Could you please correct me where i'm doing mistake
    Thanks.

    You are missing the column name in order by clauase. Is it ename desc?
    CREATE OR REPLACE
      FUNCTION fun_rec_cur(n INT) RETURN pack_rec_cur.rec_type AS
       rec pack_rec_cur.rec_type;
        CURSOR cur_rec IS
          SELECT ename,sal
            FROM emp
             WHERE sal is not null
              ORDER BY ENAME DESC; ---added ename
    BEGIN
    OPEN cur_rec;
      FOR i IN 1..n LOOP
       FETCH cur_rec into rec;
       EXIT WHEN cur_rec%NOTFOUND;
      END LOOP;
    CLOSE cur_rec;
    RETURN rec;
    END;  
    -OUTPUT
    SQL> SET SERVEROUT ON
    SQL>
    SQL> DECLARE
      2     rec            pack_rec_cur.rec_type;
      3  BEGIN
      4     rec         := fun_rec_cur (6); --you get the 6th record in order of ename desc
      5     DBMS_OUTPUT.put_line ('ename::' || rec.NAME || '  sal ::' || rec.sal);
      6  END;
      7  /
    ename::MARTIN  sal ::1250
    PL/SQL procedure successfully completed.
    SQL>

  • Admin Cockpit 0TCT_C21: Error in Formula Func(routine_0001)

    Hi all
    The load to 0TCT_C21 cube for Process Statistics is getting failed. The error is 'Error in Formula Func(ROUTINE_0001), record 1'. I suppose this has to do with the Calander Day formula in the update rule. Has anyone found any notes for this issue, as this looks like a tecnical error.
    Any input is appreciated.
    Thanks.

    Hi Smitha,
        What is Support pack are you now? You need to be at the latest support pack. If you are in Support pack 12 or 13. ?You may need to modify the transfer rule manually as mentioned in this OSS note 979721.
    hope it helps,
    Cheers,
    Balaji

  • Error in a formula function (routine 66 ), record 4,161 RSAR 535

    Hi Experts,
    I am facing this issue while loading form DSO to Cube. So i am using
    Maximum Number of Errors per Pack  more then 1000 to skip the error records.
    In Error stack i get the below error :
    Error in a formula function (routine 66 ), record 4,161 RSAR 535
    Can any body help me on this.
    Thanks in advance
    Mohan.

    i am doing datamart load ie DSO to cube
    so while loading in DTP in update tab i have selected max no of error recods to be skipes = 9000 this will ignore the records if at all there are error records in the flow.
    i know there are few records. but what i want is to identify wht the error in the record is
    when i try to chk the records in Error stack if i selet  a record to change with change mode i also get a pop up with the error msg
    Re: Error in a formula function (routine 66 ), record 4,161 RSAR 535
    Which i dont really under stand what and were the error is
    i even compared the data of correct record which is alredy processed to the cube.
    I could not find much difference
    mohan.

  • Error in a formula function (routine ROUTINE_9998), record 0

    Hi Experts,
    i have an issue while loading from cube to ODS. The load fails with the following message:
    Data records for package 1 selected in PSA - 1 error(s)
    Record 0 :Error in a formula function (routine ROUTINE_9998 ), record 0
    Please help me... Thanks in Advance!

    Hi,
    Prob, it could be passing invalid date to DATE_WEEKDAY!() function.
    Regards,
    -Vj
    Edited by: Vijaya Bhaskar Bodanapu on Jan 16, 2009 3:24 PM
    Edited by: Vijaya Bhaskar Bodanapu on Jan 16, 2009 3:25 PM

  • Error in a formula function (routine ROUTINE_0002 ), record 1

    Dear Guru's
    I am trying to load data into a ODS and i am facing the following problem in  the PSA maintance it self.
    *@5C@     Error in a formula function (routine ROUTINE_0002 ), record 1     RSAU     510     *
    So any one please give me some suggestions........
    Thanks in Adv,
    Dev

    Hi Srinivas dev,
        Just check the key define for the ODS, and the Record for that line where it is giving error at PSA. I think there is no value for the Key maintain for the ODS.
    Assign Points if helpful.
    Regards,
    Rajdeep Rane.

  • Record 1 :Error in a formula function (routine ROUTINE_0001 ), record 1

    Hi ALL,
                   i ran the infopackge.load was failed.failed request is showing Record 1 :Error in a formula function (routine ROUTINE_0001 ), record 1 .why this error is coming.how can i solve this issue?
    Thanks,
    chandu

    Hi Chandra,
    Must be error in transfer rules. Conversion error in transfer routine or format error in file.If it is go to debugger and check.
    Hope you have got the hint
    thanks
    udaykiran

  • Error in a formula function

    Hi,
    i ran the infopackge.load was failed.failed request is showing Record 1 :Error in a formula function (routine ROUTINE_0001 ), record 1 .why this error is coming.how can i solve this issue?
    Thanks,
    Ali

    Hi,
    As refered by the posts above , you need to edit the data in to PSA, now try going through the procedure below:
    1. Once data is loaded till PSA , ther will be a "process Manually Tab" in the status of the ip, press that.
    2. Now you will get the error in the processing packets .
    3.make the IP red , delete the failed request from target( Info cube), sice for DSO there is a specific procedure.
    4.now go bak to ip click on the psa tab, the error displays record '1', so select the first record in PSA, put the size of the record in the no. of error records and select " error record".
    5. now you will se this error record in the PSA.
    6. Click on the edit record , you will se the canonical structure of the record with its field.
    7. No try editing th record for there might be a entry which seems to be diff from other(compare with correctly loaded records).
    8. edit it , save the changes.
    9. now either recostructing the PSA or manually pushing the failed request to target.
    Hope this will serve your cause
    Thax & Regards
    Vaibhave Sharma

  • Type error while calling function module with in FOX formula

    Hi,
    I am getting following error while calling function module from FOX Formula:
    "Types of parameter DAY_IN () and variable J_CALDAY(D) are inconsistent"
    Following is the code:
    DATA    I_CALDAY       TYPE  0CALDAY.
    DATA    N_CALDAY       TYPE  0CALDAY.
    DATA    KYF              TYPE KEYFIGURE_NAME.
    FOREACH   I_CALDAY, KYF.
       CALL FUNCTION SLS_MISC_GET_LAST_DAY_OF_MONTH
          EXPORTING
             DAY_IN  =  I_CALDAY
          IMPORTING
             LAST_DAY_OF_MONTH = N_CALDAY.
        {KYF, N_CALDAY}  =  {KYF, L_CALDAY}.
    ENDFOR.
    Import parameter DAY_IN is of type sy-datum (that inturn is data element SYDATUM of data type DATS - same as 0CALDAY). Not sure why error is being thrown. Any idea? Thanks.
    Edited by: SAP_BOY on Dec 4, 2009 5:26 PM

    Hi,
    I think It will not identify ,though you have  (data element SYDATUM of data type DATS - same as 0CALDAY).Check it out by assigning it through a variable of type D.
    Data I_CALDAY TYPE D.
    Hope it may work out.
    Regards,
    Indu

  • BW prod: 'error in a formula function'

    We have problem RSAR 194 ('error in a formula function') in data load.
    We use the following formula functions between IS and ODS (transfer/update rules):
    FISCPER_CALMONTH( MONAT, FISCVAR, LEFT( 4, FISCPER ), 0 )
    LEFT( 4, CALMONTH_FISCPER( CALMONTH, 'V3', 0 ) )
    RIGHT( 3, CALMONTH_FISCPER( CALMONTH, 'V3', 0 ) )
    DATE_FISCPER( ADD_TO_DATE( CONCATENATE( DATE_MONTH( SYST-DATUM ), '01' ), 1- ), 'V3' )
    The problem occurs with data load from R/3 production, but just in the BW production environment:
    in the BW development environment, the same data load process works properly.
    (note that the development environment has been transported into the production environment without applying any changes,
    so the production environment is the same as the development environment).
    Both the develpment and the production environment have BW release 3.5 (on AIX/Oracle), with support package 14.
    Related notes: notes 652706 and 690772 refer to the same problem but with BW relaeses 3.0-3.1;
    note 798787 refer to the same problem also with BW 3.5 release but with support package prior to 11.
    None ot them reports differences between development and production environments.
    Does someone know how to solve this problem?
    Thanks,
    Massimo

    Hi massimo,
      'V3' is fiscvariant..?, check this is available in Production or not.
       Check any dumps in st22. you will get some more info. and alos see the details tab in monitor.
    Srini

  • Error optimizing formula for [mbrName]: argument [] may not have size [] in function []

    Hi all,
    Please help me
    I wrote the following script:
    182        "Commercial income tax"(
    183             IF ( "Payment of principal - Short-term" <> #MISSING)
    184                   "Commercial income tax" = 1;)
    It throws following error:
              Error:Error optimizing formula for [Commercial income tax] (line 182): argument [2] may not have size [-4] in function [@NE] Rule PandL.
    What the meaning of these word?
    argument [2]
    size [-4]
    Is there another way of accomplishing the above?

    Yeah, Anthony,
    I ve just written Calculation Scripts 6 month ago.
    Your question:  "Commercial income tax" and the "Payment of principal - Short-term" members are Accounts ?
    My Answer: Yes, they are.
    My full IF statement:
    182        "Commercial income tax"(
    183             IF ( "Payment of principal - Short-term" <> #MISSING)
    184                   "Commercial income tax" = 1;
    185             ELSEIF ( "Payment of principal - Short-term" == #MISSING)
    186                   "Commercial income tax" = #MISSING;
    187            ENDIF;)
    Warning Error:
              Error:Error optimizing formula for [Commercial income tax] (line 182): argument [2] may not have size [-4] in function [@NE] Rule PandL
    It is not Error if I write following Script:
    182        "Commercial income tax"(
    183             IF ( "Payment of principal - Short-term" <> 0 or "Payment of principal - Short-term" == 0)
    184                   "Commercial income tax" = 1;
    185             ELSEIF ( "Payment of principal - Short-term" <> 0 and "Payment of principal - Short-term" != 0)
    186                   "Commercial income tax" = #MISSING;
    187            ENDIF;)

  • Error executing formula :scalar double argument expected in function [@DIV]

    Hi,
    I'm getting the following error when I try to run this calc. The syntax check says ok, but the calc won't run. I don't understand what the [@DIV] means ... Can someone help? Thanks!
    Error executing formula for [Alloc Factor] (line 0): scalar double argument expected in function [@DIV]
    sts = 1200400 CalcObject = DBadDebt
    Command Failed. Return Status = 1200400
    Fix(&Cscenario,@descendants("Currency"))
    /*Direct allocation for BNA cost center 10471*/
    FIX("Not Applicable Cost Center",CYTDC,"Bosch Power Tools Corded","Bosch Power Tools Cordless","Canada")
         "Alloc Factor"("Bad Debt" =
         "Net_Sales"->Input->&Cscenario /
         ("Net_Sales"->&Cscenario->"Canada"->"Bosch Power Tools"->Input);)
    ENDFIX
    FIX("Canada","Not Applicable Cost Center",CYTDC, "Bad Debt",@CHILDREN("Bosch Power Tools"))
    "Direct Alloc"("Bad Debt"="Alloc Factor"->"Bad Debt"*
    ("Input"->"Other Operating Income and Deductions"->"10471"->"Not Applicable Brand"->"Not Applicable Region"->"Current YTD");)
    ENDFIX
    /*Direct allocation for ACN cost center 10472*/
    FIX("Not Applicable Cost Center",CYTDC,"Bosch Accessories","Skil Accessories","VA Accessories","Canada")
         "Alloc Factor"("Bad Debt" =
         "Net_Sales"->Input->&Cscenario /
         ("Net_Sales"->&Cscenario->"Canada"->"Accessories"->Input);)
    ENDFIX
    FIX("Canada","Not Applicable Cost Center",CYTDC, "Bad Debt",@CHILDREN("Accessories"))
    "Direct Alloc"("Bad Debt"="Alloc Factor"->"Bad Debt"*
    ("Input"->"Other Operating Income and Deductions"->"10472"->"Not Applicable Brand"->"Not Applicable Region"->"Current YTD");)
    ENDFIX
    /*Direct allocation for SNA cost center 10470*/
    FIX("Not Applicable Cost Center",CYTDC,"Skil Power Tools Corded","Skil Power Tools Cordless","Canada")
         "Alloc Factor"("Bad Debt" =
         "Net_Sales"->Input->&Cscenario /
         ("Net_Sales"->&Cscenario->"Canada"->"Skil Power Tools"->Input);)
    ENDFIX
    FIX("Canada","Not Applicable Cost Center",CYTDC, "Bad Debt",@CHILDREN("Skil Power Tools"))
    "Direct Alloc"("Bad Debt"="Alloc Factor"->"Bad Debt"*
    ("Input"->"Other Operating Income and Deductions"->"10470"->"Not Applicable Brand"->"Not Applicable Region"->"Current YTD");)
    ENDFIX
    /*Direct allocation for MT cost center 10473*/
    FIX("Not Applicable Cost Center",CYTDC,"Measuring Tools","Canada")
         "Alloc Factor"("Bad Debt" =
         "Net_Sales"->Input->&Cscenario /
         ("Net_Sales"->&Cscenario->"Canada"->"Measuring Tools"->Input);)
    ENDFIX
    FIX("Canada","Not Applicable Cost Center",CYTDC, "Bad Debt","Measuring Tools")
    "Direct Alloc"("Bad Debt"="Alloc Factor"->"Bad Debt"*
    ("Input"->"Other Operating Income and Deductions"->"10473"->"Not Applicable Brand"->"Not Applicable Region"->"Current YTD");)
    ENDFIX
    /*Direct allocation for Service cost center 10474*/
    FIX("Not Applicable Cost Center",CYTDC,"Measuring Tools","Canada")
         "Alloc Factor"("Bad Debt" =
         "Net_Sales"->Input->&Cscenario /
         ("Net_Sales"->&Cscenario->"Canada"->"Skil Parts Brand","Bosch Parts Brand"->Input);)
    ENDFIX
    FIX("Canada","Not Applicable Cost Center",CYTDC, "Bad Debt","Skil Parts Brand","Bosch Parts Brand")
    "Direct Alloc"("Bad Debt"="Alloc Factor"->"Bad Debt"*
    ("Input"->"Other Operating Income and Deductions"->"10474"->"Not Applicable Brand"->"Not Applicable Region"->"Current YTD");)
    ENDFIX
    endfix

    Hello Stella Jones,<BR><BR>The error message means:<BR><BR>##1200400 Error %s formula for [%s] (line %s): scalar double argument expected in function [%s]<BR><BR>Is the same post of Jstrater above......<BR><BR>

  • Data error for formula

    at transformations i have formula
    FISCPER_FISCYEAR( FISCVAR, FISCPER )
    can i modify my formula, i am using standard cube 0pu_co2  datasource is 0PU_IS_PS_44
    while loading data from psa to dso i am getting error
    @5C@     Error in a formula function (routine 24 ), record 2     RSAR     535          @3R@

    Hi Suneel,
    To derive FISCYEAR from FISCPER u can use the formula
    fiscper+0(4)
    hope it helps
    Regards,
    Rathy

  • Error in UseOneAsMany Function Error in SAP XI

    Error in UseOneAsMany Function Error in SAP XI
    Hi Experts,
    I am trying the Example of function UseOneAsMany. My Input and Output XML Files are provided below:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_MM4 xmlns:ns0="http://test/mapping.test">
       <Header>
          <MatNo>MatNo</MatNo>
          <MatDesc>MatDesc</MatDesc>
       </Header>
       <Item>
          <MatNo>MatNo1</MatNo>
          <ItemNo>ItemNo1</ItemNo>
          <MatGroup>MatGroup1</MatGroup>
          <Mattype>Mattype1</Mattype>
          <Plant>Plant1</Plant>
       </Item>
       <Item>
          <MatNo>MatNo2</MatNo>
          <ItemNo>ItemNo2</ItemNo>
          <MatGroup>MatGroup2</MatGroup>
          <Mattype>Mattype2</Mattype>
          <Plant>Plant2</Plant>
       </Item>
    </ns0:MT_MM4>
    My Expected Output should be :
    <?xml version="1.0" encoding="UTF-8"?>
    -<ns0:MT_MM4R xmlns:ns0="http://test/mapping.test">
    -<Header>
    <MatNo>MatNo</MatNo>
    <MatDesc>MatDesc</MatDesc>
    <MatGroup>MatGroup1</MatGroup>
    </Header>
    -<Item>
    <MatNo>MatNo1</MatNo>
    <ItemNo>ItemNo1</ItemNo>
    <Mattype>Mattype1</Mattype>
    <Plant>Plant1</Plant>
    </Item>
    -<Header>
    <MatNo>MatNo</MatNo>
    <MatDesc>MatDesc</MatDesc>
    <MatGroup>MatGroup2</MatGroup>
    </Header>
    -<Item>
    <MatNo>MatNo2</MatNo>
    <ItemNo>ItemNo2</ItemNo>
    <Mattype>Mattype2</Mattype>
    <Plant>Plant2</Plant>
    </Item>
    </ns0:MT_MM4R>
    But for me Headers are coming first and then followed by two items. Please let me know how to solve the issue and also please provide the explanation.
    Thanks,
    GIRIDHAR

    Hello,
    Change ur structure little bit (add parent node "Record") and then use java mapping pasted in below blog to remove Record node to get ur desired structure.
    File Conversion using 'Nodeception'
    <?xml version="1.0" encoding="UTF-8"?>
    -<ns0:MT_MM4R xmlns:ns0="http://test/mapping.test">
    <Record> --- 0..Unbounded
    -<Header>
    <MatNo>MatNo</MatNo>
    <MatDesc>MatDesc</MatDesc>
    <MatGroup>MatGroup1</MatGroup>
    </Header>
    -<Item>  
    <MatNo>MatNo1</MatNo>
    <ItemNo>ItemNo1</ItemNo>
    <Mattype>Mattype1</Mattype>
    <Plant>Plant1</Plant>
    </Item>
    </Record>
    <Record>
    -<Header>
    <MatNo>MatNo</MatNo>
    <MatDesc>MatDesc</MatDesc>
    <MatGroup>MatGroup2</MatGroup>
    </Header>
    -<Item>
    <MatNo>MatNo2</MatNo>
    <ItemNo>ItemNo2</ItemNo>
    <Mattype>Mattype2</Mattype>
    <Plant>Plant2</Plant>
    </Item>
    </Record>
    </ns0:MT_MM4R>
    Thanks
    Amit Srivastava

Maybe you are looking for

  • Exception handling in synchronous client proxy

    Hi, I have a synchronous outbound proxy-web service scenario. If our Post request (unknown data in the receiver) fails, the receiver system returns a 404 error that results in application error in PI. Now, I want know how to handle CX_AI_APPLICATION_

  • Uploaded images lost

    Hi, once again the images I uploaded to AppStudio are lost. The upload URL gets a 404 error. They happened to work some time ago, but now they seem to be gone. Example: https://waspro.blob.core.windows.net/apps/48393/3cbc24fb-7e08-49da-a6cd-0bc48e146

  • Process of MSIE

    if i have already get the process by open a browser with a specified url, is it possible to read the corresponding webpage source code by process.getInputStream()? or say, does it return the html stream? thanks posted on p2p.wrox.com howto sections

  • I purchased photoshop cs5 for windows and want to install a license on my new MacBook Pro?

    Is there a way that I can exchange my serial number for my third license for one that is compatible with Mac?

  • Networking an external drive through TC ethernet connection.

    I hope someone can help with this. I have a 1TB Time Capsule which is almost full. I got a Seagate free agent dockstar drive (1TB). The plan was to link it to the TC via the 1GB ethernet connection and move my iTunes library to it (freeing up a ton o