Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
Performance Management
Lawson Business Intelligence/Reporting/Crystal
Scheduled report with no data.. prevent from emailing?
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
Raju
Past 24 Hours:
1
Prev. 24 Hours:
1
Overall:
5205
People Online:
Visitors:
308
Members:
1
Total:
309
Online Now:
John F
New Topics
Lawson S3 HR/Payroll/Benefits
Post Tax Benefit Plan Table
11/14/2024 9:16 PM
Hi, totally new to Laswon. I have a repor
Lawson S3 Procurement
ED501 Error: Map 850 not supported by /law/c15vda/lawson/test10/edi/bin/laws_out_91
11/12/2024 3:47 PM
Tried runnning ED501 and getting the atathced erro
Lawson Smart Office
Error
11/6/2024 9:54 PM
When I try to enroll a retiree in 72.1 health plan
Infor CloudSuite
Syteline: New Data Maintenance Wizard (Error) Need help
11/1/2024 4:39 PM
Hi, I need help with an error on syteline while us
Infor ERP (Syteline)
Syteline: New Data Maintenance Wizard (Error) Need help
11/1/2024 4:24 PM
Hi, I need help with an error on syteline while us
Dealing with Lawson / Infor
Implementing Lawson v10 with Cerner Surginet, Case Cart Picking, and Quick Adds for the OR
10/29/2024 4:20 PM
Hi Everyone, I am wondering if there is any org
Lawson S3 HR/Payroll/Benefits
Canada Tax Calculation (Federal and Provincial) Issue
10/23/2024 5:00 AM
Initially, we had problem with CPP2 calculation is
Lawson S3 HR/Payroll/Benefits
CA Section 125 401k Plan
10/22/2024 10:13 PM
Does anyone have any recommendations on how to fac
S3 Systems Administration
Running AC120 deleted records from ACMASTER table
10/22/2024 3:40 PM
We recently ran the AC120 as normal and somehow it
Lawson S3 Procurement
RQ13 Approval Info
10/17/2024 2:12 PM
When a Requisition is approved on RQ13, what table
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3291
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1369
Roger French
1315
mark.cook
1244
Forums
Filtered Topics
Unanswered
Unresolved
Announcements
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
Performance Management
Lawson Business Intelligence/Reporting/Crystal
Scheduled report with no data.. prevent from emailing?
Please
login
to post a reply.
4 Replies
0
Subscribed to this topic
22 Subscribed to this forum
Sort:
Oldest First
Most Recent First
Author
Messages
Jeroen
Basic Member
Posts: 6
4/22/2010 8:08 PM
Thanks for taking the time to read this
we're pretty new at Lawson in general (pre go-live stage), and I am appointed as the "LBI man",
so far so good, but I'm facing a constant challenge:
We have several Crystal Reports now, and some of them are scheduled in LRS to be delivered through email.
The nag is: when there is no data on the report (either because of bursting, or because the underlying query just turns up empty) there will still be an email, containing a .pdf file with...well, nothing.
I've searched the world to prevent empty reports from being sent but I have not been succesful.
Have any of you encountered the same issue and have been able to tackle it?
I would also be happy to learn about a way to change the subject of the email conditionally...like if there's no data, present that fact in the subject, or..provide a sum / count or the no. of records in the report as a part of the email's subject.
I have found neither of these two options anywhere, so any help would be appreciated.
Jeroen.
Matthew Nye
Veteran Member
Posts: 514
4/22/2010 8:22 PM
Id say about the closest you are going to get is inserting a hidden section in your Crystal Report that displays a note that there is no data when no rows are returned.
One possibility that I havent explored that is the use of System Variables. They are typically used in parameters but if they can be used in the Subject line of a schedule you might be able create customized server side code to check the number of rows returned. Probably a bit more work than you want to do for this but a thought.
You can always put in an Enhancement Request with Lawson and cross your fingures.
hth
Matt
Shane Jones
Veteran Member
Posts: 460
4/23/2010 11:12 AM
Might be a bit kludgey but...
Is there a way that you could use the system events schedule. I am thinking that you might be able to have a report run on a schedule where it looks for the system event and then when the system event either happens or does not happen it would trigger the emailed report.
I have not used the system events but I just looked at the help on EVENTS and it looks like you could create a pre-event that would look for something to decide if the report should run or not. If that is the case you could create an event that looks for data before running.
Shane Jones
Veteran Member
Posts: 460
4/23/2010 11:33 AM
Just played with the Events and you can create a "File-Based" event. I created a file-based event that looks for a file on the server. If you schedule a report with events and then setup the file as the "Event to wait for" you can stop the report if the file does not exist. The File that it would be looking for does not have to have anything in it... It just looks to see if the file exists.
Now use another program to drop a file in the location before you are running the Crystal report. You would only drop the file when your query has results. A stored procedure or process flow could easily drop a file in the location. (Come to think of it - I would probably try to do this in the reverse and make it run when no file exists so that if the first part of your process ever fails the users will get an empty report. The reverse might mean someone would not get a report when they should have.)
** This is not an ideal solution just because of the complexity and the fact that you will be relying on two programs to make this happen and three separte processes. (droping a file, running report, removing file) I still think it is possible and if you work the solution correctly the risk of one part failing would just mean that a user would get the empty report..... Good luck.
vishcom
New Member
Posts: 1
11/3/2010 11:19 PM
Can you tell me pls, how to schedule a report in LBI, as i am a new user I did get the device users on and had the test report sending to me ok, but when i use that for schedule from My Reports ->
->Details->then data settings/General Properties/ Data Settings/Output Options then New Schedule/Run Date and Time & Report Users .... am i missing something there ??
or to come to my email .. what am i exactly missing ... or what is the exact procedure .. thanks a lot in advance .. running version 9.0.3 (LBI)
abc
Please
login
to post a reply.