Alpha numeric dim elements not getting loaded through TI

Post Reply
anoops81
Posts: 101
Joined: Tue May 12, 2009 8:20 am
OLAP Product: TM1
Version: 9.5.2
Excel Version: Office 2010

Alpha numeric dim elements not getting loaded through TI

Post by anoops81 »

Hi All ,

I have a TI process which loads elements to a dimension hierarchy from a csv file . Every thing is working fine except some alpha-numeric elements given below .

80.1.6 All Other Service Fees
80.1.5 AESS
80.1.4 Facilities & Security
80.1.3 HR
80.1.2 FRC/Finance Svce Fee
80.1.1 Procurement
80.2.4 SWC
80.2.3 Variable SQP
80.2.2 Fixed SQP


These elements are not getting loaded and I am getting "process successfully completed" message.

Anybody knows why these elements are ignored by TI ?

Anoop
User avatar
mattgoff
MVP
Posts: 516
Joined: Fri May 16, 2008 1:37 pm
OLAP Product: TM1
Version: 10.2.2.6
Excel Version: O365
Location: Florida, USA

Re: Alpha numeric dim elements not getting loaded through TI

Post by mattgoff »

Please read and follow the Request for Assistance Guidelines. It helps us answer your question and saves everyone a lot of time.
anoops81
Posts: 101
Joined: Tue May 12, 2009 8:20 am
OLAP Product: TM1
Version: 9.5.2
Excel Version: Office 2010

Re: Alpha numeric dim elements not getting loaded through TI

Post by anoops81 »

Hi Matt ,

This is a dimension hierarchy which i tried to load through a TI and the elements in the hirearchy looks as below

table.JPG
table.JPG (47.11 KiB) Viewed 7218 times
The last column is not getting loaded into the dimension structure because of the numbers I believe.

Regards
Anoop

(Edited to include the dimension hierarchy structure as a table)
Last edited by anoops81 on Thu May 03, 2012 9:22 am, edited 2 times in total.
asutcliffe
Regular Participant
Posts: 164
Joined: Tue May 04, 2010 10:49 am
OLAP Product: Cognos TM1
Version: 9.4.1 - 10.1
Excel Version: 2003 and 2007

Re: Alpha numeric dim elements not getting loaded through TI

Post by asutcliffe »

anoops81 wrote:Hi Matt ,

This is a dimension hierarchy which i tried to load through a TI and the elements in the hirearchy looks as below

Functional Packs WS WS Other WS Other Service Fees 80.1.6 All Other Service Fees
Functional Packs WS WS Other WS Other Service Fees 80.1.5 AESS
Functional Packs WS WS Other WS Other Service Fees 80.1.4 Facilities & Security
Functional Packs WS WS Other WS Other Service Fees 80.1.3 HR
Functional Packs WS WS Other WS Other Service Fees 80.1.2 FRC/Finance Svce Fee
Functional Packs WS WS Other WS Other Service Fees 80.1.1 Procurement
Functional Packs WS WS Other WS Tech Service Fees 80.2.4 SWC
Functional Packs WS WS Other WS Tech Service Fees 80.2.3 Variable SQP
Functional Packs WS WS Other WS Tech Service Fees 80.2.2 Fixed SQP

The last column is not getting loaded into the dimension structure because of the numbers I believe.

Regards
Anoop
I don't think it's to do with the numbers. As much as I avoid "special" characters in element names, something like "80.1.6 All Other" should be a perfectly acceptable.

Are any elements from that last column getting added at all? How is your file delimited? You could perhaps post the code from the metadata tab of your process too.

Cheers,
Alex
Duncan P
MVP
Posts: 600
Joined: Wed Aug 17, 2011 1:19 pm
OLAP Product: TM1
Version: 9.5.2 10.1 10.2
Excel Version: 2003 2007
Location: York, UK

Re: Alpha numeric dim elements not getting loaded through TI

Post by Duncan P »

A screenshot of the preview pane and the Variables tab would also be most helpful.
anoops81
Posts: 101
Joined: Tue May 12, 2009 8:20 am
OLAP Product: TM1
Version: 9.5.2
Excel Version: Office 2010

Re: Alpha numeric dim elements not getting loaded through TI

Post by anoops81 »

Hi Alex,

No element with number & string together is getting loaded.

Please find the metadata code

Code: Select all

if(l7@<>'');
if(dimix('Test_Func',l7)>0);
parent=elpar('Test_Func',l7,1);
    if(parent@<>l8);
    DimensionElementComponentDelete('Test_Func', parent,l7);
    DimensionElementComponentAdd('Test_Func', l8,l7, 1);
    endif;
else;
DimensionElementComponentAdd('Test_Func', l8,l7, 1);
endif;
endif;

The level check is repeated for all the levels.


Regards
Anoop
Duncan P
MVP
Posts: 600
Joined: Wed Aug 17, 2011 1:19 pm
OLAP Product: TM1
Version: 9.5.2 10.1 10.2
Excel Version: 2003 2007
Location: York, UK

Re: Alpha numeric dim elements not getting loaded through TI

Post by Duncan P »

Without knowing how the variables l8 and l7 map to the columns of the data it is difficult to work out what it going wrong. You have shown only five columns in your sample data and yet the variable names seem to indicate at least 8.
From the naming it also appears that level 8 is the parent of level 7. Does that mean then that level 0 is the leaf? If so where is the code for that?

Why not just attach the .PRO file and the source data file then we can see exactly what is happening, rather than drip-feeding us only what you think we need to know?
asutcliffe
Regular Participant
Posts: 164
Joined: Tue May 04, 2010 10:49 am
OLAP Product: Cognos TM1
Version: 9.4.1 - 10.1
Excel Version: 2003 and 2007

Re: Alpha numeric dim elements not getting loaded through TI

Post by asutcliffe »

anoops81 wrote:

Code: Select all

if(l7@<>'');
if(dimix('Test_Func',l7)>0);
parent=elpar('Test_Func',l7,1);
    if(parent@<>l8);
    DimensionElementComponentDelete('Test_Func', parent,l7);
    DimensionElementComponentAdd('Test_Func', l8,l7, 1);
    endif;
else;
DimensionElementComponentAdd('Test_Func', l8,l7, 1);
endif;
endif;
The level check is repeated for all the levels.


Regards
Anoop
The code above will remove l7 from it's first parent (if any) and add l7 as a child of l8.

As Duncan suggested, a screenshot of your variables and the preview pane would help. Which column is l7 and which is l8? Or are these variables set/manipulated somewhere else on the metadata tab?

edit: Duncan beat me to it.
anoops81
Posts: 101
Joined: Tue May 12, 2009 8:20 am
OLAP Product: TM1
Version: 9.5.2
Excel Version: Office 2010

Re: Alpha numeric dim elements not getting loaded through TI

Post by anoops81 »

Hi All ,

I was able to load the data with out the parent check . Checking on the file to see what is happening .

Keep you posted soon .

Thanks & Regards
Anoop
anoops81
Posts: 101
Joined: Tue May 12, 2009 8:20 am
OLAP Product: TM1
Version: 9.5.2
Excel Version: Office 2010

Re: Alpha numeric dim elements not getting loaded through TI

Post by anoops81 »

Hi All ,

The elements are getting added only once as per the TI . Hence I got a feeling that some elements are ignored by TI .

Changed the TI so that it will check for parent and delete the element from the parent consolidation .

Sorry that I could not provide all the needed information for you guys.

Thanks a lot for replying very fast & I really appreciate it .

Anoop
Post Reply