Wrong column order.

Hi,
I am loading data from Essbase (I use report script to extract data) to flat file, and I have following issue:
My datasources, and mapping in ODi looks like that:
http://img849.imageshack.us/img849/1514/odiscreen.png
(Okresowo is data column)
I loaded data and what I found in flat file:
In column Zastaw there are data (member names) from dimension: Centrum odpowiedzialnośc (despite Pozycja is mapped here).
In column Prognoza there are data from Rok (despite Okres is mapped).
Same for all other columns.
My report script looks like this:
<SYM
{ SUPMISSINGROWS  }{ SUPALL  }{ TABDELIMIT  }{ ROWREPEAT  }{ NOINDENTGEN  }{ NAMESON  }
<COLUMN ("WIDOK")
"Okresowo"
<SUPSHARE
<ROW ("Pozycja", "Okres", "Rok", "Produkt", "Centrum odpowiedzialności", "Wersja", "Scenariusz","Obszar")
"Volume ex factory"
<DIMBOTTOM "Okres"
<DIMBOTTOM "Rok"
<DIMBOTTOM "Produkt"
<DIMBOTTOM "Centrum odpowiedzialności"
"Robocza"
"Prognoza"
"Brak obszaru"
Anyone faced sth similar?
Best regards,
Greg

Hi Greg,
Which technology is you staging area? And what is your IKM?
I would suggest to have a look at the insert statement generated when you execute it.
Is it normal that some columns are mapped on the source and other on the staging?
Regards,
JeromeFr

