0
我使用if-then-else语句在IBM Cognos Report Studio 10.2.2上的查询连接中定义变量。在'then'子句中,我使用硬编码的字符串'Not reportable'。对于'else'子句,我使用变量[Generational Distribution],它在查询连接中的其他位置定义,并且是来自其中一个连接查询的字符串值变量。因此,我期望'then'和'else'子句都是字符串值。为什么我被告知我的'then'和'else'表达式不是同一类型?
然而,当我跑,我得到以下错误:
OP-ERR-0206 Unsupported 'if' expression dataItem = "Generation Reportable." The 'then'
(expression = "'Not reportable'") and 'else' (expression = "[Generational Distribution]")
clauses must have the same data type.
的细节着手:
RSV-SRV-0042 Trace back:RSReportService.cpp(724): QFException: CCL_CAUGHT:
如果您提供了您正在使用的实际表达式,这将有所帮助。 – Johnsonium