I've converted a DeskI report to WebI BI4.1 SP6. Conversion was fully successful.
However, some measures and variables in the WebI report are displayed as #DATATYPE.
Looking at the universe (UNV), I've found that the measures having the issue are using the DECODE function in their select clause.
example: DECODE(company_code, 0, field1, field2)
The data type of the object is numeric, as it should be.
The WebI report is refreshed with no issues.
In the Data cube I see the correct numbers.
The only problem is with displaying these numbers in the report.
If the DECODE function is omitted from the universe object's syntax, the numbers are displayed correctly.
As a workaround, I changed the DECODE statement into a CASE statement and now everything is working.
Did anyone came across such a mystery? How is the select clause affecting the report display?