system
January 18, 2011, 1:51pm
#17
No, I am not getting any SQL error or anyting.I scheduled the report with Data and No data still it can be scheduled into my Inbox.
So, Is there anyting I need to do to make this happen “Scheduled only those reports which has data”.
Thanks
Pooja
ktm (BOB member since 2008-11-12)
system
January 18, 2011, 1:58pm
#18
I asked if you got the error when running the report interactively (not scheduled).
case when count(Customer Number) > 0 then 1/0 end
I assume this isn’t a direct copy/paste, since there’s a space in the field name. But as it is, it’ll fail only when there is data.
joepeters (BOB member since 2002-08-29)
system
January 18, 2011, 2:31pm
#19
No, When i run the Query there is no SQL error.
I have customer Number Object, Payment and in the second query i have taken the measure which i created in the universe.
case when count(Customer Number) > 0 then 1/0 end.
When i ran the Query there is no effect.
FYI- we have Space in the Customer Number object.
Thanks
Pooja
ktm (BOB member since 2008-11-12)
system
January 18, 2011, 2:34pm
#20
What does the complete query look like?
joepeters (BOB member since 2002-08-29)
system
January 18, 2011, 2:43pm
#21
we have two query :
Query 1:
SELECT
Customer.CustomerID
FROM
Table…
Query 2:
SELECT
case when count(Customer.CustomerID) = 0 then 1/0 end
FROM
Table…
Thanks
Pooja
ktm (BOB member since 2008-11-12)
system
January 18, 2011, 2:46pm
#22
This query:
SELECT
case when count(Customer.CustomerID) = 0 then 1/0 end
FROM
Table.....
should fail if the table is empty, or the conditions produce no rows. You do not get an error? What do you get for a result in that column?
joepeters (BOB member since 2002-08-29)
system
January 18, 2011, 2:52pm
#23
There is no Query Corresponding to this Query.
Thanks
Pooja
ktm (BOB member since 2008-11-12)
system
January 18, 2011, 2:56pm
#24
That’s the result in the report? Or an error message?
joepeters (BOB member since 2002-08-29)
system
January 18, 2011, 2:58pm
#25
No Error At All.
Should I need to add any function, like Combined Query?
Thanks
Pooja
ktm (BOB member since 2008-11-12)
system
January 18, 2011, 3:00pm
#26
You are confusing me. What is this?:
joepeters (BOB member since 2002-08-29)
system
January 18, 2011, 3:10pm
#27
When I schedule this report it is successful.We just want to fail when data is not available in the report.
Thanks
Pooja
ktm (BOB member since 2008-11-12)
system
January 18, 2011, 3:13pm
#28
I understand that. If you want my help, you need to answer my questions.
joepeters (BOB member since 2002-08-29)
system
January 18, 2011, 3:22pm
#29
What is your questions?
Thanks
Pooja
ktm (BOB member since 2008-11-12)
system
January 18, 2011, 3:24pm
#30
This query:
SELECT
case when count(Customer.CustomerID) = 0 then 1/0 end
FROM
Table.....
should fail if the table is empty, or the conditions produce no rows. You do not get an error? What do you get for a result in that column?
joepeters (BOB member since 2002-08-29)
system
January 18, 2011, 3:26pm
#31
sorry actually i was also confuse that SQL error means I will get the SQL error so i have written the above post.
Sorry , if i have made you confuse.
Thanks
Pooja
ktm (BOB member since 2008-11-12)
system
January 18, 2011, 3:33pm
#32
So you do get an error message. That’s good. That is what will prevent the report from distributing when scheduled.
joepeters (BOB member since 2002-08-29)
system
January 18, 2011, 3:41pm
#33
But , When i schedule into the User In box I can see the reports into their folders.it is not failed.
Thanks
Pooja
ktm (BOB member since 2008-11-12)
system
January 18, 2011, 3:42pm
#34
So it fails when you run it interactively, but runs when scheduled? That doesn’t make sense. What do you get in the body of the report when the scheduled report runs?
joepeters (BOB member since 2002-08-29)
system
January 18, 2011, 3:49pm
#35
I did not see any data in the report but i can see the layout of the report.
It should fail schedule when I schedule right?
Thanks
Pooja
ktm (BOB member since 2008-11-12)
system
January 18, 2011, 4:30pm
#36
This link my help you
https://bobj-board.org/t/151998
aniketp (BOB member since 2007-10-05)