TI error:URGENT

Post Reply
mincharug.shulft
Regular Participant
Posts: 155
Joined: Fri May 20, 2011 8:17 am
OLAP Product: Applix,Cognos TM!
Version: applix9.0Cognos tm1 9.5.1
Excel Version: Excel 2010 2007

TI error:URGENT

Post by mincharug.shulft »

The below script is in data tab in TI :
CubeName=’sale’;
vTTT_sale_rupees= StringtoNumber(TTT_sale_rupees);
IF(vTTT_sale_rupees <>'');
CellIncrementN (vTTT_sale_rupees, CubeName, p1 , t1 , time1 , ‘Sales_Measures’ ) ;
ENDIF;
Where my “TTT_sale_rupees” values are coming from oracle like this
120.0023
100.2002
201.01002
.
.
.
And I am getting the attached error while I am saving,can you please help as its urgent for me
Attachments
The below script is in data tab in TI.docx
(18.06 KiB) Downloaded 326 times
declanr
MVP
Posts: 1831
Joined: Mon Dec 05, 2011 11:51 am
OLAP Product: Cognos TM1
Version: PA2.0 and most of the old ones
Excel Version: All of em
Location: Manchester, United Kingdom
Contact:

Re: TI error:URGENT

Post by declanr »

Have you provided your EXACT code?

The screenshot suggests it actually contains "ddd_sales_dollars" and I can't see that in what you've provided.
mincharug.shulft wrote:The below script is in data tab in TI :
CubeName=’sale’;
vTTT_sale_rupees= StringtoNumber(TTT_sale_rupees);
IF(vTTT_sale_rupees <>'');
CellIncrementN (vTTT_sale_rupees, CubeName, p1 , t1 , time1 , ‘Sales_Measures’ ) ;
ENDIF;
Where my “TTT_sale_rupees” values are coming from oracle like this
120.0023
100.2002
201.01002
.
.
.
And I am getting the attached error while I am saving,can you please help as its urgent for me
Declan Rodger
mincharug.shulft
Regular Participant
Posts: 155
Joined: Fri May 20, 2011 8:17 am
OLAP Product: Applix,Cognos TM!
Version: applix9.0Cognos tm1 9.5.1
Excel Version: Excel 2010 2007

Re: TI error:URGENT

Post by mincharug.shulft »

The following is correct one:


vDDD_SALES_DOLLARS= StringToNumber(DDD_SALES_DOLLARS);
IF( DDD_SALES_DOLLARS @<> '');
CellIncrementN ( vDDD_SALES_DOLLARS, CubeName, CMA_ID , CP_Contracts , PRODUCT_BRAND_DSCR , vTIME_DATE_DAY , CP_Sales_Measures ) ;
ENDIF;



Where my “DDD_SALES_DOLLARS” values are coming from oracle like this
120.0023
100.2002
201.01002
200.9090
mincharug.shulft
Regular Participant
Posts: 155
Joined: Fri May 20, 2011 8:17 am
OLAP Product: Applix,Cognos TM!
Version: applix9.0Cognos tm1 9.5.1
Excel Version: Excel 2010 2007

Re: TI error:URGENT

Post by mincharug.shulft »

The following is correct one:


vDDD_SALES_DOLLARS= StringToNumber(DDD_SALES_DOLLARS);
IF( vDDD_SALES_DOLLARS @<> '');
CellIncrementN ( vDDD_SALES_DOLLARS, CubeName, CMA_ID , CP_Contracts , PRODUCT_BRAND_DSCR , vTIME_DATE_DAY , CP_Sales_Measures ) ;
ENDIF;



Where my “DDD_SALES_DOLLARS” values are coming from oracle like this
120.0023
100.2002
201.01002
200.9090
declanr
MVP
Posts: 1831
Joined: Mon Dec 05, 2011 11:51 am
OLAP Product: Cognos TM1
Version: PA2.0 and most of the old ones
Excel Version: All of em
Location: Manchester, United Kingdom
Contact:

Re: TI error:URGENT

Post by declanr »

Well as a starting point:

VDDD_sales_dollars @<>

Is illogical since it is not string but a number as per your stringtonumber function.
Declan Rodger
mincharug.shulft
Regular Participant
Posts: 155
Joined: Fri May 20, 2011 8:17 am
OLAP Product: Applix,Cognos TM!
Version: applix9.0Cognos tm1 9.5.1
Excel Version: Excel 2010 2007

