Set 'Use Job server default' for Unmanaged disk destination

Hi,
I am using BO XI R2 SDK to schedule reports.
I want to set all my reports destinations to Unmanaged disk to a particular folder. I have set these in reportjobserver's destination configuration too.
Now i want create schedules through code for all my reports. I want these reports to use the job server defaults. I am unable to find a solution for this. The code i am currently using is as follows:
Code:
InfoObject diskObj = tempStoreForDisk.Query("SELECT * FROM  ci_systemobjects where si_name='CrystalEnterprise.DiskUnmanaged'")[1];
                DestinationPlugin destDiskPlugin = (DestinationPlugin)diskObj;
                DiskUnmanaged diskUnmanaged = (DiskUnmanaged)destDiskPlugin;
                DestinationOptions destinationOptions = (DestinationOptions)diskUnmanaged.ScheduleOptions;
                DiskUnmanagedOptions diskUnmanagedOptions = new DiskUnmanagedOptions(destinationOptions);
                diskUnmanagedOptions.DestinationFiles.Add(path);
                schedulingInfo.Destinations.Add("CrystalEnterprise.DiskUnmanaged");
                schedulingInfo.Destinations[1].SetFromPlugin(destDiskPlugin);
I want the italics line of code to be replaced with some code that enables the instance to use job server defaults.
If a solution for the above query is not available, is it possible to set 'specific filename with extension' in the unmanaged destination through code?
Could anyone please help me with any pointers?
Thanks.

Hello, Gayathri;
I am not aware of a method to get defaults from the Job Server.
You can use Visual Studio .NET to schedule to a disk file. We do have samples associated with our Developers Library on line.
http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm
The sample I am thinking of is "Schedule Report".
http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/BOE_SDK/sampleList.htm
Here is a simple sample that schedules to disk:
Imports CrystalDecisions.Enterprise
Imports CrystalDecisions.Enterprise.Desktop
Imports CrystalDecisions.Enterprise.Dest
Public Class ScheduleDisk
    Inherits System.Web.UI.Page
    Dim ceSession As EnterpriseSession
    Dim ceEnterpriseService As EnterpriseService
    Dim ceInfoStore As InfoStore
    Dim ceReportObjects As InfoObjects
    Dim ceReportObject As InfoObject
    Dim ceReport As Report
    Dim sQuery As String
#Region " Web Form Designer Generated Code "
    'This call is required by the Web Form Designer.
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
    End Sub
    Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
        'CODEGEN: This method call is required by the Web Form Designer
        'Do not modify it using the code editor.
        InitializeComponent()
    End Sub
#End Region
    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'Put user code to initialize the page here
        Try
            'grab the Enterprise session
            If TypeOf Session.Item("ceSession") Is Object Then
                ceSession = Session.Item("ceSession")
                'Create the infostore object
                ceEnterpriseService = ceSession.GetService("", "InfoStore")
                ceInfoStore = New InfoStore(ceEnterpriseService)
                'Create query to grab the desired report
                sQuery = "Select SI_ID From CI_INFOOBJECTS Where SI_PROGID = 'CrystalEnterprise.Report' AND SI_Name='Consolidated Balance Sheet' AND SI_INSTANCE=0"
                ceReportObjects = ceInfoStore.Query(sQuery)
                'check for returned reports
                If ceReportObjects.Count > 0 Then
                    ceReportObject = ceReportObjects.Item(1)
                    ceReport = CType(ceReportObject, Report)
                    'Create an interface to the scheduling options for the report.
                    Dim ceSchedulingInfo As SchedulingInfo
                    ceSchedulingInfo = ceReport.SchedulingInfo
                    'run the report right now
                    ceSchedulingInfo.RightNow = True
                    'run the report once only
                    ceSchedulingInfo.Type = CeScheduleType.ceScheduleTypeOnce
                    'When scheduling to all destinations except the printer, you must first retrieve
                    'the appropriate destination object. Each destination InfoObject is stored in the
                    'CMS system table (CI_SYSTEMOBJECTS) under the Destination Plugins folder
                    'Retrieve the DiskUnmanaged Plugin from CI_SYSTEMOBJECTS
                    Dim ceDestinationObjects As InfoObjects
                    Dim ceDestinationObject As InfoObject
                    ceDestinationObjects = ceInfoStore.Query("Select * from CI_SYSTEMOBJECTS Where SI_NAME = 'CrystalEnterprise.DiskUnmanaged'")
                    ceDestinationObject = ceDestinationObjects.Item(1)
                    'Create the DestinationPlugin object
                    Dim ceDisk As New DestinationPlugin(ceDestinationObject.PluginInterface)
                    'Create a diskUnmanagedOptions object and its ScheduleOptions from the Destination plugin
                    Dim ceDiskOpts As New DiskUnmanagedOptions(ceDisk.ScheduleOptions)
                    ceDiskOpts.DestinationFiles.Add("c:\ScheduledReports\ScheduledToDisk.rpt")
                    'Copy the properties from the Destination Plugin object into the report's scheduling
                    'information.  This will cause the file to be transfered to Disk after it has been run.
                    Dim ceDestination As Destination
                    ceDestination = ceSchedulingInfo.Destination
                    ceDestination.SetFromPlugin(ceDisk)
                    'schedule report
                    ceInfoStore.Schedule(ceReportObjects)
                    Response.Write("Report Scheduled Successfully with an Object ID of : " + ceReportObject.Properties("SI_NEW_JOB_ID").ToString)
                    Response.Write("<br>Report Scheduled to the following location: " + ceDiskOpts.DestinationFiles(1).ToString)
                Else
                    'no objects returned by query
                    Response.Write("No report objects found by query <br>")
                    Response.Write("Please click <a href='Index.aspx'>here</a> to return to the logon page.<br>")
                End If
            Else
                'no Enterprise session available
                Response.Write("No Valid Enterprise Session Found!<br>")
                Response.Write("Please click <a href='Index.aspx'>here</a> to return to the logon page.<br>")
            End If
        Catch err As Exception
            Response.Write("There was an error scheduling the report: <br>")
            Response.Write(err.Message.ToString + "<br>")
            Response.Write("Please click <a href='Index.aspx'>here</a> to return to the logon page.<br>")
        End Try
    End Sub
