ODI to Essase Metadata - formula with double quote error.

Hi all

We update Essbase Metadata ODI. We have sql table where all requirements of columns for metadata download is here.

The formula is to have "quotes" in the formula column.

When he get transferred to Essbase. The double quotes are not getting updated and so the formula is seen as loaded error formula.

So how do you remedy this? Please suggest.

Thank you
Alex keny.

"' Try to use something like -" formula or member name \ ".

See you soon

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

Tags: Business Intelligence

Similar Questions

  • CSV with double quotes

    Hello

    I had tough time trying to figure out how to read a CSV with quotes, I need to read a csv file in order to fill out a worksheet.

    I am attaching a sample csv file to display the type of file, that I'm trying.

    Thank you

    After inspection, you're right, it's a trick question.  You need commas that follow an even number of quotes for separators.  Since my previous statement was not converted, I assume that you have an earlier version of LV, so I have attached an example of 8.6.  You can get rid of the quotes if you like (exercise for the reader).

  • sqlldr when clause with double quotes

    Hi all

    I have a requirement to load the .dat data in two tables based on 2 conditions.

    EMP.dat

    "HH", "21 JULY 2014", 2 320.00.

    "D", "E1", "London", 120.00

    "D", "emp2', 'Read', 200.00

    'FF', 2

    Control file

    OPTIONS (ERRORS = 100)

    DOWNLOAD THE DATA

    INFILE ' / home/interface/EMP.dat'

    REPLACE

    IN TABLE XX. XX_EMP_CONTROL

    WHEN (1) = 'HH '.

    FIELDS ENDED BY ',' OPTIONALLY SURROUNDED "" "

    TRAILING NULLCOLS

    (

    RUN_NUMBER POSITION (4),

    DATE OF PAYMENT_RUN_DATE,

    RECORD_COUNT,

    FILE_TOTAL

    )

    IN TABLE XX. XX_EMP_DETAIL

    WHEN (1) = A '

    FIELDS ENDED BY ',' OPTIONALLY SURROUNDED "" "

    TRAILING NULLCOLS

    (

    EMP_NAME POSITION (3),

    LOCATION,

    AMOUNT

    )

    When I run the program sqlldr, no data is transferred. If I remove the quotes in the data file, the data from loading successfully. Could someone guide me how I can read these data please?

    Thank you

    sheebs

    Scott@orcl12c > emp.dat TYPE of HOST

    "HH", "21 JULY 2014", 2 320.00.

    "D", "E1", "London", 120.00

    "D", "emp2', 'Read', 200.00

    'FF', 2

    Scott@orcl12c > test.ctl TYPE of HOST

    OPTIONS (ERRORS = 100)

    DOWNLOAD THE DATA

    INFILE 'EMP.dat '.

    REPLACE

    IN THE XX_EMP_CONTROL TABLE

    WHEN run_number = 'HH '.

    FIELDS ENDED BY ',' OPTIONALLY SURROUNDED "" "

    TRAILING NULLCOLS

    (

    RUN_NUMBER,

    DATE OF PAYMENT_RUN_DATE,

    RECORD_COUNT,

    FILE_TOTAL

    )

    IN THE XX_EMP_DETAIL TABLE

    WHEN fill1 = has '

    FIELDS ENDED BY ',' OPTIONALLY SURROUNDED "" "

    TRAILING NULLCOLS

    (

    POSITION FILLING fill1 (1),

    EMP_NAME,

    LOCATION,

    AMOUNT

    )

    Scott@orcl12c > xx_emp_control CREATE TABLE

    2 (run_number VARCHAR2 (3),)

    3 payment_run_date DATE,

    4 record_count NUMBER,

    5 file_total NUMBER)

    6.

    Table created.

    Scott@orcl12c > xx_emp_detail CREATE TABLE

    2 (emp_name VARCHAR2 (15),)

    3 location VARCHAR2 (15).

    4 amount NUMBER)

    5.

    Table created.

    Scott@orcl12c > HOST SQLLDR scott/tiger CONTROL = test.ctl LOG = test.log

    SQL * Loader: release 12.1.0.1.0 - Production on Mon Jul 21 10:46 2014

    Copyright (c) 1982, 2013, Oracle and/or its affiliates.  All rights reserved.

    Path used: classics

    Commit the point reached - the number of logical records 4

    Table XX_EMP_CONTROL:

    1 row loaded successfully.

    Table XX_EMP_DETAIL:

    2 rows loaded successfully.

    Check the log file:

    test.log

    For more information on the charge.

    Scott@orcl12c > SELECT * FROM xx_emp_control

    2.

    RUN PAYMENT_RUN_DAT RECORD_COUNT FILE_TOTAL

    --- --------------- ------------ ----------

    Monday, July 21, 2014 2 HH 320

    1 selected line.

    Scott@orcl12c > SELECT * FROM xx_emp_detail

    2.

    EMP_NAME PLACE AMOUNT

    --------------- --------------- ----------

    London E1 120

    EMP2 reading 200

    2 selected lines.

  • replace a single quote with the double quotes with the function replace

    I work with one apex page, which contains a text as a filter box. If I put a single quote and find then I get the error message saying that parse error.

    For this, I want to replace one single quotation mark with double quotes, so this should be perfect. and apex should show the result.

    A allow the query to the same which will replace the single quote with double quotes.

    Published by: Santhosh Kumar T 15 Sep 2008 05:13

    If it was confusing... Try the less confusion (according to you)! ...

    Select Replace ("ab" | ") "|' it," ',' "') twice;"

  • remove the double quotes in a value

    DB version: 10g / 11g

    Table customer_address
    column: adresse_rue
    data in the example: 'MLK 1234 drive '.
    'dr North 150, st #600'
    'o Henry 15678 dr.

    Update: reader of MLK 1234
    150 north dr, st #600
    Dr. Henry o 15678

    I'm looking to remove the double quotes (""), if this is the first and the last character.

    It would be nice to get these lines with values begins and ends with double-quotes


    Thank you for your time

    Published by: nydba on March 22, 2012 09:02

    One way:

    with a as (select '"1234 MLK drive"' x from dual
               union select '5678 JFK drive' from dual)
    select a.*,substr(x,2,length(x)-2) from a
    where x like '"%"';
    
    X                SUBSTR(X,2,LENGTH(X)-2)
    ---------------- -----------------------
    "1234 MLK drive" 1234 MLK drive        
    

    There is probably a more efficient way with regular expressions.

  • Replace the string, each value should double quotes around it

    How can I replace this basic string with double quotes around each value?

    dog, cat, john, mark

    I would like to:

    'dog', 'cat', 'john', 'brand '.

    Thank you

    -weStsIdE

    Hello

    I answered my own question. Well nice for someone else. The function ListQualify will insert what you need before and after each element of individual list.

    Actually powerful enough that you can just insert double quotation marks, for example around channels and leave intact numeric values.

    -weStSidE

  • Fields Publisher report with output .csv just double quotes. How we prevent it?

    Hi all

    If we create any report Publisher and you try to view or download .csv format, fields that have data with more than one word just double quotes. If data have one word, she comes out with proposals and seems correct.

    If we look in excel or data XML seems good with on proposals and did not observe this behavior.

    Version: 11.1.1.5

    Steps to reproduce:


    1 create a model of simple data in select * from scott.dept

    2. create a blank layout and a report to display the data.

    Note: Varchar Fields so has more than one word, it is another to one word in quotes it look ok.

    Sample:

    DEPTNO, DNAME, LOC

    10, ACCOUNTING,"NEW YORK"

    20, RESEARCH, DALLAS

    30, SALES, CHICAGO

    40, OPERATIONS, BOSTON

    Let know if anything missed on my side. Pointers or suggestions would be appreciated.

    Hi all, just re-collected has nothing to do with OBIEE. By default, .csv apply quotes on all fields with special characters or spaces according to its characteristics. Since this is a valid scenario from the point of view OBIEE too, I have to use scripts to remove the quotation marks. Because my data do not have quotes, I remove all citations of my reports after being delivered. Using command on my unix below box and wrote a script based on my needs and expected. $sed-i of / ' / / g' Report1.csv thank you Kiss.

  • ODI - remove a formula with source as a file

    Hello

    I accidentally put 'none' in each member account for the property of the "member form.  I use an ODI and a tab delimited as my source text file.   Is there a way to remove all the 'none' for the 'member formula' so they all go back to fair value NULL?

    none could easily be member name is the reason for which is used, it can be used to remove several different properties like alias or attributes. It is not only unique to ODI as it is used with the Outlineload utility as well.

    See you soon

    John

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

  • Double quotes in ASO cube formula Member UDA

    I have double-quotes in ASO MDX UDA.
    But when loading using the rules, the quotes file double are get deleted.
    Any suggestion how to fix this problem?

    Formula in file dim biuld
    --------------------------------------------------------------------------------------
    CASE
    WHEN (NO ISUDA ([scenario]. CurrentMember, 'VARSCN'))
    THEN ([CRNBS] / [CLRVT]) * 100
    END


    After dimbuild formula in become a Member
    --------------------------------------------------------------------------------------

    CASE
    WHEN (NO ISUDA ([scenario]. CurrentMember, VARSCN))
    THEN [589018] + [MGTI_EXC_AFF] + [GIT_ALLOC_PUR]
    END



    It is simple to remove the quotes on UDA VARSCN


    Thank you

    You need an escape character before each quote so that it can be passed through that the escape character is a backslash if your code should look like \"UDA\"

  • Problem with the removal of the double quotes in my channel

    Hi all

    I am trying to replace two double quotes in my thong in double apostrophe.

    < v21:ID schemeAgencyID = "" NGCRM"" >


    I need to convert it to < v21:ID schemeAgencyID = "NGCRM" >


    For that, I use my code as below.

    Input=input.replace("\"\"","\" ");

    but there is no change in the output.

    Kindly tell me the error in the present.



    Thank you
    Sabarisri. N

    Published by: N Sabarisri August 1, 2011 12:20

    Sabarisri N wrote:
    Hi all

    I am trying to replace two double quotes in my thong in double apostrophe.

    I need to convert it to

    For that, I use my code as below.

    Input=input.replace("\"\"","\" ");

    but there is no change in the output.

    Kindly tell me the error in the present.

    Thank you
    Sabarisri. N

    Published by: N Sabarisri August 1, 2011 12:20

    It'll work. Here is the test program

    class StringReplaceTest
    {
         public static void main(String st[])
         {
              String st1 = "";
              System.out.println(" The st1 : "+st1);
              System.out.println(" The out put is : "+st1.replace("\"\"","\""));
    
         }
    }
    

    replace the text makes the sequence checking and replaceAll of character against the regex mill.

  • double quote (apostrophe)

    Hello

    I have a variable that contains a french string with a quote: the experience...
    This string might come from XML file, text file or error messages.
    How is it possible to double the single quote to insert this string into a database?
    A simple insertion fails because the database does not accept:
    INSERT INTO VALUES xxx (#variable_name)

    I found a technical document for ODI: ID 867906.1, but this document does not explain how to double.

    Any tips are appreciated.

    Concerning

    Markus

    Your error says that this method was not found of java.lang.string.

    Do you know what version of Jython you have? This could be a problem in version!
    Mine is 2.1 Jython and Java 1.6 and I tried similar commands on the Windows command prompt

    $ODI_HOME\oracledi\bin>jython
    OracleDI: Starting Jython ...
    A JDK is required to execute Web Services with OracleDI. You are currently using a JRE.
    Jython 2.1 on java1.6.0_07 (JIT: null)
    Type "copyright", "credits" or "license" for more information.
    $ import java.lang
    $ v_var="abc'something"
    $ v_var1=v_var.replace("'","''")
    $ print v_var1
    abc''something
    $ print v_var
    abc'something
    $ v_var1=v_var.replace("'","''",2)
    $ print v_var1
    abc''something
    $ v_var1=v_var.replace("'","''",0)
    $ print v_var1
    abc'something
    

    Try to use v_var.replace("'","''",1) - this is an overloaded method that uses the third parameter as number of occurrences you want to replace.
    Also, try using java.lang import instead of import lang

  • Regular expression, replace all commas between double quotes ONLY

    Hello

    I want to remove all commas between double quotes:

    I tried under model, but it does not replace all if we have more than one comma in double quotes.

    SELECT REGEXP_REPLACE (123, "45.6" Hello, "John, Mike, Marc", 456, "-Anne, Anna"', ' "([^"]*),([^"]*)" ', '"\1;\2" ', 1, 0) suite

    FROM DUAL;

    Result

    --------------------------------------------------------------------------

    123, '45; 6"," Hello, "John, Mike;" "Marc", 456, "Anne-; Anna.

    the first comma between 'John, Mike; Marc"is not replaced...

    Recursion can do if you insist on the SQL solution

    with

    correct (INP, orig, CNT, res, Step) as

    (select str,

    substr(STR,2),

    -case when substr (str, 1, 1) = ""' then 1 else 0 end,

    substr (STR, 1, 1),

    1

    of (select 123, '45.6,' Hello, ' John, Mike, Marc ", 456, '-Anne, Anna', 'single_value' ' str of union double all the)

    Select "123456789" across double Union

    Select ' ""' of all the double union

    Select "" 123,456,789"" Union double all the

    Choose 123, '45.6,' Hello, ' John, Mike, Marc ", 456, 'Ann-Marie, Anna', 'unique value' ' double str

    )

    Union of all the

    Select the inp

    substr(orig,2),

    CNT + case when substr (orig, 1, 1) = ""' then 1 else 0 end,

    RES | cases where substr (orig, 1, 1) = ','

    so to case when mod(cnt,2) = 1

    then ' ~'

    else «»

    end

    of another substr (orig, 1, 1)

    end,

    Step + 1

    Rectifier

    where orig is not null

    )

    Select the inp, res

    Rectifier

    where the orig is null

    INP RES
    "" ""
    123456789 123456789
    "123456789". "123 ~ 456 ~ 789".
    123, '45.6' Hello, ' John, Mike, Marc ", 456, '-Anne, Anna', 'single_value '. "123," "45 ~ 6 ', Hello," John ~ Mike ~ Marc ", 456," Anne-~ Anna ',' single_value '.
    123, '45.6' Hello, ' John, Mike, Marc ", 456,"Ann-Marie, Anna","unique value ". "123," "45 ~ 6 ', Hello," John ~ Mike ~ ~ ~ Marc ', 456,' Anne-Marie ~ Anna "," unique value ".

    Concerning

    Etbin

  • REGEXP_REPLACE remove the comma in double quotes

    Hello

    I am trying to remove the comma of a string in double quotes, currently I can only remove a comma using under sql

    SELECT REGEXP_REPLACE (' "" A, B, C, def "', '(") ([^ "|,"] +) (,) ([^ ""] +) ("") ',' \1\2 \4\5' ') FROM DUAL;

    output: 'A B, C, def'

    But I need the form "A B C def".

    Hello

    Jarkko Turpeinen wrote:

    ... I think that I stop to answer here, because I don't understand of course questions

    Very understandable.  If my assumption is correct, the question would be much clearer if OP gave an example that included a few commas inside the quotation marks and some outside, as in the example below.

    Here's a way to implement what I have described in the answer #2 above:

    VARIABLE input_txt VARCHAR2 (100)

    EXEC: input_txt: = 1, '2', ' A, B, C, def ", 3" foo, bar '4 ';

    WITH got_parts AS

    (

    SELECT LEVEL AS part_num

    , REGEXP_SUBSTR (: input_txt)

    , '[^"]*("|$)'

    1

    LEVEL

    ) AS part_txt

    OF the double

    CONNECT BY LEVEL<= 1="" +="" regexp_count="" (="">

    , '"'

    )

    )

    SELECT LISTAGG (CASE

    WHEN MOD (part_num, 2) = 0

    THEN REPLACE (part_txt, ',')

    Of OTHER part_txt

    END

    ) Within AS output_txt GROUP (ORDER BY part_num)

    OF got_parts

    ;

  • Limit the Total number of characters between double Quotes using Oracle 11 g PL/SQL

    Hello

    I need a way to apply a limit of 32 substring for each group of data inside double quotes, with Oracle 11 g PL/SQL.

    Essentially using the following example string that much for me, I have no control of how this string is built:

    str := "AAAAAAA BBBBBBB CCCCCCC DDDDDD1","AAAAAAA BBBBBBB CCCCCCC DDDD",”QWERTY”,”N1N1N1N1N1N1N1N1N1N1N1N1N1N1N1N1N1N1”’;

    I need to go through each group of values between each double quote, for example ("QWERTY") and apply a substring of 32 to each group found.

    So, using the example above of the chain, it's as if I need to do the following:

    str := "substr(‘AAAAAAA BBBBBBB CCCCCCC DDDDDD1’,1,32)","substr(‘AAAAAAA BBBBBBB CCCCCCC DDDD’,1,32)",”substr(‘QWERTY’,1,32)”,”substr(‘N1N1N1N1N1N1N1N1N1N1N1N1N1N1N1N1N1N1’,1,32)”’;

    So in the end, my final result for the str would be composed of four groups where the length of each grouping is less than or equal to 32.

    Any help would be great.

    Thank you.

    Try this (replace with your actual table):

    with the temp as

    (

    SELECT substr (REGEXP_SUBSTR (str,'[^,] +', 1, LEVEL) 1, 32) r

    OF THE TEST

    connect IN REGEXP_SUBSTR(str, '[^,]+', 1, LEVEL) IS NOT NULL

    )

    Select replace (listagg (r, '"," ') in the Group (order by null),' ' "','" ' ")

    temp

    output:

    "VIEN BBBBBBB CASTILLO DDDD", "VIEN BBBBBBB CASTILLO DDDDDD1", "N1N1N1N1N1N1N1N1N1N1N1N1N1N1N1N", "QWERTY".

  • ODI 11.1.1.5 with the 10.1.3.6.8 odihapp_essbase.jar &amp; odihapp_common.jar

    I have an ODI 11.1.1.5 on Windows 2008 R2 64-bit server installation. ODI client and server are on the same box.

    I could extract the dimensions of ASOSamp to a SQL Server 2008 Express table successfully. Beautiful, nice, etc.

    However, when I try to load to a table, with a rule of the load, I can not do and get the error (abstract):
    org.apache.bsf.BSFException: exception of Jython:
    Traceback (most recent call changed):
    File "< string >", line 61, < module >
    at com.hyperion.odi.essbase.AbstractEssbaseWriter.beginLoad (unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)

    I read the great and good John Goodwin blog and OTN messages and see the response seems to be to download the patch for 10.1.3.6.8, take the odihapp_essbase.jar and odihapp_common.jar files and copy them instead of the existing jar files.

    Thinking if there more than once, I better copy in all the places so I did just that at:
    C:\Oracle\product\11.1.1\Oracle_ODI_1\oracledi\client\jdev\extensions\oracle. ODI.navigator\lib
    C:\Oracle\product\11.1.1\Oracle_ODI_1\oracledi.SDK\lib

    I start services OPMN upward (Yes, I had to stop doing the copy of file and rename) and then try to my interface with the metadata of SQL for Essbase support. Hallelujah, it works! So, I figure, why not try to launch my ripping process? Surely it will work, right?

    Bzzzt! I get the following message (still abbreviated once) using:
    org.apache.bsf.BSFException: exception of Jython:
    Traceback (most recent call changed):
    File "< string >", line 89, < module >
    at com.hyperion.odi.essbase.ODIEssbaseMetaReader.validateExtractOptions (unknown Source)
    at com.hyperion.odi.essbase.AbstractEssbaseReader.beginExtract (unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)

    It's clean enough, in a not so clean kind of way.

    I can:
    (1) to accompany the 11.1.1.5's drivers and extract metadata for Essbase, but not to load the new metadata.
    (2) or, using drivers 10.1.3.6.8's I can load new Essbase metadata, but I can't extract it.

    I have not yet tried load the data again.

    What oh what am I doing wrong? Someone has already tried to do both an excerpt AND a load with 11.1.1.5 and the 10.1.3.6.8 jar patch files?

    I'm pretty much where I'll forget the process of full load by ODI and do so rather in a MaxL script that I'm going to automate via a package. I kind of like that better because then I can use very simple SQL in the State of charge instead of the kind of process of SQL-to-text-to-Essbase lame-o that ODI makes loading metadata, but really, it shouldn't have to be this way. In theory, large data sets there should even be a premium performance with the State of charge MaxL/SQL but I not got there yet nor do I really want to.

    Thanks for any help.

    Kind regards

    Cameron Lackpour

    Hey Cameron,

    There is a simple answer and Nice, you need to import the KM - 'LKM Hyperion Essbase METADATA to SQL' of 10.1.3.6.8
    Because this patch of output allows you to choose the alias table to extract and are included in the Java code, if you do not use the KM Java code get the table_alias located in the KM and it does not exist and fail.

    I really should update the blog article to understand that.

    See you soon

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

Maybe you are looking for

  • After updating Firefox - can't get into anything – get errors

    I received the notification that Firefox was slow, so I did a refresh. Now, I can't in my Yahoo email unless it tells me that there is an error. When I finally managed to get a photo that I sent to me not to appear. Then when I went to to connect to

  • Tedious and complicated repair services in Hong Kong

    This is the first time I am very angry by using the Apple repair service in Hong Kong.  When my Iphone was mistaken, it was natural for me to search for if repairs in the web of HK of the Apple. In the web, he tries to separate the different types of

  • Satellite L555-10N screen will not shut down after 10 minutes of non-use

    Hello I recently acquired a laptop Satellite L555-10N, which so far has proved to be a good choice.I have a little problem, however: In the preferences of my energy, I put the time during which the screen should turn off, 10 minutes, if the laptop is

  • E108nr PC portable Pavilion 17: Cyberlink Media Suite is missing from my HP Pavilion laptop

    I have upgraded to Windows 10, three months ago.  Today, not able to view DVDs using the DVD optical drive. He is asked to select an application from the app store. When I buy the laptop the Cyberlink power2go Cyberlink Media Suite and HP were pre-in

  • DAQmx task: MAX or lvproj?

    Experts, What are the benefits to declare tasks DAQmx either in the lvproj or Max? My question because I'm calling a VI of TestStand test, and when the DAQmx task constant is declared in the project (lvproj) which holds the criterion VI, it does not