Loading text file to Essbase - Group By

Hi All,
May be someone have an idea...
I have text file (csv) with detailed data that I want load to Essbase. The data in file is in day level while the minimal period in Essbase is month.
Using SUM() function I'm trying to aggregate the values but get the error:
From Execution tab:
com.hyperion.odi.essbase.ODIEssbaseException: Invalid column type specified for Data column [Data]
     at com.hyperion.odi.essbase.ODIEssbaseDataWriter.loadData(Unknown Source)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
From Description tab:
sql= """select 'Work Hours' "Account",'Jan' "Period",'PTD' "View",'Translated to USD' "Currency Status",CONCAT('div_', C3_DIV) "Division",'Actual' "Scenario",C2_PROJECT_NUMBER_ "Project",'STAT' "Currency List",'com_100' "Company",'Final' "Version",'FY09' "Year",SUM(C1_HOURS) "Data" from "C$_0Security_ProjectsData" where      (1=1) And (C3_DIV in ('45', '48', '49')) Group By CONCAT('div_', C3_DIV),
C2_PROJECT_NUMBER_ """
When I remove SUM() function it loads the file succesufully,
Is it because groupping is impossible on text datastore or something wrong in my interface?
Thank you,
Alexey

Thank you John very much for the solution. It solved my problem.
Because I got it by mail I put it here to ba availible for everyone it may be interesting:
" I take it you are using "SUNOPSIS_MEMORY_ENGINE" as the staging area, if so
this seems to be the cause, it might be a bug.
Is it possible you could change your staging area to use a logical schema
using a relational database (e.g. sql server or Oracle)
I am able to replicate the issue if I using the memory engine as the staging
area but I can load the data using a relational staging area.
I would recommend switching from the memory engine anyway. "
Thanks a lot.

