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