Source file contains double quote that results in error

Post Reply
harrytm1
Regular Participant
Posts: 226
Joined: Thu Apr 02, 2009 2:51 pm
OLAP Product: IBM Planning Analytics
Version: Latest version
Excel Version: 2003 to 2019

Source file contains double quote that results in error

Post by harrytm1 »

Hi all,

I have a TI process that creates elements in the Material dimension. The source file is tab delimited.

The order of the columns are:
- Material Code
- Description
- Type

The TI was executed successfully and created more than 10,000 elements. However, on closer inspection, those Materials with a double quote in the Description such as " Diameter 3/8" " will get cause the rest of the fields (i.e. Type) and the subsequent roles to be joined together. Since Description is an alias attribute that is set up in Material dimension, the whole Description becomes very long since it is a concatenation of a few lines.

This long concatenation will only stop when it next encounters another double-quote.

I tried to define the delimiter by using the following in Prolog:
cTab = Char(9);
DatasourceASCIIDelimiter= cTab;

But the problem still persists. I'm using both TM1 10.1 and 9.5.2 FP2 and both are giving the same issue.

Please advise. Thanks!

harry
Planning Analytics latest version, including Cloud
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: Source file contains double quote that results in error

Post by Steve Rowe »

Have you tried setting the DatasourceASCIIQuoteCharacter=''; (ie null) and then managing the stripping out of the quotes yourself.

Can't see another way myself. The TI is always going to mess up if you have double quotes in a description
Cheers
Technical Director
www.infocat.co.uk
harrytm1
Regular Participant
Posts: 226
Joined: Thu Apr 02, 2009 2:51 pm
OLAP Product: IBM Planning Analytics
Version: Latest version
Excel Version: 2003 to 2019

Re: Source file contains double quote that results in error

Post by harrytm1 »

Thanks, Steve! It works!
Planning Analytics latest version, including Cloud
Post Reply