Similar Messages

  • Flash wont load text file

    Hi Everyone,
    I have a flash program which reads some data in from a text
    file and stores them in a list box. The problem im having is that
    on one of my computers it works fine, however on the second
    computer, there is no log entry in the
    windows\system32\logfiles\w3svc1 file which indicates that the text
    file has been opened.
    So from this i assume that there is something wrong with
    flash and IIS. Is there someway to turn off the IIS in flash so it
    wont load a "
    http://localhost/test.txt"
    file?
    I think I may have accidentally switched off an option but i
    have no idea where this would have been. Any help would be great.
    Thanks

    hi all
    at last i found the way to load text file in to the textArea
    it's like
    <mx:Script>
    <![CDATA[
    private function loadText():void {
    var l:URLLoader = new URLLoader(new URLRequest('2.txt'))
    l.addEventListener(Event.COMPLETE, finishLoading);
    public function finishLoading(evt:Event):void {
    var myData:String =new String(evt.target.data)
    txtBox.text=myData;
    ]]>
    </mx:Script>
    this should works because it's work with me
    enjoy the code
    Sanji

  • How to load text file data to Oracle Database table?

    By using Oracle Forms, how to load text file data to Oracle Database table?

    Metalink note 33247.1 explains how to use text_io as suggested by Robin to read the file into a Multi-Row block. However, that article was written for forms 4.5 and uses CREATE_RECORD in a loop. There was another article, 91513.1 describing the more elegant method of 'querying' the file into the block by transactional triggers. Unfortunately this more recent article has disappeared without trace and Oracle deny its existence. I know it existed as I have a printed copy in front of me, and very useful it is too.

  • How to load text files in GUI

    plz tell me .. how to load and compare two text files using file popup's . example file i have attached..
    Attachments:
    testW_FF.txt ‏2 KB

    I don't understand whether your question is on how to load text files or how to show them on a panel or how to compare them... or all aspects together!
    The first operation (loading the file) can be accomplished with functions included in the Formatting and I/O Library like OpenFile, ReadFile and so on; with a file like yours even FileToArray could be an option.
    How to show the data on screen is heavily dependent on what you intend to do with them: data can be shown in textboxes, listboxes, tables or graphs so... what do you want to do?
    The same applies with comparison: without additional details is difficult to give you the proper hint.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Unable to load multiple files to Essbase using MaxL and wildcards

    I have multiple data files to load:
    Files:
    Filename.txt
    Filename_1.txt
    Filename_2.txt
    According to the following link, Essbase is able to load multiple files to BSO databases via MaxL by using wildcards:
    http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref/frameset.htm?launch.html
    However, when I try to run the following I receive the following error:
    MaxL:
    import database MyApp.DB data from server text data_file "../../MyApp/Filename*.txt" using server rules_file "L_MyRule" on error append to "\\Server\Folder\L_MyRule.err";
    Error:
    ERROR - 1003027 - Unable to open file [DB01/oracleEPM/user_projects/epmsystem2/EssbaseServer/essbaseserver1/app/MyApp/DB/../../Filename*.txt].
    ERROR - 1241101 - Unexpected Essbase error 1003027.
    I can run the following fine without any problem, but this only deals with the first of several files, and I’d rather not hard-code multiple files since the number might vary in the future:
    MaxL:
    import database MyApp.DB data from server text data_file "../../MyApp/Filename.txt" using server rules_file "L_MyRule" on error append to "\\Server\Folder\L_MyRule.err";
    Any ideas? And how about ASO databases?

    JamesD wrote:
    According to the following link, Essbase is able to load multiple files to BSO databases via MaxL by using wildcards:
    http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref/frameset.htm?launch.html
    That is the tech ref for 11.1.2.2, are you on 11.1.2.2?
    Import Data
    11.1.2.2 - http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref/frameset.htm?maxl_imp_data.html
    11.1.2.1 - http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref_1112100/frameset.htm?maxl_imp_data.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Generate text file from a group above report

    i have problem in generating report in developer 6 report builder my report is master -detail(group above report)
    when i generate text file or csv file then my report is not in group above,master records are repeated along with every detail record.
    is there any solution that i generate group above report in text or csv file
    instead of pdf,rtf,html
    please mail me
    [email protected]

    Can you try adding this in your URL delimited_hdr=NO
    I am not sure it works.
    Just give a try

  • Using importTextData to load text files

    I have been having a real issue  trying to load data from text files (tab delimited text file) into my  form.
    It  works fine if I use importTextData() with no parameters and it prompts  for the file name, then the row, but if I try and pass the path and row  it comes back with a -2 result "User Cancelled Row Select".
    My path is  formatted as so: "/C/temp/importfile.txt"
    It has to do with the path  somehow... otherwise my file would not load properly when browsed.
    And before  people let me know I can import my information via an XML file, yes I  know, but for this task, is not an option.
    The end goal is to have a fixed  drop-down on the form and depending on which item they select, Acrobat  will load a text file into various controls.
    I have attached my sample if  someone wants to take a look.
    Any help people can give is greatly appreciated.
    Paul

    My example was not very good. I replaced it with a new (see attached).
    Previously I found my problem to be the header row in the text file was not formatted properly. ie. rather than have "task" as the column header it had to be frmProgressCard[0].frmTasks[0].tblTasks[0].rowTask[0].task[0]
    That does not work any longer.
    I save all the work in LiveCycle as Adobe Dynamic XML Form and then open it in Acrobat Pro to test, but still will not load my data. Returns with "invalid row" error.
    So I think the problem is that first row that is suppose to link up with the text fields in the form, but I can't seem to find the proper format.
    The help file only says to put in the field names, ie. "task", but that does not work.
    Thanks
    Paul

  • How to get applet to load text file and use it

    The applet is loaded from my site and the short text file is updated by a perl script in my cgi-bin, which is called whenever someone loads the html that loads my applet.
    The text file is just a counter string and I'd like to use it to display #.gif's at a certain place on the applet window (no problem there if I can get the text file into the applet).
    How would I get the applet to load the text file into a string or array?
    It has a running thread and I'd like it to update it periodically.

    I believe you can do that with Class.getResourceAsStream.
    Or you can do it explicitly with java.net.* stuff.

  • Java loading text file and doing stuff help

    Hello,
    Can anyone help me with this, I just don't know where to start..
    I need to create a java program which will load up a text file. The text file must be no bigger than 1000 characters (so somewhere there needs to be an exception I am guessing)
    Once loaded, it needs to run some methods on the text file which each return a single statistical count, the methods need to count things like number of white space, number of vowels, frequency of each vowel (this would not need to return a single count but maybe update some sort of array?) , number of printable characters and number of consonants.
    Any help would be very good.
    Dean

    Thanks for the help so far
    But first things first, I should start at the
    beginning.
    I am thinking maybe start with something like from
    the Sun tutorial for 'CopyCharacters.java'.
    So we have the first part of the program that loads
    up the txt file....
    (I really would like to have GUI for this, but I
    can worry about that once the actual program is
    working
    import java.io.FileReader;
    import java.io.FileWriter;
    import java.io.IOException;
    public class CopyCharacters {
    public static void main(String[] args) throws
    IOException {
    FileReader inputStream = null;
    FileWriter outputStream = null;
    try {
    inputStream = new
    FileReader("input_characters.txt");
    Right, now its time to actually read what is in the
    file and use some of the statements you have
    suggested, can anyone help me get started with this?
    Dean
    public class DeanHomeworkAssignment {
    public static void main(String args[]) {
    //Put your code here
    }There ya go, that should get you started.
    Start by writing the code to open the file.
    This isn't that difficult.

  • SQL Loader - Loading Text File into Oracle Table that has carriage returns

    Hi All,
    I have a text file that I need to load into a table in Oracle using SQL Loader. I'm used to loading csv or comma delimited files into Oracle so I'm not sure what the syntax is when it comes to loading a text file that essentially has one value per row and each row is separated by a carriage return. So when you open the text file, the records look like this:
    999999999 <CRLF>
    888888889 <CRLF>
    456777777 <CRLF>
    456555535 <CRLF>
    345688888 <CRLF>
    So each row is separated by a hard return and I need to tell sql loader that the hard return or next row is the next value to insert into the table. Below is an example of a control file I tend to use as a template for loading csv files but I need to modify it to accomodate this new structure.
    OPTIONS (DIRECT=TRUE,ROWS=100000)
    UNRECOVERABLE
    LOAD DATA
    INFILE 'C:\input.txt'
    BADFILE 'C:\input.bad'
    APPEND
    INTO TABLE TEST_TABLE
    FIELDS TERMINATED BY ","
    TRAILING NULLCOLS
    COLUMN_1
    How to I modify the control file above to use hard returns as the field/row delimiter for my text file?
    Thanks

    Hi there,
    Obviously my intention wasn't to post the same message 4 times....I pressed the "Submit Message" button but the submission hung and I pressed it a few times and finally it worked but it created several versions of my post. You need to allow users the ability to delete there own postings...I was looking for this option but didn't have it.
    Sorry

  • Can ODI transfer next text file to Essbase?

    I am new user to ODI, we have a text file with the next format:
    ACTUAL
    7
    1
    10100,100000.000,212000.12
    10105,100000.000,2350841.03
    10107,100000.000,13218068.2
    10108,100000.000,128575854
    10199,100000.000,-8252694.505
    10435,100000.000,1269516.95
    Should I change the above format to the next flat format first? Or it is not necessary? ODI can understand the above format? So that it can works as a flat text data store before I map the data to Essbase DB.
    The last column is fact measure data.
    ACTUAL,7,1,10100,100000.000,212000.12
    ACTUAL,7,1,10105,100000.000,2350841.03
    ACTUAL,7,1,10107,100000.000,13218068.2
    ACTUAL,7,1,10108,100000.000,128575854
    ACTUAL,7,1,10199,100000.000,-8252694.505
    ACTUAL,7,1,10435,100000.000,1269516.95
    Please advise and confirm, thanks!

    Hi,
    Yes it is certainly possible and there a number of ways to achieve it.
    It will be achieved in a pretty straight forward interface, you can ignore the first few lines in your file datastorre ( you could even read them lines in and set variables, personally I would set variables based on the first 3 lines and then use the variables in the interface)
    The rest will be simple mappings in the interface, you could hard code some of the values into the target mapping or use variables which would be better, if you are going to use variables then you will need to use a package, declare/refresh/set them and add the interface.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to load text file

    Dear All,
    How is it possible load a text file that contain SQL commands in the form and then execute the commands.
    Regards

    Hello,
    You can have dynamic SQL within the Forms module via the EXEC_SQL package, but it is not really made to execute a whole file content.
    You could write a databased function (or procedure) that uses the EXECUTE IMMEDIATE instruction, then call this procedure from Forms.
    Anyway, I think that in all cases, you probably have to split your text file in several comprehensives single SQL orders, or at least send entire PL/SQL blocks.
    Francois

  • Get only common members between text file and ad group member.

    Hello,
    I have a txt file with users SamAccountName (1column) and need to show(in datagrid) only common members in specific AD group (FreeAppli group).
    Text file :
    x0001
    x0002
    FreeAppli:
    X9090
    x0001
    x0002
    Datagrid:
    x0001
    x0002
    Thank you

    try:
    $UsersFromFile = Get-Content ".\users1.txt"
    $UsersFromGroup = (Get-ADGroupMember -Identity "FreeAppli").SamAccountName
    $CommomMembers = $UsersFromFile.Where({ $UsersFromGroup -contains $_ }) # Intersection of 2 arrays
    $CommomMembers
    Sam Boutros, Senior Consultant, Software Logic, KOP, PA http://superwidgets.wordpress.com (Please take a moment to Vote as Helpful and/or Mark as Answer, where applicable) _________________________________________________________________________________
    Powershell: Learn it before it's an emergency http://technet.microsoft.com/en-us/scriptcenter/powershell.aspx http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx

  • Loading text file with flash lite 3.0 problem

    Hello,
    I recently ran into a problem with loading a plain text file with Flash Lite 3.0.
    I know there is a way to load name/value pairs using LoadVars class or XML file using XML class. Both methods work great, but these classes parse the data loaded and I need to load just a plain text - no pairs or xml structure. (its because Im loading specific file format, so I can't make any changes to it)
    There is a simple way how to achieve this in Flash using Actionscript 2 by extending the LoadVars class and overriding the onData() method. I used it plenty of times and it works fine.
    There is an example of implementation:
    // the PlainData.as file
    class PlainData extends LoadVars {
        function onData(str) {
            trace(str)
            this.onLoad(true);
    // now in the main file
    var my_data:PlainData = new PlainData();
    my_data.load("my3dmodel.obj");
    This code traces unchanged content of my3dmodel.obj file.
    The problem comes when I try to run this code using Flash Lite 3.0. The code stops working just by changing player version in publish settings to Flash Lite 3.0. It doesnt display any error, but also doesnt trace any content.
    Is there a reason why you cant override onData method in LoadVars class in lite version of flash or am I doing something wrong?
    (also overriding onLoad() method works fine in Flash Lite)
    Ondrej

    Thanks Man
    But i m very unhappy !!! :-(
    1M data to transfer my mp3 files is very small !!! hehehe
    Thanks a lot
    See ya
    Carlos Eduardo Burko - Curitiba - Brazil - Macromedia
    Certified Professional
    "biskero" <[email protected]> escreveu na
    mensagem
    news:e98nrb$a6e$[email protected]..
    > Ciao Carlos,
    >
    > yes you can load mp3. The only issue is that the FL2
    will need to load the
    > entire mp3 in memory which mean you are limited to the
    avalable memory and
    > also
    > there is a limitation of 1M data transfer.
    > Try to create a sample application to test it. You need
    to use the
    > loadSound
    > API.
    >
    > Alessandro
    >

  • Can load text file in Windows - not on the Mac?

    I have some code that loads a text file into an array that works fine in windows, but fails on the Mac  I'm sure it's a path issue but I've spent several hours trying to work this out.
    Windows code works fine:
        var textPath =  "c:\\temp\\textfile.txt";
         try {
            var myFile = File(textPath);
            var mymenuItems=[];
            var menuItems=[];
            myFile.open('r');
            while(!myFile.eof){
                mymenuItems.push(myFile.readln());
            myFile.close();
    Mac Code Fails
      var textPath = '/User/wizbowes/Desktop/text.txt';
         try {
            var myFile = new File(textPath);  //tried both with and without new - same effect
            var mymenuItems=[];
            var menuItems=[];
           myFile.open('r');
       while(!myFile.eof){
                mymenuItems.push(myFile.readln());
    When debugging on the mac myFile.eof shows true straight after I open the file and therefore never enters the loop to populate the array
    What on earth am I doing wrong?

    1. For files on your desktop you can use a shortcut.
    var textPath = '~/Desktop/text.txt';
    2. Make sure the file object is valid before you open for reading. The new keyword is not really needed it just make clear in the code that you are creating a new file object. However just creating a file object does not means that the file already exists. You could have an invalid path.
    try {
            var myFile = new File(textPath);
            if(myFile.exists){
               // rest of the code
    3. If you don't want to check that the file exists you could check the return of the file.open() method. It should return true if it opened the file when opening an existing file.
    var openSuccess = myFile.open('r');
    if(openSuccess){
        // some code that reads from the file here

Maybe you are looking for

  • Strange character (�) in my messages

    I recently started sending messages to friends about some upcoming events which required RSVP so I created a LINK through Dreamweaver and then viewed it in the browser...then from the FILE menu - chose "mail contents of this page" The idea was to mai

  • Hello I wrote a technical french book on " iBooks Author" and I would like to Know witch catégorie I should choose?

    hello I wrote a technical french book on " iBooks Author" and I would like to Know witch catégorie I should choose?

  • Stop FLV from auto loading and playing clip

    I intend to have four video files on my site. As of now, when the user goes to the site, all four files play simultaneously. What I need is a way (code) to have each file not automatically start and allow the usr to click a play button. That button i

  • Is this a bug in wlappc?

    I would not expect a tool to produce a stack trace just to report a usage error. Here is what I get from WebLogic 10's wlappc tool: appc: [wlappc] <May 4, 2007 11:19:11 AM PDT> <Info> <J2EE> <BEA-160186> <Compiling EAR module 'Ejb3ExpEjb'> [wlappc] j

  • Max. rate for sample clock source

    Hi, thinking of a future application for digital event counting (similar to the Count Digital Events-Buffered-Continuous-Ext Clk example ) we have two questions: What's the maximum rate applicable to the sample clock  source terminal  (in our case th