End Class
Elaine

Similar Messages

  • I'd like to know how can i connect my old iMac tiger with new one iMac lion. I wanna use the old one for external disk to collect files from there to new one.

    I'd like to know how can i connect my old iMac tiger with new one iMac lion. I wanna use the old one for external disk to collect files from there to new one.

    Hi mshields1162,
    Great question, and welcome to Apple Support Communities.
    First, you may want to choose to have the sidebar displayed for familiarity:
    iTunes 11: Frequently used features
    http://support.apple.com/kb/HT5649
    Afterwards, your device should be displayed if connected:
    We'll want to click on it, and choose the Music tab at the top. Let's make sure "Sync Music" is checked:
    Afterwards, you'll have the option to sync either the entire music library (for your first iPod), or "Selected playlists, artists, albums, and genres" (for the secondary device). Upon selecting this option, four larger option boxes will appear allowing you to pick and choose what content will be synced. For audiobooks, you may need to do the above in the "Books" section. For a visual instruction on how to do this, see the following:
    iTunes 10: Sync to your iPod
    http://support.apple.com/kb/VI72
    Thanks,
    Matt M.

  • Keep getting error message "registry setting used by itunes drivers for importing

    Keep getting error message "registry setting used by itunes drivers for importing and burning cds & dvds are missing", this can happen as a result of installing other cd burning software".  The only software on my computer is original cd-dvd on my hp portable with Vista.  My computer now recognized itouch as a camera. Ive uninstalled and reinstalled itunes, nothing changes.

    I'd start with the following document, with one modification. At step 12 after typing GEARAspiWDM press the Enter/Return key once prior to clicking OK. (Pressing Return adds a carriage return in the field and is important.)
    iTunes for Windows: "Registry settings" warning when opening iTunes

  • Unmanaged disk destination - overwrite file possible?

    Hi,
    I have defined an unmanaged disk location for my Crystal Reports Server XI system.  The dozen or so reports that I have scheduled daily write to that destination fine -- unless an existing file with the same name already exists in that location.
    Since i have defined specified filenames (%SI_NAME%.%EXT), rather than the randomly generated name, each day's report is generated with the same name as any other day's.  However, the new reports do not overwrite the old, which I would like to enable if possible.  Please do not suggest adding %SI_STARTTIME%, to make the filename unique, for I need to retain a consistent filename for manually uploading (and overwriting) to Sharepoint (another topic of discussion).
    Is it possible to configure the unmanaged disk destination to overwrite existing files if same filename exists?
    Thank you,
    G.Brown

    Hi Greg,
    We're not using Crystal reports but do schedule BO Deski documents to publish as pdf files to a networked drive and we are using '%SI_NAME%.%EXT%' to specify the filename and it does automatically overwrites the existing files.  Does the username that your job is running under have full permissions on the folder in question on your unmanaged disk? 
    Regards,
    Anne.

  • Error Scheduling Crystal Report to save to Unmanaged Disk destination

    When trying to schedule a Crystal Report to save to an "Unmanaged Disk" destination using the "Plain Text" format, and using the "Run Now" option, I receive the following error message  "Error Message: Invalid export options. D:\Business Objects\BusinessObjects Enterprise 11.5\Data\procSched\OUT-PHOENIX.reportjobserver\~tmp17105a42ccb5ae4.rpt"  I have enabled "Unmanaged Disk" capabilities within the ReportJobServer thru the CMC, and I have stopped and started the service.  I still receive the error message...Help!

    Hi Karla,
    do you have any service packs installed on your BOBJ server? Does your destination folder reside on a network drive?
    Regards,
    Stratos

  • Split a PDF by sections and name them into one unmanaged disk destination

    Hi,
    I have a report wich I export as a PDF to an unmanaged disk destination. The report is grouped by geographic area, and I want to separate the PDF into each of the 200 geographic areas. Is there any way to do this without having 200 versions of the report or without having 200 instances with a different parameter?
    Thanks,

    Thanks Bashir,
    It is a Crystal report, and I already have the sections with the tree in the left part to get to the appropiate section, the problem is that the report is too big and users prefer to access just the file they need; that is why I want to split into separate PDFs.  The other advantage is that it make it easier to link from my Intranet just to the part each group need, and for users who access remotly, opening a small file takes less time than opening a huge file, so there are many reson to split it.
    Any ideas?

  • Unmanaged Disk Destination settings Default

    Hi,
    How can one change the u201CUnmanaged Disk Destination settings Defaultu201D option in any job servers to False?
    I need all the users to provide their domain username and password while scheduling reports to the unmanaged disk. Present value of the metric is "True". I don't find any way to change it back to false. I cant also use the reset to default option in case needed, as other configurations will get affected.
    Thanks & Regards
    Karuppiah N

    Hi Karuppiah!
    I think there is no way to deselect the standards for the output formats.
    You have following possibilities:
    1. Teach your users, that they have to unmark the default, and have to provide their own entries.
    2. Enter defaults for each report.
    I thought about the file output for a standard user, but I came to the conclusion that it would be better if the users only use the email output for their purpose. The file output is only used by the admin to deliver reports to different systems.
    ciao

  • Crystal Reports Job Server - Default destinations not available

    Greetings,
    Currently I'm installing Crystal Reports XI onto a new server.
    When scheduling reports they are stuck in a 'pending' status which records the following error in the windows event log:
    Transport System exception for backend plugin DLL type newIJob():: Couldn't get IJob interface: CORBA exception! Object type is: CrystalEnterprise.Report and detail: IDL:omg.org/CORBA/UserException:1.0
    . Details: %2.
    After further investigation I discovered the Crystal reports job server has no defaul destinations, however the servers Destination Job Server and Program Job Server do have the default instances.
    Firstly I assume the error reported in the event log is due to there are no destinations, as the scheduler won't know where to send out to.
    Can anyone help in advising how to ensure the reports server had some default destinations?
    I have restarted the server and rebooted the Crystal reports server too.
    Thanks
    Rob

    Hi RobWhalley,
    Could you provide me which version of Crystal Reports Server XI  you use?
    you could find useful below articles.
    [1202926 - Scheduled reports in Crystal Reports Server XI Release 2 stays in 'Pending' state |http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233303332333933323336%7D.do]
    [1477380 - Crystal Reports in Pending status|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333433373337333333383330%7D.do]
    And please check job server is enabled and under the CMC > Server > Crystal Job Server > RightClick on the server > Destination to File System.
    And you can increase the maximun concurrent job value through CMC>Servers>CrystalReportJobServer>Properties.
    Regards
    Rameez Shaikh

  • Set Print Annotations as Default for document

    I revised a form provided to us by another agency. I inserted our "letterhead" using a textbox and then created another textbox to show the form number.
    I tried to use the method of saving the form document as a PostScript file so the two textboxes would print, but I lost all of the form fields. Preflight won't work; it keeps failing before it gets even 1/4 the way down the first of seven pages. I was able to set the Print dialog to default to printing the first page only, but there is no apparent way to set the dialog to default to Documents & Images as well. This seems to be a change from v7, but I could be mistaken. We use use Acrobat Professional v9. Everything displays correctly. Is there a way to print everything the screen view shows?
    Thank you.

    Hi,
    If  you have already maintain output determination procedure,you need to create condition record for the output condition type for invoice-standard (RD00) or your own condition type which you have maintain for invoice output.o to VV31 select your condition type and enter and give the required details(sales org,customer)press enter and give the language,select the line and click on communication to give the printer details and save.
    Thanks
    siva.k

  • Use Ext. HD for Scratch Disk

    I have to edit a large project.... a very large project.  I have no other option but to use my MacBook Pro, and I wish to use my external hd to save my project and scratch disks.  Whenever I attempt to set my scratch disk to my external drive, PP (CS5) won't allow me to.  Why?  and can I fix this?
    *please keep in mind, i'm a beginner PP user (let alone a beginner Adobe user)*

    What KIND of external?
    If eSata or Firewire 800 you should be OK... USB is too slow for video editing
    I have not used this... for reference only... eSata Dock http://www.amazon.com/Thermaltake-BlacX-eSATA-Docking-Station/dp/B001A4HAFS/ref=cm_cmu_pg_ t

  • SMTP Setting using "SmarterMAil" Server

    I am using "SmarterMail" as my mail server on my website.(Preset by the host) I am trying to configure Mac "Mail" so that I can send and receive mail on "Mail"
    Receiving works Good
    Sending I get an error which has to do w/ SMTP Port.
    Does anyone know what the SMTP port should be set to. I tried 143 as mentioned in another post, but it was about using IMAP on an iPhone.
    When in the mail preferences it looks like there are 2 places to set "Advance settings" both of which have SMTP setting.
    Which advance section do I use.
    Thanks for any help w/ this issue.

    I went to smarter-mail, and most talk about SmarterMail & MacMail was that my isp was blocking outbound mail through other servers on port 25.
    My ISP is w/ Cox and it looks like they have started blocking outbound traffic on port 25, so Now I have my outbound SMTP for the SmarterMail using the "east.smtp.cox.net" port, and everything works good. Although I tried that setting before, I may have still had something else wrong somewhere.
    Also using the cox port for a non cox account is a violation of their user aggrement, I don't think I'll set off any alarms for this. This is mainly done to prevent spammers from using the SMTP port.
    So for now I am Ok...Until I get booted off of my cox account.

  • When I open a new tab, I have to move to the other side of the page to click "home". Can I set the same "home" default for new tabs?

    My home page opens in the initial FireFox window, but new tabs open with a blank page. To get to my default page I have to click "home", but now it's way over on the other side of the page.
    Can I set a default for new tabs?

    right click on the control bar and choose "adapt" (or something like that). A window will pop up. Ignore that window and move the home button to the place you want it ''on the control bar''

  • HT2506 how do you set Preview as the default for opening pdf in browser?

    How do I set the Preview application to be the default for viewing PDF's in while in Safari?  Previously, while in Safari and clicking on links to PDF's, they would display with buttons on the bottom that made it simple to view and download the PDF.  Since updating Adobe Reader it seems Reader is now the default application for viewing PDF's accessed from the internet.  I haven't been able to figure out how to revert back to Preview..... 

    I did this and now Safari won't open the form at all.
    I put the files back and it opens in Adobe.
    When I save the files to desktop they open in Preview. But I am trying to read pdf's(? forms) while in Safari.
    Adobe does not work smoothly in Safari and scrolling to read is a nightmare.
    OS X 10.8.5
    This problem came up within the last few months.
    Before everything opened in Preview perfectly.

  • Problem with Scheduling a Report to an Unmanaged disk destination

    I am trying to schedule a Crystal report to a file share.  I have supplied the UNC path in the Directory field.  Supplied a user name (using domainname\userid) and password that has write rights to the file share.  When I schedule the report, I get the following error:
    login error. CrystalEnterprise.DiskUnmanaged: Logon failure: the user has not been granted the requested logon type at this computer.
    What kind of rights do I need to make it work?
    Using BOE XI R2 Fix Pack 2.4
    Regards,
    Maureen

    Are you running the Crystal Report Job Server under an account that has access to the share? Try doing that if not. (CCM > stop job server > properties > change to an AD user with access to both the file share and local Admin to run the service)
    Regards,
    Tim

  • Using Lion Server Radius for authenticating "other" clients

    Hi I've been trying to get the Radius service in Lion Server to authenticate users of my SQUID web proxy. I have followed the squid wiki's instructions to configure the squid server as a radius client and pass authentication requests to the Lion Server Radius (I hope). However I'm trying to configure and test the Lion Server Radius. As Lions Server Admin GUI for radius only lets to add Airport Basestations, I've been trying to dig around for what underlying config files to edit.  I have tried 2 methods of adding the client details to radius:
    1. By editing the /etc/raddb/client.conf, and adding/changing (for example):
    client localhost {
         secret     = mysecretpassphrase
    client 192.168.0.0/24 {
         secret              = mysecretpassphrase
         shortname       = local-lan-clients
    and restarting squid. Nothing seems to get mentioned in the radius log file! So I'm not completely convinced that the Lion Radius took any notice of this!
    2. Instead of above, added the same client info using radiusconfig:
    $ sudo radiusconfig -addclient 192.168.0.0/24 local-lan-clients other <return>
    - then it prompts for the secret. With this command I notice the entry/event is recognised in the radius log file, and also looks like some SQL activity. If I dont specify "other" for the nas-type, it defaults to "Aiport Base Station" or similar.
    OK, so forgetting about SQUID for a minute, I can't even get that far as I'm just trying to test the config using the "radclient" utility from the Lion Server and the squid server:
    $ sudo radclient localhost auth mysecretpassphrase <return>
    and... no response, just hangs, nothing in radius log either.
    The Lion Firewall allows TCP and UDP requests into the Radius authentication port.
    Any ideas what else I need to do? Scratching my head, I'm wondering if it is anything to do with SSL? e.g. do I need to make the authentication using the self-signed certificate that Open Directory has? I presume any Airport Base Stations added to radius will use this certificate to establish a secure connection for authentication.

    The RADIUS server in OS X Server is a standard FreeRADIUS implementation with Apple's own custom GUI frontend for configuring it and which only allows adding AirPort base-stations. In Mountain Lion Server it is even limited to a specific configuration for the AirPort base-station.
    However if you follow the normal command-line instructions and steps for configuring FreeRADIUS then it will be possible to add any type of RADIUS client.
    While as far as I can see by manually configuring the FreeRADIUS server in OS X Server should enable you to do what you want, most people chose to configure Squid to use either a PAM or the LDAP modules for Squid to in this case authenticate directly to Open Directory (which is of course based on LDAP).
    I myself have used a PAM in the past with Squid to successfully configure Squid to authenticate users via Open Directory. I was even able to specific an Open Directory group and only allow members of that group access via the Squid Proxy Server. I then went a bit OTT and set up another open-source tool (which was discontinued and I had to fix to get working) to process the Squid logs and store them in MySQL, and then setup FileMaker Pro to connect to the MySQL database via ODBC to allow producing reports.
    Unfortunately the AFP458 website had a major redesign a while ago and many previous technical articles on it are now hard to find. I had used two articles on that site to guide me through setting up Squid and the PAM on a Mac server. I believe the two articles I used are the ones listed below.
    http://afp548.com/2004/09/08/using-os-x-open-directory-to-authenticate-squid-pro xy-server/
    http://afp548.com/2004/12/13/squid-server-using-ldap-authentication/

Maybe you are looking for

  • Events Created in iCal get cut off Below the Screen

    For the last few versions, iCal has had a problem with Event windows going below the screen; when this happens, users can no longer see what they are typing in the Event. I was able to duplicate this problem on every current Mac model in an Apple Sto

  • ICloud backup has old non-email Apple ID, no longer have password

    I'm unable to restore my iPhone 4/iOS 6.1.3 backup to my new iPhone 5/iOS 7.0 Using my new iPhone 5s: 1. In the Set up your iPhone screen, tap Restore from iCloud Backup. 2. In in iCloud Sign In screen, I enter my email-based Apple ID and Password, t

  • What is overset text and how do I remove it?

    I use ID to format and design my high school's newspaper, so I'm not familiar with a lot of features and aspects that it entails; I have a rather basic understanding of the program.  I was trying to export books of the pages into PDF format in order

  • Multicam editing / one angle is black

    I'm running FCPX 10.0.6 on a Mac Pro with 2 2.66Ghz and 13 gigs of RAM and OS 10.7.5 Wedding project, 2 cameras. All clips are visible and work well in the preview window. I have 3 clips from one camera at about 6 minutes each and another from the ma

  • Essbase 11 Certification

    Hi Guys, I know a lot of question related to essbase certification has already been asked but I have slightly different types of queries; i hope you guys find time to answer them. I asked oralce for which version of essbase is this 1z0-531 certificat