BI Publisher (MOSC)

MOSC Banner

SQL Query using the IN Syntax & Passing Parameter

edited Feb 8, 2012 8:28AM in BI Publisher (MOSC) 5 commentsAnswered
The BI Publisher Data model does not compile using the IN syntax and parameters . When a value is hard-coded in the IN parameter the result set is generated.
Creating a data model with a simple select statement from the Company Constants table using the in syntax and parameter returns the error

SQL Query :
select "F0010"."CCC0" as "CCCO" , "F0010"."CCNAME" as "CCNAME" from "PRODDTA"."F0010" "F0010"
where "F0010"."CCCO" in (:Param1)

Error: [SQL0206] Column or Global variable NULL not found

The same query with the hard coded value returns the data

SQL Query :
select "F0010"."CCC0" as "CCCO" , "F0010"."CCNAME" as "CCNAME" from "PRODDTA"."F0010" "F0010"

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center