BusinessObjects Board

If the record count = 0 report will fail

I need to run a schedule in BO 4.0 which is created in Oracle DB.
If the record count > 0. it will be deliver to my Email else it will fail.
I don’t want to receive empty excel in my email. is there any option available in BO 4.0 oracle and teradata DB.

I tried to create measure object as CAST(CASE count() WHEN 0 THEN ‘0rows’ ELSE count() END AS int) in universe and I got “parse failed: Exception: DBA. ORA-00932: inconsistent datatype: expected CHAR got NUMBER state : N/A” error . Its oracle DB.

Please help me to implement this requirement in universe and report level.
:hb:


sureshmohan :india: (BOB member since 2010-03-04)

You’re trying to cast the character string ‘0rows’ into an int; that’s a compile error, not a runtime error. You probably just want something like “1/count(*)”.

Joe


joepeters :us: (BOB member since 2002-08-29)

We implemented step by step the process described in this BOB post. We have multiple reports using it and it works fine.


IBN (BOB member since 2007-05-29)