After Creating a Column in a Logical Table

download After Creating a Column in a Logical Table

of 12

Transcript of After Creating a Column in a Logical Table

  • 7/24/2019 After Creating a Column in a Logical Table

    1/12

    After creating a column in a logical table, automatic

    mapping does not occur for attributes referencing

    columns with the same name in MicroStrategy 9.xStarted 07-01-2005 by

    JaimeP

    Modified 07-01-2005 by

    JaimeP

    Article Options

    Labels:

    Architect

    ,

    Engine

    ,

    Logical Views

    0Likes

    SYMPTOM:

    After defining a logical table and editing the attribute(s) that already reference the column(s) used

    in the logical table, the logical table is not listed as an available source table for the attribute form

    referencing the column.

    A logical table is defined as follows with Year_ID, which is used in the Year attribute as shown in

    the image below:

    http://community.microstrategy.com/t5/user/viewprofilepage/user-id/1485http://community.microstrategy.com/t5/user/viewprofilepage/user-id/1485http://community.microstrategy.com/t5/Architect/TN12000-After-creating-a-column-in-a-logical-table-automatic/ta-p/172639http://community.microstrategy.com/t5/Architect/tkb-p/architect/label-name/architect?labels=architecthttp://community.microstrategy.com/t5/Architect/tkb-p/architect/label-name/engine?labels=enginehttp://community.microstrategy.com/t5/Architect/tkb-p/architect/label-name/logical%20views?labels=logical+viewshttp://community.microstrategy.com/t5/user/viewprofilepage/user-id/1485http://community.microstrategy.com/t5/Architect/TN12000-After-creating-a-column-in-a-logical-table-automatic/ta-p/172639http://community.microstrategy.com/t5/Architect/tkb-p/architect/label-name/architect?labels=architecthttp://community.microstrategy.com/t5/Architect/tkb-p/architect/label-name/engine?labels=enginehttp://community.microstrategy.com/t5/Architect/tkb-p/architect/label-name/logical%20views?labels=logical+viewshttp://community.microstrategy.com/t5/user/viewprofilepage/user-id/1485
  • 7/24/2019 After Creating a Column in a Logical Table

    2/12

    As shown below, the logical table is not listed as a source table for the ID attribute form when

    modifying the Year attribute:

  • 7/24/2019 After Creating a Column in a Logical Table

    3/12

    CAUSE:

    This issue may occur if the column object created in the Logical Table is not identical in all

    aspects, including Object ID, with the column objects used for the other tables containing the

    same column.

    ACTION:

    Complete the following steps in the Logical Table Editor:

    1. Removethe current column object associated with the column in the Logical Table SQL

    as shown in the image below:

    2. In the left-hand pane of the editor where the tables are listed, expand one of the tables

    presently used as a source table for the attribute form in question as shown below:

    3. Drag and dropthe column object into the lower right-hand pane where the objects are

    defined for the Logical Table as shown in the image below:

  • 7/24/2019 After Creating a Column in a Logical Table

    4/12

    4. Save and close.

    5. The logical table should now be listed as an available source table in the attribute.

    How to create logical tables without creating

    duplicate columns objects in MicroStrategy Desktop

    9.x

    Started 09-30-2007 by

    Alma MdelC

    Modified 09-30-2007 by

    Alma MdelC

    Article Options

    Labels:

    Architect

    ,

    Developer

    0Likes

    When creating a logical table, there are two ways how the user can define the column objects.

    The user can choose to click on the 'Add' button and will add a new entry in the columns list or

    the user can drag and drop from the list of existing columns at the left of the window.

    http://community.microstrategy.com/t5/user/viewprofilepage/user-id/17742http://community.microstrategy.com/t5/user/viewprofilepage/user-id/17742http://community.microstrategy.com/t5/Architect/TN16858-How-to-create-logical-tables-without-creating-duplicate/ta-p/177195http://community.microstrategy.com/t5/Architect/tkb-p/architect/label-name/architect?labels=architecthttp://community.microstrategy.com/t5/Architect/tkb-p/architect/label-name/developer?labels=developerhttp://community.microstrategy.com/t5/user/viewprofilepage/user-id/17742http://community.microstrategy.com/t5/user/viewprofilepage/user-id/17742http://community.microstrategy.com/t5/Architect/TN16858-How-to-create-logical-tables-without-creating-duplicate/ta-p/177195http://community.microstrategy.com/t5/Architect/tkb-p/architect/label-name/architect?labels=architecthttp://community.microstrategy.com/t5/Architect/tkb-p/architect/label-name/developer?labels=developer
  • 7/24/2019 After Creating a Column in a Logical Table

    5/12

    If the user drags and drops the column from the list of existing columns, MicroStrategy

    will use thesamecolumn object, if it already exists, and will map the reference to that object. If

    there is an existing attribute form or metric that is mapped to this column, the automatic mapping

    will also map them to this new Table.

    If the customer chooses to use the 'Add' button, MicroStrategy will create anewcolumn

    object even if the user specifes the same data type and precision of the existing one. This new

    columns will have its own mapping of objects since it is treated as a completely new object.If the column is created using the 'Add' button and also Automatic mapping is turned on, the

    attributes won't make reference to the existing column since a new column object is created. A

    similar behavior is reported in the following MicroStrategy Knowledge Base technical note:

    TN12000 (TN5300-800-0666): After creating a column in a logical table, automatic mapping does

    not occur for attributes referencing columns with the same name in MicroStrategy 9.x

  • 7/24/2019 After Creating a Column in a Logical Table

    6/12

    This key is already associated with an element of

    this collection error message appears when trying

    to save a group form in the Attribute Editor inMicroStrategy Desktop 9.x.Started 05-11-2010 by

    JennaK

    Modified 01-29-2015 by

    ekanamala

    Article Options

    Labels:

    Architect

    ,

    Developer

    1Like

    SYMPTOM:

    When creating or editing an attribute with a grouped form mapped to a logical table, the following

    error message is displayed:

    'This key is already associated with an element of this collection'.

    STEP TO REPRODUCE:

    Follow the steps below to reproduce this issue in the MicroStrategy Tutorial project 9.x.

    1. Create a logical table defined as LU_DIST_CTR_LV using the columns from the

    LU_DIST_CTR table using the Add button as shown in the image below:

    http://community.microstrategy.com/t5/user/viewprofilepage/user-id/9899http://community.microstrategy.com/t5/user/viewprofilepage/user-id/7540http://community.microstrategy.com/t5/Architect/TN33284-This-key-is-already-associated-with-an-element-of-this/ta-p/184070http://community.microstrategy.com/t5/Architect/tkb-p/architect/label-name/architect?labels=architecthttp://community.microstrategy.com/t5/Architect/tkb-p/architect/label-name/developer?labels=developerhttp://community.microstrategy.com/t5/kudos/messagepage/board-id/architect/message-id/3610/tab/all-usershttp://community.microstrategy.com/t5/kudos/messagepage/board-id/architect/message-id/3610/tab/all-usershttp://community.microstrategy.com/t5/kudos/messagepage/board-id/architect/message-id/3610/tab/all-usershttp://community.microstrategy.com/t5/user/viewprofilepage/user-id/9899http://community.microstrategy.com/t5/user/viewprofilepage/user-id/7540http://community.microstrategy.com/t5/Architect/TN33284-This-key-is-already-associated-with-an-element-of-this/ta-p/184070http://community.microstrategy.com/t5/Architect/tkb-p/architect/label-name/architect?labels=architecthttp://community.microstrategy.com/t5/Architect/tkb-p/architect/label-name/developer?labels=developerhttp://community.microstrategy.com/t5/kudos/messagepage/board-id/architect/message-id/3610/tab/all-users
  • 7/24/2019 After Creating a Column in a Logical Table

    7/12

    1. Create a new attribute with two expressions in the ID form. One expression should be

    pointing to the physical table while the other one points to the newly created logical table as

    shown in the following image:

  • 7/24/2019 After Creating a Column in a Logical Table

    8/12

  • 7/24/2019 After Creating a Column in a Logical Table

    9/12

    2. Create a second attribute form and attempt to group the forms. The following warning is

    displayed:

    The category selected for this form is already being used by another

    form in the current attribute. The only way to have multiple forms

    using the same form category is by creating a form group. Do you wish

    to create a form group?

    3. Clicking on the "Yes" button causes the following error message to appear:

  • 7/24/2019 After Creating a Column in a Logical Table

    10/12

    Unexpected error This key is already associated with an element of this collection

    CAUSE:

    The column object created in the logical table was defined by typing the expression instead of

    mapping it to an existing column.

    ACTION:

    Define the column objects in the logical table by dragging existing columns from the physical

    source table from instead of using the 'Add' button as shown in the image below.

  • 7/24/2019 After Creating a Column in a Logical Table

    11/12

    By following this procedure, users will notice that the attribute can be defined using only one

    expression because the columns are not duplicated. Attribute forms can be then grouped

    correctly as shown in the image below:

  • 7/24/2019 After Creating a Column in a Logical Table

    12/12

    For more information about Logical Tables (Logical View), please refer to the following Technical

    Notes:

    TN: 12000(TN5300-800-0666): After creating a column in a logical table, automatic

    mapping oe! not occur for attribute! referencing column! "it# t#e !ame name in

    $icro%trateg& '

    TN: 16858(TN5700-8X-2746): How to create logical tables without creating duplicate columns

    objects in MicroStrategy Desktop 9.x

    https://resource.microstrategy.com/support/Authoring/DisplayTN.aspx?formatted=1&tnkey=12000https://resource.microstrategy.com/support/Authoring/DisplayTN.aspx?formatted=1&tnkey=16858https://resource.microstrategy.com/support/Authoring/DisplayTN.aspx?formatted=1&tnkey=12000https://resource.microstrategy.com/support/Authoring/DisplayTN.aspx?formatted=1&tnkey=16858