CSV file as data source, why TI is reading one more column?

Post Reply
lynnsong986
Posts: 73
Joined: Wed Feb 28, 2018 2:20 pm
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2016

CSV file as data source, why TI is reading one more column?

Post by lynnsong986 » Thu Nov 07, 2019 9:15 pm

Hello,

I have a CSV file with 12 columns as data source, but the preview shows V1.......all the way up till v13 (all blanks underneath it - v13 is non existing in the CSV, column 13 has absolutely nothing), also there are 13 variables in the Variable tab. How can I get rid of this v13?

thanks so much!

ascheevel
Posts: 85
Joined: Fri Feb 15, 2013 5:49 pm
OLAP Product: TM1
Version: 11.2
Excel Version: 2016

Re: CSV file as data source, why TI is reading one more column?

Post by ascheevel » Thu Nov 07, 2019 9:20 pm

What harm is variable V13 causing you? You can simply ignore it.

lynnsong986
Posts: 73
Joined: Wed Feb 28, 2018 2:20 pm
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2016

Re: CSV file as data source, why TI is reading one more column?

Post by lynnsong986 » Thu Nov 07, 2019 10:23 pm

it's not causing anything really, I just don't understand why it showed up...but I guess I can definitely ignore it :) sounds like this does happen in TM1... thanks!

lotsaram
MVP
Posts: 3317
Joined: Fri Mar 13, 2009 11:14 am
OLAP Product: TableManager1
Version: PA 2.0.x
Excel Version: Office 365
Location: Switzerland

Re: CSV file as data source, why TI is reading one more column?

Post by lotsaram » Thu Nov 07, 2019 11:19 pm

Because number of fields = number of separators + 1
If the last field has a trailing separator then this marks the start of a new field.
Please place all requests for help in a public thread. I will not answer PMs requesting assistance.

Wim Gielis
MVP
Posts: 2258
Joined: Mon Dec 29, 2008 6:26 pm
OLAP Product: TM1
Version: PAL 2.0.8
Excel Version: Office 365 - latest
Location: Brussels, Belgium
Contact:

Re: CSV file as data source, why TI is reading one more column?

Post by Wim Gielis » Thu Nov 07, 2019 11:59 pm

Indeed, make sure there are not additional separators.
If an Excel file is the basis for the csv, then make sure that the last cell in Excel (Ctrl-End) matches the last cell of your data.
If not, remove all columns (and rows) that are excessive, save the file (important!) and then save as csv again.
Best regards,

Wim Gielis

Excel Most Valuable Professional, 2011-2014
http://www.wimgielis.com ==> 109 TM1 articles and a lot of custom code
Newest blog article: Set up a TM1 model with AutoHotKey as a service or application

lynnsong986
Posts: 73
Joined: Wed Feb 28, 2018 2:20 pm
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2016

Re: CSV file as data source, why TI is reading one more column?

Post by lynnsong986 » Fri Nov 08, 2019 1:18 am

Wow that must be it!! thanks so much for your time letting me know!

Post Reply