-Error function Substring Essbase

Hi all

I am using the SUBSTRING function, but it gives me this error. Anyone know why?


Fix (period,Currency,@descendants ("US_entities"), "Year", "Account #")
'real' = @SUBSTRING (@Name (@Parent (@currmbr ("US_entities"))), 5)-> "op exp"->"real" *-1;
ENDFIX



Error:
: 1200354 error compilation of the [law] (line 18) formula: type [NUMBER] is [STRING] ([@SUBSTRING]) expected in function [operator @MUL]


Thank you!

Try to encapsulate the substring function in a function @member. You need the ruturn of a member name not a string. Look at the example of @member in the technical reference for details

Tags: Business Intelligence

Similar Questions

  • Error "function not allowed for the license.

    Hi all

    I get error "Function not allowed for license" when I'm collecting details of a custom user interface card.
    The user interface card called a Business Service that calls a service program.
    I wrote a page for the service program service.
    This error indicates which license?

    I use the BCC 2.3.1 and Eclipse SDK 2.2.0.5.

    Check the Admin Menu-> Installation Options framework-> Modules available to see if any module is disabled.

    Then go to the Menu Admin-> Configuration-> Feature Type = Module of Configuration feature and delete an entry of a module where the power is off.

    Try again the user interface card

  • XQuery question fn:error function

    People,

    I want to use the integrated XQuery my custom XQuery function error function & propagate them to the OSB failure mechanism and was trying to do: -.

    MyCustomXQuery.xq


    declare function local: doesntContainDefaultValue ($siebelMessage1 as element(ns4:SiebelMessage), $processLineItem1 as element (ns1:processLineItem)) as XS: Boolean))
    {
    for $cmplxPrdtStructure in $siebelMessage1/ns4:ListOfVfProductOptions/ns4:InternalProduct/ns4:ListOfComplexProductStructureBuscomp/ns4:ComplexProductStructureBuscomp/ns4:ListOfComplexProductXaAttributeValueBuscomp/ns4:ComplexProductXaAttributeValueBuscomp
    for $pdtLineItem in $processLineItem1 / ns1:LineItem / ns1:Product
    where $cmplxPrdtStructure / ns4 = $pdtLineItem/ns1:lineItem/ns1:product/@ID:SAMProductId/text()
    and $pdtLineItem /:lineItem/ns1:product/ns1:attribute/ns1:name/text() = $cmplxPrdtStructure ns1 / ns4:DisplayName/text()
    and exists($pdtLineItem/ns1:lineItem/ns1:product/ns1:attribute/ns1:name)
    and empty($cmplxPrdtStructure/ns4:DefaultValue)
    and $cmplxPrdtStructure / ns4:Required/text() = 'Y '.
    return
    error ("'genericBusinessFault', ' consumer passed incomplete details to process the product")

    };

    Gives me a compilation error-

    Line 76, column 13: {err} XP0004, invalid static type: string {http://www.w3.org/XMLSchema}

    Any ideas what's not here? I use function error correctly?

    Thank you
    Buxant

    See w3c doc: http://www.w3.org/TR/xpath-functions/#func-error on a valid signature for error().

    The first argument must be a QName.

    FN:Error() because none
    FN: Error($Error As XS:QName) as none
    FN: Error($Error As XS:QName?, $description As XS:String) as none
    FN: Error ($error as XS: QName?,)
    $description as XS: String.
    ($error - object as item() *) as none

    Examples
    1 fn:error() returns http://www.w3.org/2005/xqt-errors#FOER0000 (or the corresponding XS: QName) to the external processing environment.

    2 fn:error (fn:QName('http://www.example.com/HR',_'myerr:toohighsal'), "Does not apply because salary is too high") returns http://www.example.com/HR#toohighsal and the XS: String "does not apply because salary is too high" (or the corresponding XS: QName) to the external processing environment.

    Concerning
    Carina

  • reference error function

    I have the following question

    Code:

    FUNCTION FN_FME_RPAD

    (

    p_s_cadena in TANK,

    ) RETURN VARCHAR2 IS

    v_c_Space VARCHAR2 (32767).

    BEGIN

    v_c_Space: = LPAD (p_s_cadena, 10, 'x');

    RETURN SUBSTR (v_c_Space)

    END;

    variable: = FN_FME_RPAD (p_s_cadena = > 'tricampeon_1981');   OK, that works perfectly ok

    from there, it gives me error

    Select FN_FME_RPAD (p_s_cadena = > name)-fails here

    in results

    of the customer;

    within the selection it gives me error pass by reference, but here works well

    Select FN_FME_RPAD (name) - it's ok

    in results

    of the customer;

    Then? This is what Solomon and I said... before 11 that does not allow notation named for the function parameters in sql...

  • function SUBSTRING OBIEE 11g

    Hi I have the following problem:

    I have field: 10/10/2014, I need to turn in 2014.

    I tried to use the substring like: substring ("field". "field" of 4 to 4) but I give the error message: ""

    The formula syntax is not valid.

    [nQSError: 10058] A general error occurred. [nQSError: 43113] The message returned by OBIS. [nQSError: 22020] Locate function does not support the types of non-text. (HY000)

    How can I turn this type of text? I tried to use the cast function, but it does not work, just on hold.

    Please let the front casting apply to string functions because you directly applying the string function under the date column.

    Substring (cast ("field". "field" as varchar (20)) of 4 of 4) "

    Try this...

    Thank you

    Prasanna

  • Satellite Pro A120 - error function keys not working and affected

    I have a Satellite Pro A120 PSAC1E-04Q00VEN.

    A couple of weeks, I started to have a dialog "Error of TouchED" to come to the start box (containing the message: 'Thotkey' recovery has no code error 0 X 00031402, 0x00000002) and at the same time the function keys did not work.

    I spent several hours as a result of the wide variety of questions that have been posted on this forum and elsewhere regarding this problem with computers laptop Toshiba, but nothing has worked. I reinstalled all the drivers from my initial backup disk, installed new drivers on the Toshiba site, updated the bios and restored the system to date before the problem started to occur. I also can't find Thotkey.exe everywhere on my machine.

    Can anyone help with this? It seems to be a common problem, for which he doesn't seem to be a definitive answer. Any useful response would be really appreciated.

    David

    Hey Buddy

    Go to the page of European driver of Toshiba.
    Select your laptop model and download and reinstall the tools and the following drivers:
    -Common module
    -Utilities for display devices Hotkey
    -Utilities
    -Wireless keyboard shortcut

    Check it out!

  • utility library error function string?

    I'm working on a library Error Handler, slaughtered most of these wonderful for a (Roberto!).  I can't find a generator of string of code error for the functions in the library of good content (in particular, functions like RenameFile, CopyFile, GetDir, SetDir, MakeDir, all file IO functions).

    Most people refer to types of maximum error tolerated with some explanations of plain text.  But there is no mention of a nice string code converter function, as it is in other libraries.  For example, for the RS232 library, there are GetRS232ErrorString.  Formatting & IO Library, there is GetFmtIOErrorString.

    I don't see it somewhere?  Inside the library of utilities, there is a function called CmtGetErrorMessage multithreaded error code.

    You are right: the library of Urility does not include a function that translates into a meaningful text error codes. I guess that it is due to the fact that error codes overlap in part, so a single function could not be used.

    For example, the-1 error means file not found in almost all file IO Library functions, but it translates into no file found matching the criteria of research GetFirstFile (), for not more files in GetNextFiles () and invalid parameters in MakePathname ().

    Another example: error-2 means GetFirstFile must be called before if returned by GetNextFile () and resulting path too long if returned by MakePathname ().

    And cela given that e/s file section of the library!

    While developing my own toolbox of utilities, I created the following function I know is far from perfect and covers only the file IO features:

    char * CVIFUNC GetULibFileIOErrMsg (int error)
    
    // Messages associated to error codes returned by functions in File Utilities class in Utility Library
    {
        switch (error) {
            case 0: return "Success";
            case -1:    return "One of the path component not found";
            case -2:    return "Resulting pathname longer than 260 chars";
            case -3:    return "General I/O error occurred";
            case -4:    return "Insufficient memory to complete operation";
            case -5:    return "Invalid path";
            case -6:    return "Access denied";
            case -7:    return "Specified path is a directory, not a file";
            case -8:    return "Disk is full";
            case -9:    return "New file already exists";
            default:    return "Unknown error";
        }
        return NULL;
    }
    
  • Error function not valid advapi32.dll on startup?

    asking again as my first accepts match failed.

    XP SP3 IE8 4 gig, amd phenom II 840 RAM

    No error of harware in Device Manager.

    I ran security scans, ad scans and antivrus sweeps, nothing helps.

    Reinstalled SP3 I found the only copy of functioning of the ADVAPI32. DLL in the subdirectory of MS and may not perform repair or reinstall from the disc with Service Pack 3 installed. This eliminated the problem and speeded up things a little for about 12 hours and then restart in the morning, everything went hiccups again.

    the biggest annoyance is that almost every program or file, I used to open immediately now takes more than 15 seconds.

    I have cleared the cache, temp files, uninstall files, and listen to the system with the cleaning disk, defragmentation, scandisk and other similar things. other missalligned files is nothing major to come several times.

    im hoping to spare me the gig to reinstall if possible.

    any help would be appreciated.

    Thanks in advance.

    Marking of one (or more) of my answers as RESPONSE will officially close your thread.

  • Error: Function of ms - dos invalid when copying on external drive with Windows 7

    FUNCTION OF MS BACK INVALID WHEN PLAYBACK EXTERNAL DRIVE WITH WIN 7

    Hello

    1. you try to save a data of the C drive on an external hard drive using the Windows backup feature?

    2 does this problem occur when you try to copy / paste normally?
    3. What is the accurate and complete error message?

    If you try to copy and paste the data manually, then try the fix to resolve the problem:
  • Error codes Interface Essbase/VBA

    Hi all

    I'm trying to get a worksheet updated with Essbase data using VBA/Esssbase interface but I am struck by the problems - HypCreateConnection returns an error code of-15 and I can't find a list anywhere error codes. If anyone could tell me where to find such a list, I would be very grateful indeed.

    In addition, this is my first post so if I managed to do something stupid like post it in the wrong place, I apologize in advance.

    Thanks in advance,

    Tony.

    they are all listed (containing little useful information) in the smartview.bas file while constants declared, -15 is parameter not valid.

    SS_INVALID_PARAM = - 15

    But if you check out the developer of smart guide, there is a description more detailed Developer Guide here

  • Forcing errors when loading essbase nonleaf data loading

    Hi all

    I was wondering if anyone had experience forcing data load errors when loadrules is trying to push the nonleaf members data in an essbase cube.

    I obviously ETL level to prevent members to achieve State of charge which are no sheet of error handling, but I would however like the management of the additional errors (so not only fix the errors).

    ID much prefer errors to be rejected and shown in the log, rather than being crushed by aggregation in the background

    Have you tried to create a security filter for the user used by the load that allows only write at level 0 and not greater access?

  • function SIERREUR function script essbase excel

    Hello

    How can I represent iferror excel script essbase calc function below. For example, if the values of B and C are null then the result is undefined.

    E = IFERROR (HAS * ((B/C) * D/1000), 0)

    What I have to write the below way or is there an essbase function to write it.

    (E)

    IF ("C" and "B' <>0 <>0)

    E = IFERROR (HAS * ((B/C) * D/1000))

    ON THE OTHER

    « E » = 0 ;

    ENDIF ;)

    Rgds,

    Vish

    Hi Vishal - I am surprised B being zero results in an indefinite (or in Essbase, #Missing) result.  It should really be only C which has the effect, because of the division by zero problem.

    In all cases, the effects of different operations on #Missing and zero are listed in the technical reference: results of the operation on the #MISSING values and zero (0)

    A good solution would be to add "0" to the result of your equation, because (as you can see in the linked table) #Missing + 0 = 0.

    For example:

    (« E »

    'E' = (A * ((B/C) * D/1000)) + 0;

    )

  • Advanced Security manager-error initializing the Essbase API.

    Hello

    I installed OLAPUnderground > Security Manager Advanced for the export of all the safety of the user.  When I try to click connect he throws a connection error 'error of initialization of the Essbase API, unable to connect'. Someone knows this error before? Please let me know if I'm missing something.

    We currently use 11.1.2.3.500.

    Thank you

    Karim

    It seems that you did not create the windows environment variable:

    ESSBASEPATH

    D:\Oracle\Middleware\EPMSystem11R1\common\EssbaseRTC\11.1.2.0

    It's just an example path update to match your environment

    See you soon

    John

    http://John-Goodwin.blogspot.com/

  • -Error function of incompatible data types

    Hi all

    I created a function that will take 3 IN parameters and return the result in type. Here's the code.

    Created a table type:

    {code}

    CREATE OR REPLACE TYPE FEATURES_ROW_TYPE

    AS AN OBJECT

    (VARCHAR2 (100) OF THE ENVIRONMENT)

    MNR VARCHAR2 (100),

    GUID VARCHAR2 (100),

    USER_ID VARCHAR2 (1000).

    RGN VARCHAR2 (100),

    RGN_NM VARCHAR2 (5000).

    FEATURE_NAME VARCHAR2 (5000).

    DATE OF LAST_SIGON_DATE

    );

    CREATE OR REPLACE TYPE FEATURES_TABLE_TYPE

    AS THE FEATURES_ROW_TYPE TABLE;

    {code}

    Here's the function:

    {code}

    CREATE OR REPLACE FUNCTION FETCH_FEATURES_FN (P_ENVIRONMENT IN VARCHAR2,

    P_FEATURE_ID NUMBER,

    P_RGN IN VARCHAR2

    )

    RETURN FEATURES_TABLE_TYPE

    IS

    V_ROWS FEATURES_TABLE_TYPE: = FEATURES_TABLE_TYPE ();

    V_CUR_ENV VARCHAR2 (100);

    V_ENV VARCHAR2 (50);

    V_WHERE VARCHAR2 (1000);

    V_SQL VARCHAR2 (10000);

    BEGIN

    V_ENV: = '@DBL_ ' | P_ENVIRONMENT;

    V_CUR_ENV: = P_ENVIRONMENT;

    IF P_RGN = "ALL" THEN

    V_WHERE: = ' WHERE FD. WPP_FTR_IK = ' | P_FEATURE_ID;

    ON THE OTHER

    V_WHERE: = ' WHERE FD. WPP_FTR_IK = ' | P_FEATURE_ID | "AND FD. RGN = ' | '''' || P_RGN | '''';

    END IF;

    V_SQL: =.

    "WITH USER_DATA ' | ' ' ||

    "ACE" | ' ' ||

    ' (SELECT DISTINCT EB. GUID, AD. USER_ID_ACCT_AFFECTED AS USER_ID, MAX (TRANSACTION_TS) AS LAST_SIGNON_DATE ' | ' ' ||

    "TO WPP_EBIZ_ACCT" | V_ENV | '  EB'                                                                || ' ' ||

    "INNER JOIN WPP_SECURITY_AUDIT_LOG | V_ENV | ' AD'                                                   || ' ' ||

    ' ON EB. GUID = AD. USER_UNIQUE_ID_ACCT_AFFECTED ' | ' ' ||

    ' WHERE AD. APP_NAME = "consumer" AND AD. TRANSACTION_TYPE_CD = "SIGN_ON" AND AD. FEATURE_NAME = "sign" AND AD. TRANSACTION_RESULT_CD = "S" ' | ' ' ||

    ' GROUP BY EB. GUID, AD. USER_ID_ACCT_AFFECTED ' | ' ' ||

    '), ' || ' ' ||

    "FEATURE_DATA" | ' ' ||

    'AS '           || ' ' ||

    "(MY SEPARATE SELECT." MNR, EB. GUID, MY. RGN, RGN. RGN_NM, FTR. WPP_FTR_IK, FTR. NM AS FEATURES_SUPPORTED ' | ' ' ||

    "TO WPP_MBRSHP_ACCT" | V_ENV | "MY" | ' ' ||

    "INNER JOIN WPP_EBIZ_ACCT | V_ENV | ' EB WE MY. WPP_EBIZ_ACCT_IK = EB. WPP_EBIZ_ACCT_IK' | ' ' ||

    "INNER JOIN WPP_RGN | V_ENV | «RGN WE MY.» RGN = RGN. RGN_ID ' | ' ' ||

    "INNER JOIN WPP_RGN_APLCTN_STS | V_ENV | ' RGN_ST ON RGN_ST. RGN_ID = RGN. RGN_ID ' | ' ' ||

    "INNER JOIN WPP_FTR_APLCTN | V_ENV | ' FTR_APP ON FTR_APP. WPP_FTR_APLCTN_IK = FTR_APP. WPP_FTR_APLCTN_IK ' | ' '||

    "INNER JOIN WPP_FTR | V_ENV | "FTR ON FTR. WPP_FTR_IK = RDFS. WPP_FTR_IK' | ' ' ||

    ') ' || ' ' ||

    "SELECT DISTINCT"HINT1"LIKE ENVIRONMENT, | ' ' ||

    "FD. MNR, FD. GUID, UD. USER_ID, FD. RGN, FD. RGN_NM, FD. FEATURES_SUPPORTED ACE FEATURE_NAME, TO_DATE (TRUNC (UD. LAST_SIGNON_DATE)) AS LAST_SIGNON_DATE' | ' ' ||

    "FROM FEATURE_DATA INNER JOIN USER_DATA UD ON FD FD. GUID = UD. GUID ' | ' ' || V_WHERE;

    -DBMS_OUTPUT. PUT_LINE (V_SQL);

    RUN IMMEDIATELY V_SQL

    BULK COLLECT INTO V_ROWS;

    RETURN V_ROWS;

    END FETCH_FEATURES_FN;

    {code}

    When I tried to run as below.

    SELECT * FROM TABLE (FETCH_FEATURES_FN ('HINT1', 2, 'ALL'));

    but I get the error message

    ORA-00932: inconsistent data types: expected - was -.

    ORA-06512: at "KPGCPY. FETCH_FEATURES_FN', line 57

    00932 00000 - ' incompatible data types: wait %s %s got. "

    * Cause:

    * Action:

    Please guide to solve this problem.

    Thank you

    So after running actual query:

    -DBMS_OUTPUT. PUT_LINE (V_SQL);

    You said the line that will do.

    Firstly - I suggest replace this long, complex query with a VERY SIMPLE one until your code actually works.

    When you do this, you will see that the TYPE that you defined (FEATURES_ROW_TYPE) is NOT mentioned anywhere in your code.

    You need create instances of this TYPE, then a collection of these instances.

    Some EXAMPLES of code that shows what I mean by VERY SIMPLE and shows how interrogate instances of a TYPE in a collection

    -type to match record emp

    create or replace type emp_scalar_type as an object

    (EMPNO NUMBER 4,

    ENAME VARCHAR2 (10),

    USE VARCHAR2 (9).

    MGR NUMBER 4,

    HIREDATE DATE,

    NUMBER OF SAL (7, 2)

    NUMBER OF COMM (7, 2)

    DEPTNO NUMBER (2)

    )

    /

    -records of the emp table

    create or replace type emp_table_type to table of emp_scalar_type

    /

    declare

    TB emp_table_type;

    sys deptnoList. OdciNumberList;

    BEGIN

    Select emp_scalar_type (empno, ename, job, mgr, hiredate, sal, comm, deptno)

    bulk collect into tb emp;

    Collect SELECT deptno in bulk

    IN deptnoList

    DEPARTMENT where deptno not in (select deptno table (tb));

    I'm looping 1.deptnoList.count

    dbms_output.put_Line (deptnoList (i));

    end loop;

    END;

    40

    Try this code and work with it until you understand what makes each piece.

    Select emp_scalar_type (empno, ename, job, mgr, hiredate, sal, comm, deptno)

    bulk collect into tb emp;

    See how this SIMPLE query creates instances of the EMP_SCALAR_TYPE and then use COLLECT in BULK to put them in the collection?

    Modify your code to use a SIMPLE QUERY like in my example, until you get the code to work.

  • I get the message "Muse JSAssert: selection of call error function" when I opened my page on explore.

    Hello Adobe

    I created a homepage using Adobe Muse

    & I posted it to [email protected] using muse.

    And I'm warning sign saying "the appellant error selector function.

    It's weird this message does not appear on Safari.  It appears only on PC internet Explorer.

    Can you help me please?

    Link: [email protected]

    Well, I found the problem...  That's the problem with hyperlinks...

    I got rid of them and its working great now

    Thank you

Maybe you are looking for

  • I'm actually on it a fuse

    HAhahahahahahahah I'll go crazy. So, let me emphasize on what is making me go through the wall. Now, you have to understand, I love Apple as much as anyone else does. However, how in the real * do you 'unforget' a devoce on Bluetooth more? And if you

  • Pressure sensor ground loop problem

    Hello I have an interesting problem, I hope someone can help me with. I'm measuring pressure with a pressure sensor.  We see a lot of noise with the measure, and I believe that we have a ground loop.  I have checked the noise is 60 Hz.  What is inter

  • Audio laptop does not

    PC Info: Manufacturing: Hewlett-Packard Model: HP Pavilion dv6 Notebook PC Processor: Intel (r) Core is CPU - 2410M to 2.30 GHz Installed memory: 6.00 GB RAM System type: 64-bit Operating System Operating system: Windows 7 Home Premium Product #: LW2

  • Why KB2538242 etc. must require the old files vcredist.msi (to uninstall the old stuff)?

    First of all, some "background story":The old facilities must be uninstalled with their files vcredist.msi of origin before the end of the new facility. Is he missing the old files, .msi, Microsoft Update still believes that the update is successful,

  • I am using windows update, it stops and I get a 0x8024800A error code

    I am using windows update to my windows xp pro.  It stretches on a bit and then stops with a 0x8024800A error code.  Gives me a warning "the site has encountered a problem and cannot display the page you are trying to view.  Tried to use the fix - it