COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: pooja on 30 Mar 2010 09:23:53 AM

Title: regarding this issues
Post by: pooja on 30 Mar 2010 09:23:53 AM
 Invalid coercion from 'value' to 'string' for 'if (PageNumber() = 1) then ([End Date]) else (' ')'.


thank you in advance
Title: Re: regarding this issues
Post by: addpremkumar on 31 Mar 2010 01:48:53 AM
Pagenumber function may retun in string format change it and try
Title: Re: regarding this issues
Post by: Gopinath on 31 Mar 2010 10:07:58 AM
The data type returned by the expression should be the same

In your case
then ([End Date])  - returns a date
else (' ')'  -  returns a String