Schedule webi report to destination to Inbox AND send email notification
I'm writing a new process that will schedule a webi report. The output of the report needs to be delivered to multiple user's BO Inboxes AND an email notification (without the report attached) needs to be sent telling them that they have a new report to view in their Inbox. Trying to mimic how this is done via CMC Schedule - Notification and Destination tabs.
I can get it to deliver the report to the Inbox and I can get it to send an email seperately, but the problem I'm running into is that I can't get it to do both in the same process. Here is the code snippet that I've written. Any assistance would be appreciated.
// Retrieve the managed plugin
IInfoObjects managedInfoObjects = infoStore.query("Select SI_DEST_SCHEDULEOPTIONS, SI_PROGID From CI_SYSTEMOBJECTS Where SI_NAME = 'CrystalEnterprise.Managed'");
IInfoObject infoObject = (IInfoObject)managedInfoObjects.get(0);
IDestinationPlugin destinationPlugin = (IDestinationPlugin)infoObject;
IManaged managed = (IManaged)destinationPlugin;
// Set the destination to inbox
IManagedOptions managedOptions = (IManagedOptions)managed.getScheduleOptions();
managedOptions.setDestinationOption(IManagedOptions.CeDestinationOption.ceInbox);
managedOptions.setSendOption(IManagedOptions.CeManagedSendOption.ceCopy);
managedOptions.setIncludeInstance(true);
managedOptions.getDestinations().add(new Integer(ditUserID1));
managedOptions.getDestinations().add(new Integer(ditUserID2));
managedOptions.getDestinations().add(new Integer(ditUserID3));
scheduleInfo.getDestination().setFromPlugin(managed);
// Retrieve the smtp plugin. to send email notification
IInfoObjects smtpInfoObjects = infoStore.query("Select SI_DEST_SCHEDULEOPTIONS, SI_PROGID From CI_SYSTEMOBJECTS Where SI_PARENTID = 29 AND SI_NAME = 'CrystalEnterprise.Smtp'");
IInfoObject smtpInfoObject = (IInfoObject)smtpInfoObjects.get(0);
IDestinationPlugin smtpDestinationPlugin = (IDestinationPlugin)smtpInfoObject;
// Set to email notification on success
ISMTP smtp = (ISMTP)smtpDestinationPlugin;
ISMTPOptions smtpOptions = (ISMTPOptions)smtp.getScheduleOptions();
smtpOptions.setServerName("mailhost.XXXXX.net");
smtpOptions.setPort(25);
smtpOptions.setDomainName("XXXXX.com");
smtpOptions.setSenderAddress("XXXXX.com");
smtpOptions.setSubject("Indicative Data Update Reports");
smtpOptions.getToAddresses().add("XXXXX.com");
smtpOptions.setMessage("Test Message");
smtpOptions.setSMTPAuthenticationType(CeSMTPAuthentication.NONE);
scheduleInfo.getNotifications().getDestinationsOnFailure().add("New");
scheduleInfo.getDestination().setFromPlugin(smtp);
Edited by: Shannon Maret on Apr 21, 2009 7:02 PM
One thing to keep in mind is that "scheduling to SMTP" is different from "scheduling with email notification", and it looks like you're conflating the two. The ISchedulingInfo.getDestinations() is the access point for scheduling to SMTP and ISchedulingINfo.getNotifications() is the access point for scheduling with Notification.
> scheduleInfo.getNotifications().getDestinationsOnFailure().add("New");
You'd add the SI_PROGID of the SMTP Destination here, and work with the returned IDestination to set the destination parameters.
Sincerely,
Ted Ueda
Similar Messages
-
Schedule webi report using BW data source and send through email..
Hi all,
I want to schedule webi report and send it through email.
I am able to send through email.
here im got stopped how to schedule the report from bw data source . i have to schedule in webi infoview how to give date format in universe the report sholud run for (sysdate-2) daily
eg. today is 02-DEC-2011 if i schedule the report it should run for 30-NOV-2011. iam trying in both BW qyuery and CUBE im not getting how to give date format in
let me knw is there any solutions..
im using XIR3 3.1 sp3
bw 7.1
Integration kit sp3
Regards,
Ravi Sarma.it is resolvede by keeping sysdate-2 variable at bw query side i have solved my issue.
Regards
ravi -
Hi MSDN Forum,
I have created an Access Web App that I am hoping to add some functionality to. I am looking to provide email notification to different users from my organization (a field within the Access Table) when the current date approaches the renewal date (another
field within the Access Table). I would also like to display all renewal dates on a SharePoint Calendar for users to see. Any advice on how to do this would be much appreciated.
Thanks!I'm not familiar with how Access Web Apps work. However, on the SharePoint side of things, it looks like a workflow will be your best bet. Are you using Visual Studio? I've created a few tutorials on sending email notifications in Visual Studio 2012. https://youtu.be/JFdiQEyDkEk
-
Create a Recovering/Changing Password web form and send email notification
Hi all
I am looking for a web page or application that will allow an user to change his/her database password. I am thinking about those web forms where end users enter the current password and the new password, hit submit and the new password gets activated. Then the web form send an email notification
The database is an Oracle 10G database.
Is there any template similar to this one http://www.asp.net/learn/security/tutorial-13-vb.aspx for an Oracle database?
thanks
JWrite a stored procedure that uses native dynamic SQL and just pass in the new password.
-
Auto provisioning users and send email notification to the users
I currently have CUCM 10.5 setup to auto register phones and I use Cisco prime provisioning 10.5 to auto provision the users.
Self provisioning is setup and users can call the IVR number enter the self service ID, which is their DN.
what I would like to do is send an email notifying the end user of their setup and how to use their telephony device Example (Self-service ID: 8888, auth code: 3333) is this possible from Prime Provisioning or CUCM.Thanks Jamie
Wishful thinking I guess. It would have been seamless if they added that form of email notification to end users when auto provisioning. Anyways to get around that I used MS word mail merge and used the same spread sheet I used to batch provision the users to send the Self-service ID to the email contacts. -
Error when scheduling WEBI report to FTP server
Hi
We are getting error "destination directory error. CrystalEnterprise.Ftp: 550 Requested action not taken" while scheduling WEBI report to FTP server.
Any help would be appreciated
Regards,
AnisaHi All,
I want a run my report once by scheduling, so i provide a time interval for scheduling a report
start date/ time : 11:38:AM 10/30/2011
end date/time : 11:43:AM 10/30/2011
after completion of end time....report is failed and fetching an error
Error : Object could not be scheduled within the specified time Interval
Any solution for resolving this error -
Scheduled webi reports fail, why? If I restart BO services they work again
Hello.
I'm having a problem with my scheduled Webi reports and I don't know what is causing it. I have some reports scheduled to run at 8:00 am, and are supposed to be sent to a determined e-mail. Last week it worked well and the reports were sent to their destination successfuly, then this week the same reports didn't reach their destination. I verified in the History option and all of them showed a Failed status. I checked the detail and this is what it shows:
Unexpected exception caught. Reason: [java.lang.NullPointerException: i_statusInfo is null.]
If I try to reschedule these reports or any other report or a new report I get the same error. The only way I can make the schedule option work again for my webi reports is restarting BusinessObjects services.
But I guess this is not the right solution.
What can I do? How can I determine what is causing my scheduled webi reports fail?
What does this java.lang.NullPointerException: i_statusInfo is null message mean?
Is there a way I could track the service that is failing? which BO service is the service that manage the Schedule reports?
Any help is welcome.
Edited by: Erika Atencio on Sep 1, 2010 6:27 PM>
Efstratios Karaivazoglou wrote:
> Which version of BOBJ (incl. SP and FP) are you using?
>
> Regards,
>
> Stratos
BusinessObjects XI 3.1 SP2
FixPack 2.6
Edited by: Erika Atencio on Sep 1, 2010 8:46 PM -
Schedule webi report u2013 report should go under Public Folders in Info View
Hi Experts,
Schedule webi report
Destination -> File System u2013 what directory path I should give to move reports under Public Folders?
Is that possible to give the path of Public Folders as Destination directory?
Regards,
SasiTo see the latest instance of a report automatically you can change the default from view to view latest instance.
CMC > Applications > Infoview and select View the latest successful instance of the object
Then when you double click on the report, it will open the latest instance.
BUT if the report doesn't have an instance, eg only be run manually not via the schedule, the report won't open. You have to right click and select view.
I've seen either here or in another forum that in XI 2 it will automatically open the report if it doesn't have an instance but in XI 3.1 it doesn't. -
Problem scheduling webi reports with XI3.1 pending forever
Hello,
I've got a problem scheduling webi reports with XI3.1 scheduler.
After confiming scheduling job (loggin in with "administrator" user), status remains "pending" forever(using Infoview or CMC).
I tried different job recurrence a modalities (attachment formats, destination user etc).
I also try to add (-javaArgs "Xmx900m,Xincgc,server") wich is the SAP solution found on its portal but it does not work.
I use BO XI 3.1 in Windows 2003 server, after the install I reduced the maximum memory of Java in the tomcat 5.5.2 server from 1024 to 512 because the server never started with the initial size.
Please I need Help.
thanks in advance,
SamyHi,
Below SAP solution found found in BOB Forum.
I applied this solution and now everything works fine !!
I just add this -javaArgs "Xmx900m,Xincgc,server" in the command line of the server
Hope this helps:
Symptom
Scheduled WebIntelligence reports remain stuck in 'pending' status after installing Microsoft windows patches of April 2009. Restarting the Adaptive Job Server, Central Management Server or Server Intelligence Agent has no effect.
The Event Viewer logs show the following entry: Unable to start the sub-process (Job Server Child). Cause : Couldn't get IJob interface or writing IAudit: Pipe exception. Reason: jobserverchild (WebIJavaSchedulingService ReplicationSchedulingService, 0, Timeout waiting for Child [4716] to register ([120]seconds).
Reproducing the Issue
Install Business Objects Enterprise XI 3.x on a French Windows 2003 SP2 32bits server
Install the following Microsoft windows update patches of April 2009:
KB923561, KB925336, KB952004, KB956572, KB959426, KB960225, KB960803, KB961373, KB967715
Schedule a WebIntelligence report
The report remains in Pending status
Business Objects Enterprise XI 3.1
Windows 2003 SP2 32bit (French)
Microsoft windows patches of April 2009
Cause
With Microsoft windows patches of April 2009, the maximum Heap Size for java processes has been reduced to under 1000MB.
Resolution
Apply the following steps to fix the issue:
Launch the Central Management Console
Select Servers
Right click on <server_name>.Adaptive Job Server and select Properties
Add the switch -javaArgs "Xmx900m,Xincgc,server" in the command line of the server
Click on Save and Close
Restart the <server_name>.Adaptive Job Server
Regards .
Sam.
Edited by: samouber on Aug 21, 2009 2:54 PM -
Scheduling webi reports via Java SDK in BI 4.1
Hi,
Has anyone been able to schedule a Webi report containing date prompts via Java SDK in BI 4.1? I have tried doing so but it doesn't work when date prompts are involved, I get the exception raised: java.lang.NullPointerException error. Though the scheduled instance is created and the date prompt appears to be correctly populated the report fails with the above mentioned error message. The code is working for other text prompts but fails when I have a date prompt in the report. I am using the populateWebiPrompts() method to populate the prompts.
CFHi Christopher,
Try adding the following line in your code before scheduling:
iWebi.setUserInputLocaleName(documentInstance.getProperties().getProperty(PropertiesType.BASE_LOCALE));
Also as an FYI, please refer below details.
For scheduling webi reports with prompts, the only supported way is to use Restful webservices SDKs.
The feature of scheduling a webi report with prompts were deprected from release BI 4.x and introduced in the new restfull webservices. Restful is the future which SAP is focussing and would be great to have your application on supported terms with SAP.
You can get details about the restful webservices from the documents and blogs available at below forum
http://scn.sap.com/community/restful-sdk
Thanks,
Prithvi -
Hi,
When i schedule webi report as "Now", it takes some time to start? The status is in "Pending" state fo long time.
Could you please let me know
What is the reason behind this? How this can be resolved?
Thanks & Regards,
M.A.JilaniHi Khaled,
Normally when we schedule a report as "Now"..it takes hardly 1 min to start..
in my case it is taking more than half an hr or more to start...
Status Success
External Destination: None
Creation Time: 7/26/2010 5:45 AM
Start Time: 7/26/2010 6:12 AM
End Time: 7/26/2010 6:14 AM -
Date error when scheduling webi reports
Hi,
When i click the prompt option in re schedule the scheduled webi report, i got the error "while trying to invoke the method java.util.date.gettime() of a null object loaded from a local variable 'date' "
The BI version is 4.1 SP03
The scheduled webi reports failing and got the error as "Unparseable date: "01/01/1900" "
How to solve this issues?
Regards,
KathirThis might fix it from the note http://service.sap.com/sap/support/notes/1981477
Create a WebI report that uses a date object in the Query Filters
Schedule the report
Reschedule by manually entering date value which shows only date and no timestampExample: 12/31/2007
Reschedule by selecting date value from the calendar which shows date timestampExample: 12/31/2007 12:00:00 AM
Create a biar file using the Import Wizard and migrate to BI 4.1 SP2
BI 4.1 SP2 BILaunchPad, navigate to and Right click the report and go to “History”
Right click the instance without a timestamp for the date parameter and select “Reschedule”
Click on “Prompts” on the left menu and note an error is produced:This error occurred: while trying to invoke the method java.util.Date.getTime() of an object loaded from local variable ‘date’
Attempting to schedule this instance (as Run Now or Reschedule) without selecting a Prompt value fails with the error: Unparseable date: “12/31/2007”
Using the instance with a timestamp works as expected -
Error When Trying to Schedule Webi report using SAP authentication
Hii,
We are trying to Schedule Webi report in CMC for Group of Users using SAP authentication(SSO) ,While Trying this we are geting error Unable to Connect to SAP BW server Incomplete Logon Data ..(IES 10901) .
Authorization done at BI side and Its working properly.Users are able to login into BI Launchpad and View Report as per authorization
Some Webi reports are created using BICS connection and some are created using Universe Design Tool (.UNV) which are migrated from BO 3.1 to BO 4.0
Server Status:
BO server and Client Tools-:BO 4.0 SP6
BW System-7.01
Please refer attach Screen ShotHi Rupesh,
Please check the below note:
Seems issue with SNC/STS settings.
1798197 - Schedules fails with error "Database error: Unable to connect to SAP BW server Incomplete logon data.. (IES 10901)" in BI 4.0
https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361… -
Getting multiple error while refreshing or scheduling WebI report
Hi BO Admin Experts ,
Feacing multiple errors while refreshing or scheduling webi reports in BI4.0 CMC ,
Please find the below errors :
1)report schedule status failed
2)Parameters : xxxcorp-franklinee; ATOu supply unv
Error Message : An internal error occured while calling 'ProcessDPcmndsEx' API (Error:ERR_WIS_30270)
3 ) Format : WebI
Parameters : 10000000000159270
Error Message :CORBA error while communicating with the SL service
Could you please help me on the abive 3 issues for the WebI schedule reports
Cheers ,
Pradeep GorpaduHi,
While refreshing the WEBI Reports would recommend you check the WEBI PROCESSING Server's last changed date from CMC--> Servers.
Check when you are refreshing the reports, do you see the time stamp changed of WEBI PROCESSING servers?
Do you keep getting this error messages for all WEBI reports? Can you re-produce this with simple e-fashion reports as well?
After that go to the node where WEBI PROCESSING servers installed and check on the event viewer details if you see any relevant error messages.
Regards,
Upendra -
Scheduled Webi Reports Don't Open on iOS's MS Exchange Mail
Hi all,
I am not sure if this is the right place to write this post but I will try anyway.
We are using BO 4.0 SP6 and schedule webi reports as attached xlsx of pdf in e-mails.The problem is that the attached pdf's and excel files don't open right away in iPhone's native mail application when using MS Exchange. A tiny question mark shows up on the top corner of the attachment and when you tap on it, it asks which application to use to open it. We can choose iBooks app for example to view the file. We would like the attachment to open right away as we tap on it as it does usually.
Here are some test results:
-We have observed this issue on iOS 8. However, there are rumors that it started with iOS 7. Same rumors suggest that it would work fine before iOS 7.
-We use iOS' native mail application with a MS Exchange account set up.
-We have also tested it with a gmail account set up next to the exchange account. The attachment opened with no problem.
-If someone forwards the mail received from the BO server, to another exchange mail, the attachment opens just fine.
-We have no problem opening other exchange mails with attachments on mobile.
We suspect, the exchange mail can't confirm the sender address thus can't trust the attachment if it is really a pdf-excel file. So we tried scheduling the webi report with a valid mail address in the sender information box but it didn't work.
Has anyone came across such a problem?
I know this issue involve SAP, Apple and Microsoft and each one will point the other for the blame. But any help will be appreciated.
Thank youHi Emre,
Though this appears on Mobile, this belongs to Webi Product team. As the schedule of Webi reports and the email output would be controlled by them. They can work with Apple to identify the cause and fix the defect. Hence, you can post your question in SAP BusinessObjects Web Intelligence
I would also recommend that you contact Webi Product Support through the official channel http://support.sap.com/incident
Regards,
Ashutosh
Maybe you are looking for
-
replacement glass
-
Iphone 4 wont restore or back up from itunes properly?
i tried to up date my iphone 4 but crashed so had to restore it, so i backed it up from itunes but when its finished it reconects to itunes but only stays on the summary page and gives me a choice of restore to factory settings, or restore from last
-
Will Not Start New Library.
LightRoom just will not start a new library. Now matter what. It will not start a new library. John
-
HI All, I need to convert the amount into words in my smartforms. How is this achieved? Thanks & Regards, Murthy
-
Can OS X Lion be used without a wireless connection?
I have two wired networked Mac Minis with track balls. Can't figure out what I would need to upgrade or change to use Lion. Would I need to go wireless?