Data load not loading couple rows

Post Reply
kaazimraza
Posts: 95
Joined: Mon Jun 25, 2012 6:58 am
OLAP Product: TM1, SSAS, Power BI
Version: 10.2.2
Excel Version: 2016

Data load not loading couple rows

Post by kaazimraza »

Hi all -

I have again ran into a weird scenario, as like my previous post. I am loading data into a cube through TI. Its product data having standard sales & revenue stats. The weird behavior is that its leaving out 2/3 rows for some of the products for some months. There's no logic as such within the TI besides mapping target dimensions with data source columns etc. Data source is a CSV ha1 enving around 46000 rows as its summarized data.

Any idea why TI or TM1 engine is doing like this? I know its a very vague question, but I don't have as such details b/c there's no logic whatsoever within the TI. Moreover, had it been loading all stats incorrectly I'd have suspected something going fishy maybe at the data source or on TM end, however, its acting weirdly for about 2% to 5% of the entire data set.

Thanks.
Thanks,

Kaz
Alan Kirk
Site Admin
Posts: 6667
Joined: Sun May 11, 2008 2:30 am
OLAP Product: TM1
Version: PA2.0.9.18 Classic NO PAW!
Excel Version: 2013 and Office 365
Location: Sydney, Australia
Contact:

Re: Data load not loading couple rows

Post by Alan Kirk »

kaazimraza wrote: I have again ran into a weird scenario, as like my previous post. I am loading data into a cube through TI. Its product data having standard sales & revenue stats. The weird behavior is that its leaving out 2/3 rows for some of the products for some months. There's no logic as such within the TI besides mapping target dimensions with data source columns etc. Data source is a CSV ha1 enving around 46000 rows as its summarized data.

Any idea why TI or TM1 engine is doing like this? I know its a very vague question, but I don't have as such details b/c there's no logic whatsoever within the TI. Moreover, had it been loading all stats incorrectly I'd have suspected something going fishy maybe at the data source or on TM end, however, its acting weirdly for about 2% to 5% of the entire data set.
My initial suspicion would fall on the source data, particularly if it's coming from a relational database, more particularly if it includes some kind of descriptive field which might have some kind of non-visible end of file marker (or other control characters which have the same effect) embedded in it.

The approach that I would take would be to use Ascii / Text Outputs to determine the last row loaded. I'd then extract that row and a couple on either side from the data file and put them into something like Notepad ++ which can show you any extraneous characters.
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
kaazimraza
Posts: 95
Joined: Mon Jun 25, 2012 6:58 am
OLAP Product: TM1, SSAS, Power BI
Version: 10.2.2
Excel Version: 2016

Re: Data load not loading couple rows

Post by kaazimraza »

Hi Alan -

Thanks for the reply. I am currently comparing the CSV and the rows that have been loaded into TM1 to identify the missing rows first and then inspect them.

Thanks.
Thanks,

Kaz
rmackenzie
MVP
Posts: 733
Joined: Wed May 14, 2008 11:06 pm

Re: Data load not loading couple rows

Post by rmackenzie »

kaazimraza wrote:The weird behavior is that its leaving out 2/3 rows for some of the products for some months. There's no logic as such within the TI besides mapping target dimensions with data source columns etc..
Have you checked if you are accumulating to the target cells? This is a setting in the TI 'wizard' that you should see somewhere in the 'Maps' tab.

If you have multiple rows that map to the same cube intersection you may only be seeing the result of the last row. It's a common issue even with 'summarised' data sources. E.g.

Product.....Region.....Month....Sales$
---------------------------------------------
P1...........NSW.......Jan........100
P1...........NSW.......Jan........200
P1...........NSW.......Jan........300
P2...........NSW.......Jan........100
P2...........VIC.........Jan........100

In the example only the 3rd, 4th and 5th rows load if you aren't accumulating into the cells - you'd see $300 for P1/ NSW instead of $600.
Robin Mackenzie
kaazimraza
Posts: 95
Joined: Mon Jun 25, 2012 6:58 am
OLAP Product: TM1, SSAS, Power BI
Version: 10.2.2
Excel Version: 2016

Re: Data load not loading couple rows

Post by kaazimraza »

Hey thanks for the reply. I agree to you point, but in that case I should have gotten the last row's result, whereas my result set is missing only a percentage worth of data.

My data goes something like this

ProductCode TotalSales TotalLossToCompetition
001-------------------5-------------------1
001-------------------4-------------------0
004-------------------5-------------------0
004-------------------5-------------------1
001-------------------4-------------------2

From above data, i am getting 10 for 004 which is correct, but for Product 001, i am getting 9. so either the 2nd or last row is not being picked up. Interestingly, TotalLossToCompetition accumulates to proper results :).

Thanks.

KR.
Thanks,

Kaz
AmbPin
Regular Participant
Posts: 173
Joined: Sat Mar 20, 2010 3:03 pm
OLAP Product: TM1
Version: 9.5.2
Excel Version: 2007-10

Re: Data load not loading couple rows

Post by AmbPin »

How are you splitting up each line into individual fields?
kaazimraza
Posts: 95
Joined: Mon Jun 25, 2012 6:58 am
OLAP Product: TM1, SSAS, Power BI
Version: 10.2.2
Excel Version: 2016

Re: Data load not loading couple rows

Post by kaazimraza »

AmbPin wrote:How are you splitting up each line into individual fields?
By simply defining the maps. So TotalSales from source CSV is mapped to one of the members in measure dimensions, that is it. No calculation what so ever.
Thanks,

Kaz
User avatar
Steve Rowe
Site Admin
Posts: 2464
Joined: Wed May 14, 2008 4:25 pm
OLAP Product: TM1
Version: TM1 v6,v7,v8,v9,v10,v11+PAW
Excel Version: Nearly all of them

Re: Data load not loading couple rows

Post by Steve Rowe »

Don't forget that if youa re ignoring any fields in the input you will usually create duplicate rows that means if you are not accumulating your data you will get the incorrect result.

Set your TI up to accumulate the data and see if you still have an issue.
HTH
Technical Director
www.infocat.co.uk
Post Reply