Re: TI error:URGENT

Post by mincharug.shulft »

Thanks even i have used numbertostring though getting same error.actually my data is like this
120.0023
100.2002
201.01002
200.9090
declanr
MVP
Posts: 1831
Joined: Mon Dec 05, 2011 11:51 am
OLAP Product: Cognos TM1
Version: PA2.0 and most of the old ones
Excel Version: All of em
Location: Manchester, United Kingdom
Contact:

Re: TI error:URGENT

Post by declanr »

I don't think you've actually grasped my previous point.

A snapshot of your variables tab could help.
Declan Rodger
mincharug.shulft
Regular Participant
Posts: 155
Joined: Fri May 20, 2011 8:17 am
OLAP Product: Applix,Cognos TM!
Version: applix9.0Cognos tm1 9.5.1
Excel Version: Excel 2010 2007

Re: TI error:URGENT

Post by mincharug.shulft »

Attached
Attachments
Doc7.docx
(14.66 KiB) Downloaded 283 times
declanr
MVP
Posts: 1831
Joined: Mon Dec 05, 2011 11:51 am
OLAP Product: Cognos TM1
Version: PA2.0 and most of the old ones
Excel Version: All of em
Location: Manchester, United Kingdom
Contact:

Re: TI error:URGENT

Post by declanr »

You are doing stringtonumber on something that is already a number....
Declan Rodger
mincharug.shulft
Regular Participant
Posts: 155
Joined: Fri May 20, 2011 8:17 am
OLAP Product: Applix,Cognos TM!
Version: applix9.0Cognos tm1 9.5.1
Excel Version: Excel 2010 2007

Re: TI error:URGENT

Post by mincharug.shulft »

Mean to say i have to use Numbertostring or not required and are not required both(numbertostring and stringtonumber).
if i use @<> attached geting the attached error.
Attachments
Doc8.docx
(18.86 KiB) Downloaded 259 times
David Usherwood
Site Admin
Posts: 1458
Joined: Wed May 28, 2008 9:09 am

Re: TI error:URGENT

Post by David Usherwood »

Wouldn't you be better changing the variable type of DDD_SALES_DOLLARS to numeric and not doing the conversion in your code? And, why test for zeros (or '' as you have written it)? Just cellincrement the value - you don't need the if test at all.
mincharug.shulft
Regular Participant
Posts: 155
Joined: Fri May 20, 2011 8:17 am
OLAP Product: Applix,Cognos TM!
Version: applix9.0Cognos tm1 9.5.1
Excel Version: Excel 2010 2007

Re: TI error:URGENT

Post by mincharug.shulft »

Thanks lot david ur valuable reply BUT
As we are getting the some zero values for that i want to ommit the zero values and only non zero values i plan to load it as this process is talking 10 hours to load completly as table is having 1+ crores records.so this is approach correct?
tomok
MVP
Posts: 2836
Joined: Tue Feb 16, 2010 2:39 pm
OLAP Product: TM1, Palo
Version: Beginning of time thru 10.2
Excel Version: 2003-2007-2010-2013
Location: Atlanta, GA
Contact:

Re: TI error:URGENT

Post by tomok »

mincharug.shulft wrote:Thanks lot david ur valuable reply BUT
so this is approach correct?
I don't know. Is it urgent????? :roll:
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
David Usherwood
Site Admin
Posts: 1458
Joined: Wed May 28, 2008 9:09 am

Re: TI error:URGENT

Post by David Usherwood »

Probably a good idea to adjust the query to exclude zero rows before they reach TM1.
Probably also a good idea to explain what a crore is ie http://en.wikipedia.org/wiki/Crore - I don't believe it's a well known term outside South Asia.
Wim Gielis
MVP
Posts: 3241
Joined: Mon Dec 29, 2008 6:26 pm
OLAP Product: TM1, Jedox
Version: PAL 2.1.5
Excel Version: Microsoft 365
Location: Brussels, Belgium
Contact:

Re: TI error:URGENT

Post by Wim Gielis »

David Usherwood wrote:Probably also a good idea to explain what a crore is ie http://en.wikipedia.org/wiki/Crore - I don't believe it's a well known term outside South Asia.
Also... use this site: http://translate.google.com/
Whatever you do, it cannot be less clear than what you posted above.
Best regards,

Wim Gielis

IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
Post Reply