Upgrade to Cognos 10 woes
January 5, 2011 1 Comment
When you upgrade a report you’ll sometimes get a very annoying upgrade error. Something in the lines of:
RSU-SPC-0164 CSS style was removed. Unable to parse CSS Declaration: text-align:center;background-image:url(\\ImageServer\Folder\Image.png);background-position:center center;background-repeat:no-repeat;
When this happens you will be unable to run the report until you fix all validation errors, including the warnings. This can be a problem as warnings are just warnings – the report should still run be possibly not the way you expect. But what do you do if you’re performing a calculation that relies on something that throws a warning? Revalidating the report won’t help, because it still thinks there are upgrade errors.
The work-around that I’ve found is pretty dirty. When you copy the report to clipboard and look at the XML you’ll notice that at the very end of the specs there is an “upgradeInfo” tag.
RSU-SPC-0164 CSS style was removed. Unable to parse CSS declaration: background-image:url(\\ImagesServer\Images\Report Images\FirstPageBackground68.PNG);background-position:left top;background-repeat:no-repeatRSU-SPC-0164 CSS style was removed. Unable to parse CSS declaration: text-align:center;background-image:url(\\ImagesServer\Images\Report Images\Background68.png);background-position:center center;background-repeat:no-repeatמצגת ה”ר
Delete the upgradeInfo tag and open from clipboard. It won’t realize that it’s an upgraded report, and you’ll still be able to run it – despite the validation warnings.