Equal sign not found error
-
- Posts: 15
- Joined: Sun Mar 08, 2015 1:29 am
- OLAP Product: TM1
- Version: 10.1.2
- Excel Version: microsoft excel 2007
Equal sign not found error
Hi,
I am new to Tm1.. i am getting syntax error
VArchive Years = '2013';
VArchive Quarters ='Q1';
if (VALUE_IS_STRING=1, CellPutS(SVALUE,Tcube,Vlocation,Vyear,VCounter,Vassetp,VArchive Years,VArchive Quarters),
CellIncrementN(NVALUE,Tcube,Vlocation,Vyear,VCounter,Vassetp,VArchive Years,VArchive Quarters));
I am getting syntax error
Years='2013;
equal to sign not found
I am new to Tm1.. i am getting syntax error
VArchive Years = '2013';
VArchive Quarters ='Q1';
if (VALUE_IS_STRING=1, CellPutS(SVALUE,Tcube,Vlocation,Vyear,VCounter,Vassetp,VArchive Years,VArchive Quarters),
CellIncrementN(NVALUE,Tcube,Vlocation,Vyear,VCounter,Vassetp,VArchive Years,VArchive Quarters));
I am getting syntax error
Years='2013;
equal to sign not found
-
- 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: Equal sign not found error
Is that a space I see between the words VArchive and Years? You can't have spaces in variable names. That is a cardinal rule in every programming language I've ever heard of.cherry4 wrote:VArchive Years = '2013';
-
- Posts: 15
- Joined: Sun Mar 08, 2015 1:29 am
- OLAP Product: TM1
- Version: 10.1.2
- Excel Version: microsoft excel 2007
Re: Equal sign not found error
HI,
My dimensions have space anyway i have removed the spaces it is saying variable undefined
My dimensions have space anyway i have removed the spaces it is saying variable undefined
-
- Posts: 15
- Joined: Sun Mar 08, 2015 1:29 am
- OLAP Product: TM1
- Version: 10.1.2
- Excel Version: microsoft excel 2007
Re: Equal sign not found error
Hi,
I have changed it without spaces it got saved but when i executed it saying
errorin meassage log that cell type is real
I have changed it without spaces it got saved but when i executed it saying
errorin meassage log that cell type is real
-
- 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: Equal sign not found error
Tomok said, correctly, that you cannot have spaces in Variable names. This has not the first thing to do with whether you have spaces in Dimension names. (Which you shouldn't, nor should you use anything but alphanumeric characters or underscores, but that's a separate discussion.)cherry4 wrote:HI,
My dimensions have space anyway i have removed the spaces it is saying variable undefined
That usually means that you are trying to write a string value into a numeric cell. I note that you are doing the VALUE_IS_STRING=1 test, but that's testing what the value is in the data source, which may not be the same as what it is in the target cell.cherry4 wrote:I have changed it without spaces it got saved but when i executed it saying
errorin meassage log that cell type is real
"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.
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
-
- Posts: 15
- Joined: Sun Mar 08, 2015 1:29 am
- OLAP Product: TM1
- Version: 10.1.2
- Excel Version: microsoft excel 2007
Re: Equal sign not found error
Hi,
I have set variable to numeric and given only CELLINCREMENTN function but still i am getting this error
"850","2011 5YR Plan","1","Job No.","01580-20-36-04",Data Source line (1) Error: Data procedure line (0): Cannot convert field number 5, value "01580-20-36-04" to a real number.
I have set variable to numeric and given only CELLINCREMENTN function but still i am getting this error
"850","2011 5YR Plan","1","Job No.","01580-20-36-04",Data Source line (1) Error: Data procedure line (0): Cannot convert field number 5, value "01580-20-36-04" to a real number.
-
- 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: Equal sign not found error
First of all, you can't set a variable to numeric in TM1, there is no such setting. The variable type is determined by the value that is inside it. In your case, "01580-20-36-04" is a string so you can't write it to a numeric cell. You would have to convert it to a number first. What that would be is a mystery to me. 01580 minus 20 minus 36 minus 04???cherry4 wrote:I have set variable to numeric
-
- 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: Equal sign not found error
For a user defined variable, yes. But I suspect that cherry4 is referring to a data source variable's "Variable Type" setting.tomok wrote:First of all, you can't set a variable to numeric in TM1, there is no such setting. The variable type is determined by the value that is inside it.cherry4 wrote:I have set variable to numeric
Quite.tomok wrote: In your case, "01580-20-36-04" is a string so you can't write it to a numeric cell. You would have to convert it to a number first. What that would be is a mystery to me. 01580 minus 20 minus 36 minus 04???
Cherry4, you can't just set a variable type and have it magically convert to that variable type. If you set the type to "Numeric" it has to BE something that can be read directly as a number, which that expression cannot be. That means digits, a decimal separator, possibly thousands separators ONLY. Otherwise you have to parse the value to convert it to a number.
Incidentally, you haven't specified what your data source is. VALUE_IS_STRING only works when the data source is a cube view. I suspect that yours isn't.
"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.
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
-
- Posts: 15
- Joined: Sun Mar 08, 2015 1:29 am
- OLAP Product: TM1
- Version: 10.1.2
- Excel Version: microsoft excel 2007
Re: Equal sign not found error
Hi,
I have measure dimension which got 11 facts combination of strings and numbers ..I don't understand how to pass these values to target cube
I have measure dimension which got 11 facts combination of strings and numbers ..I don't understand how to pass these values to target cube
-
- 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: Equal sign not found error
It would help if we had full details as described in the Request For Assistance Guidelines.cherry4 wrote:Hi,
I have measure dimension which got 11 facts combination of strings and numbers ..I don't understand how to pass these values to target cube
At present we have no idea what your data source is, no idea what fields are coming through your data, no idea of what the dimensions of your cube are, and no idea what your measures are.
"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.
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
-
- Posts: 15
- Joined: Sun Mar 08, 2015 1:29 am
- OLAP Product: TM1
- Version: 10.1.2
- Excel Version: microsoft excel 2007
Re: Equal sign not found error
Consider Product dimension
in that in Job column i have:01580-20-36-04
Description:Records Management Sharepoint Software Implentation
Estimated Cost:1016851
Completion Date:15-May
these are elements in product dimension
How can copy these values to Target cube they are combination of string and numeric.
in that in Job column i have:01580-20-36-04
Description:Records Management Sharepoint Software Implentation
Estimated Cost:1016851
Completion Date:15-May
these are elements in product dimension
How can copy these values to Target cube they are combination of string and numeric.