Similar Messages

  • Select * columns order

    Is it possible, that "SELECT *" returns records, where columns are
    ordered in a different order, than the order they were
    positioned/specified when table was created?
    For example, lets assume that table T contains columns c1,c2,..c10.
    Can this be possible, that the * (asterisk) shows the columns in a
    different orderm the c1 and c10 changed their position for example:
    query:
    "SELECT * FROM T"
    results:
    c10, c2, c3, .., c9, c1.
    I think you anderstood my question now.
    The sql-standard doesn't tell about it nothing, but i have heard that
    "selesct *" can produce columns in a random order in some situations.
    Notice, that i'm not talking about "ORDER"-operator. I have heard that if one make a table with plenty of columns and adds plenty of indexes and constraints to the columns, then "select *" really will produce mistery column order.
    Thank you for answering,
    Regards.

    FWIW I suspect that block structure is not a factor either.
    Consider
    SQL> CREATE VIEW v AS SELECT * FROM emp;
    View created.
    SQL> desc emp
    Name                          Null?    Type
    EMPNO                         NOT NULL NUMBER(4)
    ENAME                                  VARCHAR2(10)
    JOB                                    VARCHAR2(9)
    MGR                                    NUMBER(4)
    HIREDATE                               DATE
    SAL                                    NUMBER(7,2)
    COMM                                   NUMBER(7,2)
    DEPTNO                                 NUMBER(2)
    SQL> desc v
    Name                          Null?    Type
    EMPNO                         NOT NULL NUMBER(4)
    ENAME                                  VARCHAR2(10)
    JOB                                    VARCHAR2(9)
    MGR                                    NUMBER(4)
    HIREDATE                               DATE
    SAL                                    NUMBER(7,2)
    COMM                                   NUMBER(7,2)
    DEPTNO                                 NUMBER(2)
    SQL> WITH accounting_emp  AS (SELECT * FROM v WHERE deptno = 10)
      2     , accounting_dept AS (SELECT * FROM dept WHERE deptno = 10)
      3  SELECT *
      4  FROM   ( SELECT * FROM accounting_dept )
      5*      , ( SELECT * FROM accounting_emp );
    DEPTNO DNAME          LOC           EMPNO ENAME      JOB         MGR HIREDATE    SAL  COMM DEPTNO
        10 ACCOUNTING     NEW YORK       7782 CLARK      MANAGER    7839 09-JUN-81  2450           10
        10 ACCOUNTING     NEW YORK       7839 KING       PRESIDENT       17-NOV-81  5000           10
        10 ACCOUNTING     NEW YORK       7934 MILLER     CLERK      7782 23-JAN-82  1300           10
    3 rows selected.This returns rows in a consistent (if apparently undocumented) order, which seems to be something like:
    * Tables/views in FROM list
    * SELECT list
    * SELECT list within views in FROM list
    * SELECT list of subquery factoring clause
    * ALL_TAB_COLUMNS.COLUMN_ID (for tables and views)
    * ALL_TYPE_ATTRS.ATTR_NO for attributes of object types
    If it did not, it would break many valid PL/SQL constructions as others have mentioned, including %ROWTYPE , UPDATE ... SET ROW, INSERT ... VALUES [record], and INSERT without column list. This type of failure will be familiar to those developing invoker rights packages, since the table found at runtime could have columns in a different order than the one compiled against, which will produce effects such as values appearing in the wrong attributes of %ROWTYPE records.

  • Oracle sql developer change column order

    Hello,
    I created a table in Oracle sql developer.. After I created it I noticed that the order of the columns is wrong. So I right clicked the table->Edit.. But the arrow to move a column up/down (ie. change the column order is greyed out). Is there a another way to change this ?

    Alex Nuijten wrote:
    hello.
    I just looked at Guido profile and noticed he was from Germany. You being from India, also learning some Dutch along the way... soon the whole world will be speaking Dutch... :)And then - not a second earlier - the Oranje team will win a FIFA World Cup. ;-)

  • Report Does Not Follow Select Column Order

    Hi all,
    Apex 2.2 on 10gXE
    I always encounter this problem, the display column on report does not follow the select column sequence order in the "region source".
    It is very tedious clicking the up/down arrow one-by-one in the "report attributes" especially if the display columns are plenty like 40 columns.
    Is there a fix/patch or alternative tips for this bug?
    Thanks a lot,
    Edited by: 843228 on May 24, 2011 10:32 PM

    Apex 2.2 on 10gXEStart by upgrading from this old unsupported version.
    >
    I always encounter this problem, the display column on report does not follow the select column sequence order in the "region source".
    It is very tedious clicking the up/down arrow one-by-one in the "report attributes" especially if the display columns are plenty like 40 columns.
    Is there a fix/patch or alternative tips for this bug?
    >
    This is not a bug. APEX maintains the original column order of the report. This avoids problems downstream in areas like the processing of <tt>g_fnn</tt> arrays in declarative tabular forms, where the assigned arrays are column-order dependent.
    APEX 4.x fixes column ordering bugs that could lead to report corruption, and includes drag-and-drop column ordering in the new tree view in addition to the up/down arrow re-ordering.
    If you really want column order to follow that in the source query, the workaround is to create a new report using the modified query.

  • How to set the column order of a sealed column in a custom Content Type for the new item form NewDocSet.aspx?

    Dear SharePoint Developers,
    Please help.
    I need to know How to set the column order of a sealed column in a custom Content Type for the new item form NewDocSet.aspx?
    I think this is a "sealed column", whatever that is, which is  shown in SPD 2013 as a column of content type "document, folder, MyCustomContentType".
    I know when I set the column order in my custom Content Type settings page, it is correct.
    But, when I load the NewDocSet.aspx page, the column order that I set in the settings page is NOT used for this "sealed column" which is bad.
    Can you help?
    Please advise.
    Thanks.
    Mark Kamoski
    -- Mark Kamoski

    Hi,
    According to your post, my understanding is that you want to set the column order of a sealed column in a custom Content Type for the new item form NewDocSet.aspx.
    Per my knowledge, if you have Content Type management enabled for the list or library (if you see a list of content type with the option to add more), the display order of columns is set for each content type.
    Drill down into one of them and you'll see the option under the list of columns for that content type.
    To apply the column order in the NewDocSet.aspx page, you need to:
    Select Site Settings, under Site Collection Administration, click Content type publishing. In the Refresh All Published
    Content Types section, choose Refresh all published content types on next
    update.
    Run two timer jobs(Content Type Hub, Content Type Subscriber) in central admin(Central Administration--> Monitoring--> Review timer jobs).
    More information:
    http://sharepoint.stackexchange.com/questions/95028/content-types-not-refreshing-on-sp-online
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Is that important column order in a query with row_number function

    Hi folks,
    I am using Oracle 11g R2 on HP-UX machine.
    I have 2 types of query with row_number and I think they are same but output of each of them are different. I changed only column order in query2.
    Query 1 :
    (SELECT
    "LOOKUP_INPUT_SUBQUERY"."CONTRACT_SK" "CONTRACT_SK",
    "LOOKUP_INPUT_SUBQUERY"."SIMCARD_SK" "SIMCARD_SK"
    FROM (
    SELECT row_number ()
    OVER (
    PARTITION BY "R_CON_SUBS_SIMCARD_LK".
    "CONTRACT_SK"
    ORDER BY
    "R_CON_SUBS_SIMCARD_LK"."START_DATE" DESC,
    "R_CON_SUBS_SIMCARD_LK"."SEQ_NUM" DESC NULLS LAST) /* EXPRESSION_3.OUTGRP1.SIRA */
    "SIRA",
    "R_CON_SUBS_SIMCARD_LK"."CONTRACT_SK" "CONTRACT_SK",
    "R_CON_SUBS_SIMCARD_LK"."SIMCARD_SK" "SIMCARD_SK"
    FROM "SRC_OZRDS"."R_CON_SUBS_SIMCARD_LK" "R_CON_SUBS_SIMCARD_LK")
    "LOOKUP_INPUT_SUBQUERY"
    WHERE ("LOOKUP_INPUT_SUBQUERY"."SIRA" = 1))
    Output of this like that :
    CONTRACT_SK SIMCARD_SK
    1     1
    1     3
    1     4
    1     5
    1     6
    1     11
    1     12
    1     14
    1     15
    1     16
    Query 2 :
    (SELECT
    "LOOKUP_INPUT_SUBQUERY"."CONTRACT_SK" "CONTRACT_SK",
    "LOOKUP_INPUT_SUBQUERY"."SIMCARD_SK" "SIMCARD_SK"
    FROM (
    SELECT
    "R_CON_SUBS_SIMCARD_LK"."CONTRACT_SK" "CONTRACT_SK",
    "R_CON_SUBS_SIMCARD_LK"."SIMCARD_SK" "SIMCARD_SK",
    row_number ()
    OVER (
    PARTITION BY "R_CON_SUBS_SIMCARD_LK".
    "CONTRACT_SK"
    ORDER BY
    "R_CON_SUBS_SIMCARD_LK"."START_DATE" DESC,
    "R_CON_SUBS_SIMCARD_LK"."SEQ_NUM" DESC NULLS LAST) /* EXPRESSION_3.OUTGRP1.SIRA */
    "SIRA"
    FROM "SRC_OZRDS"."R_CON_SUBS_SIMCARD_LK" "R_CON_SUBS_SIMCARD_LK")
    "LOOKUP_INPUT_SUBQUERY"
    WHERE ("LOOKUP_INPUT_SUBQUERY"."SIRA" = 1))
    Output of this like that:
    2     874812
    7     70097256
    8     18734091
    9     158024
    10     815397739
    13     22657919
    19     83177779
    20     82579529
    22     5829949
    23     35348926
    25     3865978
    I expected the second output, because there are lots of contract sk but there is one contract_sk in first query result. i did not get the point. What is the problem ?

    user8649469 wrote:
    I changed only column order in query2.So what else do you expect? If you order, for example, by last name, fist name don't you think rows will be returned in a different order (and therefore same row will have different row number) than ordering by first name, last name?
    SY.

  • Column order in a select * query

    Suppose I have 256 columns in a table and if I query select * from  tablename ,what will the column order in the result.Will this be always same as order as in created statement?

    If the columns were all in the original CREATE TABLE statement, then, yes, the ordering of columns in SELECT * FROM will match the order from the CREATE TABLE statement.
    If columns were added after the initial create, then the original columns will come first (in their order) and then the added columns (in their order), etc.
    In the real world, it is a very bad practice to use SELECT * and have expectations about the ordering of the columns. Consider this scenario:
    Table T was created and implemented in production a year ago with columns A, B, C
    A project started up three months ago and added column D but the project is stalled in development. So in development T had columns A, B, C, D
    Later, another project started up and added columns E and F. Unlike the other project, it has progressed to Test. and Production. So in Development the table has columns A, B, C, D, E, F. In test and production the table has columns A, B, C, E, F.
    Now that stuck project has progressed to Test and Production. Now T has columns A, B, C, E, F, D in test and production but still A, B, C, D, E, F in development.
    Until someone notices and decides to fix it (where and how?)
    Be very, very careful about using SELECT *.

  • Column order in SQL Query (PL/SQL function returning a query)

    Hi,
    when I define a PL/SQL function returning a query inside a region, I often find that the column order is arbitrarily changed.
    How do I enforce the column order ?
    Bye,
    Flavio

    I removed the 11th column called service_name from this dynamic query: and now the report says: report error:
    ORA-01403: no data found. I messed around with the Headiuns Type. It was set to Custom. I changed it to Column Names. There is no difference.
    I am not sure how to fix?
    declare topqry varchar2(32000);
    whereqry varchar2(32000);
    finalqry varchar2(32000);
    var_status varchar2(100);
    division_status varchar2(50);
    office_status varchar2(1000);
    user_status varchar2(1000);
    overdue_status varchar2(1000);
    begin
    if :P10_FALLBACK = 'All' then
    var_status:= ' and vp.status in (''FA'',''FBA'',''FBI'',''25%'',''50%'',''90%'',''Closed'') ';
    elsif :P10_FALLBACK = 'Active' then
    var_status:= ' and vp.status in (''FA'',''25%'',''50%'',''90%'',''FBA'') ';
    elsif :P10_FALLBACK = 'FB' then
    var_status:= ' and vp.status in (''FBA'',''FBI'') ';
    elsif :P10_FALLBACK = 'Closed' then
    var_status:= ' and vp.status in (''Closed'') ';
    elsif :P10_FALLBACK = 'Inactive' then
    var_status:= ' and vp.status in (''FBI'') ';
    end if;
    if :P10_DIVISION = 'All' then
    division_status:= ' and vp.vms_division in (''News'',''Ad Services'') ';
    elsif :P10_DIVISION = 'News' then
    division_status:= ' and vp.vms_division in (''News'') ';
    elsif :P10_DIVISION = 'Ad' then
    division_status:= ' and vp.vms_division in (''Ad Services'') ';
    end if;
    if :P10_OFFICE = '%' then
    office_status:= ' and OFFICE_ID in (select office
    from VMS_OFFICE_ACCESS
    where user_id = lower(:P0_user) ) ';
    else
    office_status:= ' and OFFICE_ID in :P10_OFFICE ';
    end if;
    if :P10_LIMIT_USER = '%' then
    user_status := ' and SALESPERSON in (select first_name || '' '' || last_name
    from VMS_PROSPECT_users u
    join vms_office_access o
    on u.office_id = OFFICE
    where o.user_id = lower(:P0_USER) ) ';
    else
    user_status:= ' and SALESPERSON in (:P10_LIMIT_USER ) ';
    end if;
    if :P10_SHOW_OVERDUE = 'Show' then
    overdue_status:= ' and target_close_date <= sysdate ';
    var_status:= ' and vp.status in (''25%'',''50%'',''90%'',''FBA'') ';
    else
    overdue_status:= ' and FIRST_APPOINTMENT between
    nvl(to_date(:P10_FIRST_APPT_START, ''mm/dd/yyyy''),FIRST_APPOINTMENT) and
    nvl(to_date(:P10_FIRST_APPT_END,''mm/dd/yyyy''),FIRST_APPOINTMENT) ';
    end if;
    topqry := 'SELECT OFFICE_ID ,vp.PROSPECT_ID ,ENTRY_DATE ,ACCOUNT , NEXT_CONTACT_DATE ,ACTION_STEP ,
    TARGET_CLOSE_DATE ,vp.STATUS ,SALESPERSON ,vp.SALES_TYPE ,service_name , FIRST_APPOINTMENT ,MODIFY_DATE ,EST_ANNUAL_REVENUE ,EST_INCREMENTAL_REVENUE ,
    pi.NOTES , pi.SALES_TYPE ,pi.STATUS ,Contact ,Origin_Source FROM VMS_PROSPECTING_ITEMS pi right outer join VMS_PROSPECTS vp on vp.PROSPECT_ID = pi.PROSPECT_ID left outer join VMS_SERVICES vs on vs.service_ID = pi.service_ID where 1 = 1 ';
    whereqry := ' and (not exists (select *
    from VMS_PROSPECTING_ITEMS i3
    where vp.prospect_id = i3.prospect_id)
    or exists (select *
    from VMS_PROSPECTING_ITEMS i2
    where i2.order_id = pi.order_id
    and active = ''Y'' )) and instr(upper(ACCOUNT),upper(nvl(:P10_ACCOUNT,ACCOUNT))) > 0 ';
    whereqry := whereqry || var_status || division_status || office_status || user_status || overdue_status;
    finalqry := topqry || whereqry;
    return finalqry ;
    end;

  • Managed Metadata appearing in wrong columns after Restoring a site to a new Site Collection

    I've restored a site with some libraries that have Managed Metadata (MM) columns from one site collection into another site collection inside the same web app so it should all subscribe to the same Managed Metadata
    Service Application.
    There are two MM columns in one library, one holds a single value which is what type of document it is, the other is a general tag field that allows the user to add multiple MM values to it if they want.
    What we've found  is that data has randomly disappeared on some MM fields, on others it appears in the wrong column, and in other cases it appears fine.
    I used native out of the box GUI backup and restored with the command line,
    I've done it twice with the same result, so it’s not a one off corruption during backup. It's the same story in a different doc library based on different term sets as well. 
    Of all the things to not work properly, MM was probably last on my list to expect, it's knocked my confidence in it a bit, as well as worried me about future upgrades.
    If anyone has any ideas over what may be the cause of this, it would be appreciated, I've read lots of blogs, but nothing quite like this has cropped up.
    Thanks,
    Jon

    Most of the ISV offerings will allow you to 'Migrate' content from one SP location to another. I'm pretty sure AvePoint and a few others have tools specifically developed for shifting bits and pieces around SharePoint farms.
    It is a limitation but the ISV tools tend to do a good job and maintain nearly full consistency.
    There's scripts around that can do much/most of the migration and you could always extend them to do the same things as the ISV migration tools however the cost to do so can quickly get to the same ballpark as buying an already made tool.
    Paul is also in the London office, we often work together when projects requiring his brains and my beauty crop up.

  • How to change the column order in the DB?

    Hi all,
    For example,
         there is an employee database with the field names empno(1),empname(2), empphone(3), empaddress(4), empsal(5). the values in the brackets are the column order i.e., the order in which the column names are placed.
         I have the details of the employee records in a .txt file and i have to upload the file with the same column order with some delimiter. I done it but in future if any one have the details of the employee details with some other column order i.e., empaddress(1), empsal(5), empno(3), empname(4), empphone(5)
         how i can change the column order of the database ...
    Thanx in advance...
    Bye,

    how i can change the column order of the databaseYou don't. You specify the column order in you're insert.
    PreparedStatement pstmt = conn.prepareStatement ("insert into EMP (EMPNO, ENAME) values (?, ?)");
    pstmt.setInt (1, 1500);
    pstmt.setString (2, "A Name");
    pstmt.execute ();
    Steve.

  • Interactive report column order not working properly

    Hi All,
    Can anyone help me with this situation:
    Example:
    1)
    First of all I created a interactive report with this simple query
    Select 1 col_A, 2 Col_D from dual
    2)Later I modified the query like this
    Select 1 col_A, 1 col_C, 2 Col_D from dual
    But when I run the report the new column added appear in the end?
    I already tryed to reorganize the column order in the navigator menu, but the issue remains.
    Any ideas?
    Thanks

    Hi,
    Login to APEX builder. Run your page.
    Select columns from report action menu and save default layout.
    Regards,
    Jari

  • Datagrid Column Ordering from Recordset?

    I often populate my datagrids with a recordset, an array of record objects, by passing the recordset in the dataprovider constructor. However, this results in unpredictable column ordering i.e. it doesn't correspond to the order of the fields in the record object. I know you can define the columns and then use add item to add the records to resolve this, but I'm curious why the datagrid doesn't order the columns according to the record object field order in the first place and why the order can actually change between renderings of the datagrid?

    Thanks for the response. I understand the method to order the columns, I'm more curious why doing something like this:
    var arr:Array = new Array();
    arr.push({label:"item 1b", qty: 1});
    arr.push({label:"item 2b", qty: 2});
    var dp:DataProvider = new DataProvider(arr);
    results in the columns being randomly ordered. It be nice if the data grid always produced columns in the order of
    label   qty
    Its probably rooted in the fact a for..in loop doesn't get values from an object in a useful order either.

  • Column Order in Popup

    Is there a way to change the order of the columns in the pop-up? They are in alphabetical order, and i would prefer they are in the order that they are in the table. All of the tools I have ever used with this feature are ordered by column_id. When I visualize a table, I also think of it by column_id with the PKEY being first, not in an alphabetical format. If there is not a way to change this, how would I go about getting a request to make it this way, or add the option?
    Edited by: deep_tech_diver on Jan 15, 2010 9:38 AM

    I assume that it is the "completion insight" that I am talking about. We currently use PL/SQL Developer and have used other tools in the past that put it in the column order. I like the ability to see the order of the columns, especially with the PKEY being first without having to first describe the table. This allows me to do a quick adhoc query for someone without knowing what the actual spelling of the PKEY name, especially in legacy stuff that didn't follow standard naming conventions, or dealing with third party apps that have cryptic naming conventions where all the columns begin with the same two letters.

  • Column order in the template

    I need to migrate the existing reports from SQL Server Reporting Services to Crystal Report 2008, and the column order in the report is very important to the clients since clients have existing code to ingest these reports into their database. Now I want to use a single template with a lot of parameters for all reports, my question is how I might use one template to create multiple reports with different column orders in the reports?
    For example, client A has the following column order in their report: firstName, LastName, DateBirth, SSN. Client B has the following column order in their report: SSN, DateBirth, LastName, FirstName. Can I use one template to create these multiple reports?
    Thank you!

    Sorry, the code was messed up in previous post:
    Template:
    <tr align="center" valign="top">
    <td align="center"class="instructiontext">
    <b>#MGR_NAME#</b>
    <br><font size=-2>
    #WORK_ROLE#</font><br><FONT class="smallBlack">
    Directs: #DIRECTS#   Total: #REPORTS#</font></td></tr>

  • Column Order in a pivot table

    Hi,
    I have a question about the column order in a Pivot Table in a WebI (xi r3.1) report
    At the moment I have the following Pivot Table
                       |1                                                 |  2
                       | Produced Water | Produced Oil  |  Produced Water | Produced Oil
    Platform 1   | 2                         | 3                    |  4                         | 5
    Platform 2   | 3                         | 4                    |  5                         | 6
    I want to have the following pivot table instead
                        | Produced Water                         |  Produced Oil
                        | 1                         | 2                    |  1                         | 2
    Platform 1    | 2                         | 4                    |  3                         | 5
    Platform 2    | 3                         | 5                    |  4                         | 6
    Is it possible to setup the above pivot table in a WebI report?
    Many Thanks for any help,
    Dirk Jan

    Dirk Jan,
    That's a question regurlarly asked to me by users and the solution (as long as nobody is comming up with a better one) is to create variables for the measures for each month (using the WHERE operator).
    So you need to define 12 variables (for each month) for Product Oil and Product Water (PO month1, PO month 2, ...., PW month 1, PW month 2 ....) using the formula (eg. PO month1):
    =[Product Oil] Where ([month] = 1)
    Then instead of a crosstab you build a table where you can put the variables in any order you want.
    Regards,
    Harry

Maybe you are looking for

  • How to prevent apex 4.0 shuttle cleared by cascading LOV setting?

    I have a shuttle control for choosing a list of database users populated from a child table by an On Load - After Header process, which then repopulates the child table in an On Submit - After Computations and Validations process. Work fine. I then s

  • I lost my ipod, when i track it it says its off. what do i do now?

    i lost my ipod, when i track it it says its off. what do i do now?

  • How to import Custom idoc into  IR?

    I have a custom idoc and i need to map it with the receiver format after importing into IR . Please let me know the sequence of steps to import custom idoc into  Integration repository? I think I need to first import into IDX2 and then import into re

  • Script keeps repeating

    Hi All -- I have a script that is supposed to retrieve some information from two tables based upon a select statement. Then write the data to a file. However, the script keeps repeating and does not break out of the loop. It doesn't give me any error

  • Insertion of ppt file and doc file

    How to insert ppt file,wbmp file(used in mobile application) and doc file using intermedia objects? Please provide me a pl/sql code to insert ppt,doc and wbmp file