Scheduled report error - Error in File

Crystal Reports Serve XI R2 SP4
Microsoft SQL Server 2005
Hi,
Ihave a scheduled report that runs perfectly in most instances, however I am seeing the following eror message when a particular parameter is seected:
Error in File D:\Program Files\Business Objects\BusinessObjects Enterprise 11.5\Data\procSched\BWAQTSREP-1.reportjobserver\~tmp1d945a07834566a.rpt: Operation not yet implemented.
Any ideas on what this means, and how to resolve?
Thanks!
Penny
Edited by: Penny Braithwaite on Apr 3, 2009 11:51 AM

Hi Ramesh,
you have to Login into the SAP Service Marketplace at http://service.sap.com. But you need a S-User to do so.
You can request your S-User on the top right of the Website.
Regards
-Seb.

Similar Messages

  • Scheduled report subscription only writes file once

    Early in our SCCM 2012 roll out we want regular updates how many machines are active.
    We have configured a Report Subscription to save the report as an XLS file on a file share - Daily schedule for 08:00AM - the first file was forced at 11:23AM on 17/09/2013 and the daily updates were not generated though the schedule ran and reported the
    failure.
    The subscription writes one file to the share at first scheduled time and at next scheduled time reports "Failure writing file \\Server\share\reports\file.xls : a log on error occurred when attempting to access the file share. The user account or password
    is not valid"
    To confirm username and password I logged on to a Win7 workstation with those credentials. I then browsed to the reports directory on the share and created a new blank file. THis confirmed credentials are correct and the user has permissions to write new
    files to the share.
    By changing something about the subscription delivery (e.g. overwrite files or increment file names or changing the file name) the next schedule will write the file. I am forcing the re-try by changing the schedule time and receiving the above error.
    The original schedule was Daily and changing the time to get it to re-run today caused the failure. When I changed the schedule to Hourly (every 5 minutes) and changed the file name the report ran every 5 minutes successfully. I have reverted to the Daily
    schedule ans set it to run at 7am so we'll see next week whether this has resolved the problem
    It is clear that the message is not accurately describing the problem.
    Anthony

    Hi,
    Windows File Share Delivery Options
    There are three options for overwriting. The second option-Do not overwrite an existing file-demonstrates that
    if the report file already exists, no action will be taken.
    Overwrite   an existing file with a newer version
    If   the report file already exists, it will be overwritten with the new version.
    Do   not overwrite an existing file
    If   the report file already exists, no action will be taken.
    Increment   file names as newer versions are added
    If   the report file already exists, the new report will have a number added to   the file name to distinguish it from other versions.
    For more information, please review the link below:
    Create Subscription Wizard - Subscription Delivery Page
    http://technet.microsoft.com/en-us/library/cc678423.aspx

  • Successfully scheduled report shows error

    Hi,
    I have created a report with direct connection to oracle and uplaoded it to BOXI, then I scheduled it successfully, but when i click on the instance it shows me the following error.
    "Your request could not be completed because a failure occurred while the report was being processed. Please contact your system administrator"
    Please help on how to solve this problem.
    regards,
    Salah

    Please post this query to the BusinessObjects Enterprise Administration forum

  • Error while scheduling reports

    Hi,
    I am trying to schedule a report and trying to send a mail attachment in pdf format.
    I could schdule to reports to generate in files and it works fine but when i try to schedule a report for mail i get a following error.
    REP-4202: Error occurred while logging on to the Mail subsystem.
    REP-4224: Incorrect user name, password, or service profile name.
    REP-4202: Error occurred while logging on to the Mail subsystem.
    IS this a MAPI client issue? If yes then can somebody tell me how to configure MAPI client.
    IS there any other solution for this problem.
    I have outlook expreess as my defalut mail system. Also i have microsoft outlook installed on my machine.
    Thanks In advance,
    Shailesh

    Morning Simon,
    The source doesn't seem to be showing any error message or explaining anything however the error FWM 02050 might say something. Have you searched the Wiki or Articles about this?
    Personally I have not seen this type of error before however it seems that either the source or the layout of the report gets changed and hence it errors out as it does not match with the source.
    For example, in the report maybe there is a dynamic parameter which gets changed occasionally or any other report object which has a source linked gets changed.
    Does this happen only with one report or all the reports?
    Does anyone change the reports?
    How many dynamic or static params are there in the report?
    How is the report connected (odbc or any other means?)
    Does the server react like this with other reports as well?
    Here is the list for error message from BO you might it find handy
    [help.sap.com/businessobject/product_guides/boexir3/en/xi3_error_message_guide_en.pdf]
    I think we need to investigate first where the problem is generating from and then find out about this error.
    Regards
    Jehanzeb
    Edited by: Jehanzeb Navid on Oct 15, 2008 8:48 AM
    Here what error given above says
    The object with ID , Title "", Kind "" has changed since last query
    (FWM 02050)
    Cause
    The required object has changed since the last query.
    Action
    Query the InfoObject again.
    Maybe the end user is not query the report properly?

  • Error while scheduling report for SAP users

    Hi All,
    We have SAP authentication enabled in our BO environment. (BO XI 3.1 sp2 FP 2.6 on windows 2003 server).
    There are some webi reports based on BW Bex queries that we are trying to run on behalf of certain SAP end users. This we are doing using "schedule for" option.
    Now what is happening here is if the end user has logged in once in BO system ,it runs fine. But in case user has not logged in to BO (using infoview etc.) ,it throws error saying "incomplete logon data" . Also if user changes or reset his password in BW and if he doesn't login to infoview after that ,system throws another error "Name or password incorrect (repeat logon)".
    Based on these observation, we are suspecting if BO system uses stored SAP users credentials while scheduling report for them based on their last login.
    Would like to mention here that we have checked option "automatically import users".
    Please advice if this behavior is normal or we are missing some setting.
    Thanks in advance,
    Chandra

    Hi All,
    Any pointers or suggestions for this issue ??
    Is there a setting/option avialable in CMC which could resolve these errors.
    Or, user has to login once to infoview in all circumstances to avoid these errors.
    Thanks,
    Chandra

  • The report terminated with error:  REP-110: File test2. cannot be opened. REP-1070: An error occurred while opening or saving a document.

    Hi,
    I'm getting the below error for reports.
    The report terminated with error:
    REP-110: File test2. cannot be opened. REP-1070: An error occurred while opening or saving a document. REP-0110: File test2. cannot be opened. .
    When checked Environment using url 'http://host:port/reports/rwservlet/showenv?server=your_repserver_name"
    found below
    ==================================================
    Reports Servlet Environment Variables 11.1.1.4.0
    Security Mode Non-secure
    HTTP Environment Variables 11.1.1.4.0
    SERVER_NAME   09.14.4.41
    SERVER_PORT   8888
    SCRIPT_NAME   /rwservlet
    SERVER_PROTOCOL   HTTP/1.1
    SERVER_SOFTWARE   undefined
    GATEWAY_INTERFACE   undefined
    SERVER_PORT_SECURE   undefined
    ACCEPT   image/jpeg, application/x-ms-application, image/gif, application/xaml+xml, image/pjpeg, application/x-ms-xbap, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
    REQUEST_METHOD   GET
    REMOTE_HOST   test-wam-app
    REMOTE_ADDR   09.14.4.41
    REMOTE_USER   undefined
    AUTH_TYPE   undefined
    PATH_INFO   showenv
    QUERY_STRING   server=RptSvr_test-wam-app_wamtest
    PATH_TRANSLATED   undefined
    CONTENT_LENGTH   undefined
    CONTENT_TYPE   undefined
    AUTHORIZATION   undefined
    USER-AGENT   Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.2; Trident/6.0; .NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729; InfoPath.3; MS-RTC LM 8)
    REMOTE_IDENT   undefined
    REFERER   undefined
    Oracle Reports Services - Servlet Environment Variables  Select to jump to the top of the page  Return to Top
    KeyMapFile   /u03/apptest/FMW_11.1.1/user_projects/domains/WamTest/config/fmwconfig/servers/WLS_REPORTS/applications/reports_11.1.1.2.0/configuration/cgicmd.dat
    DBAUTH   /u03/apptest/FMW_11.1.1/apphome/reports/templates/rwdbauth.htm
    SYSAUTH   /u03/apptest/FMW_11.1.1/apphome/reports/templates/rwsysauth.htm
    server   rep_wls_reports_test-wam-app_wamtest1
    DIAGNOSTIC   yes
    ERRORTEMPLATE   /u03/apptest/FMW_11.1.1/apphome/reports/templates/rwerror.htm
    SERVER_IN_PROCESS   yes
    COOKIEEXPIRE   30
    ENCRYPTIONKEY   reports9i
    DIAGHEADTAGS   undefined
    DIAGBODYTAGS   undefined
    HELPURL   undefined
    RELOAD_KEYMAP   undefined
    IMAGEURL   http://09.14.4.41:8888/reports/rwservlet 
    SINGLESIGNON   no
    Oracle Reports Services - Server and Engine Environment Variables  Select to jump to the top of the page  Return to Top
    PATH   /u01/wamtest/FMW_11.1.1/apphome/jdk/bin:/u01/wamtest/FMW_11.1.1/apphome/bin:/u01/wamtest/FMW_11.1.1/apphome/jdk/bin:/u01/wamtest/FMW_11.1.1/apphome/bin:/u01/wamtest/FMW_11.1.1/apphome/bin:/u01/wamtest/FMW_11.1.1/apphome/bin:/u01/java/jdk1.6.0_23/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin
    DISPLAY  
    LD_LIBRARY_PATH   /u01/wamtest/FMW_11.1.1/apphome/jdk/jre/lib/amd64/server:/u01/wamtest/FMW_11.1.1/apphome/jdk/jre/lib/amd64:/u01/wamtest/FMW_11.1.1/apphome/jdk/jre/../lib/amd64:/u01/wamtest/FMW_11.1.1/apphome/jdk/jre/lib/amd64/native_threads:/u01/wamtest/FMW_11.1.1/apphome/jdk/jre/lib/amd64:/u01/wamtest/FMW_11.1.1/apphome/lib:/u01/wamtest/FMW_11.1.1/apphome/jdk/jre/lib/amd64/server:/u01/wamtest/FMW_11.1.1/apphome/jdk/jre/lib/amd64/native_threads:/u01/wamtest/FMW_11.1.1/apphome/jdk/jre/lib/amd64:/u01/wamtest/FMW_11.1.1/apphome/lib:/u01/wamtest/FMW_11.1.1/apphome/jdk/jre/lib/amd64/server:/u01/wamtest/FMW_11.1.1/apphome/opmn/lib:/u01/wamtest/FMW_11.1.1/apphome/lib
    ORACLE_HOME   /u01/wamtest/FMW_11.1.1/apphome
    TNS_ADMIN   /u01/wamtest/FMW_11.1.1/instance1/config
    NLS_LANG   AMERICAN_AMERICA.WE8ISO8859P1
    USER_NLS_LANG  
    RW   /u01/wamtest/FMW_11.1.1/apphome/reports
    REPORTS_PATH   /u01/wamtest/FMW_11.1.1/apphome/reports/templates:/u01/wamtest/FMW_11.1.1/apphome/reports/samples/demo:/u01/wamtest/FMW_11.1.1/apphome/reports/integ:/u01/wamtest/FMW_11.1.1/apphome/reports/printers:/u01/wamtest/FMW_11.1.1/instance1/reports/fonts:/u01/wamtest/FMW_11.1.1/apphome/reports/templates:/u01/wamtest/FMW_11.1.1/apphome/reports/samples/demo:/u01/wamtest/FMW_11.1.1/apphome/reports/integ:/u01/wamtest/FMW_11.1.1/apphome/reports/printers:/u01/wamtest/FMW_11.1.1/instance1/reports/fonts:
    REPORTS_TMP   /tmp
    REPORTS_TAGLIB_URI   /WEB-INF/lib/reports_tld.jar
    java.class.path   /u01/wamtest/FMW_11.1.1/apphome/reports/jlib/rwrun.jar
    sourceDir  
    tempDir  
    useDataCache  
    ignoreDataParameter
    =========================================================================
    ORACLE_HOME is on mount point u03, checked config.properties but no mention of mount point /u01.
    Dont know from where /u01 came. Could you please help me re configuring the env pointing to /u03.
    Reports server is up though without any issues.
    Regards,
    Djay

    Ensure that the report name is correct. Also ensure that the report exist in REPORTS_PATH environment variable. Otherwise run the report including the reports path.
    E.g.
    report=<reports directory>/test2.rdf

  • Scheduled discoverer report giving error

    Hi All,
    I am facing a problem where in I have scheduled a report. The table populated after scheduling is fetching data but when we try to open the scheduled report it gives an error ' Inconsistent datatype expected number got date '.
    We are using a function in the report which fetches a date colomn and return type of that date used is Varchar(2). We also tried using the return type as date but same error comes.
    An early response will be highly appriciated.
    Regards,
    Shruti

    i have similar problem - i have some calculated columns in the report.....when i schedule it the values in one column are getting populated in the other column.....if i run the report manually i did not have any problem.
    i had a small calculation for a column (date)....user wanted to see it in a different format in the report.....
    already that column was existing in the folder but in a different format......but upon users request i just put up a small calculation for that...........
    i scheduled the report and ironically only that calculated column (date) was getting populated wrong........so i pulled the normal date column from the folder..........and now i have two columns for date (1-calculated, 2 - from folder)..........1st column is anyhow getting populated wrong....but the 2nd column was pretty good........
    many of you might know....."*IDLE MAN'S BRAIN IS A DEVILS WORKSHOP*"....
    i formatted the 1st column with white color and kept the background color also as white......so that when the user opens the scheduled report.....he will see only a blank white column for the 1st column............i told him to export it to excel and then delete that blank column and save your excel output..
    i know this is the worst solution or idea anyone can get.........but i had to do it.

  • Error @scheduling report creation

    hi everyone,
    I wanna schedule a job, but I'm always getting the following errors:
    java.lang.reflect.InvocationTargetException
    caused by: java.lang.NullPointerException
    org.quartz.JobExecutionException: oracle.apps.xdo.XDOException
    and also an java.sql.SQLException: ORA-01461: can bind a LONG value only for insert into a LONG column.
    I'm created xmlp schema, I run the scripts and also added the <scheduler> tag in the configuration file. what's wrong?
    I'm working for a customer, so it would be nice, if someone could help me ;)
    thx

    btw - the underlying database is of version 9.2.0.7.0 ... is there a problem with that?

  • Crystal Report issue : Error in file.. .rpt . Error in formula

    Hi ,
    I recently migrated a report from production to test environemnt and it throws me the following error:
    Error in File C:\DOCUME1\oe_user\LOCALS1\Temp\packing instructions {4058873B-9756-4052-B479-EBD2D0A08E7D}.rpt:Error in formula  <Object_Visibility>. '{Command.EXACT_WEIGHT_FLAG} = "Ne (No)"'
    This field name is not known.
    In production server is installed Oracle 9i database and in test server is installed Oracle 10g
    The report has 1 main report and 2 sub reports.
    1. The same report works fine in production server without any issues.
    2. I had executed the report in Crystal reports 2008 and it runs fine displaying all fields without any issues.
    3. I had also tried taking the query of both subreports and the main report and tried executing it in oracle and it runs fine without any issues.
    However during the runtime in the test server, it throws the following error.
    Can someone help me out with this issue..

    Hi Siva,
    What is the patch level of CR 2008?
    Is it a win or a web app?
    What is the server OS?
    First, try to simply view the report. Let  the report prompt for the database credentials and the parameter values if any.
    See if it reproduces the issue.
    ReportDocument rd = new ReportDocument();
            rd.Load(Server.MapPath("CrystalReport.rpt"));
            CrystalReportViewer1.ReportSource = rd;
    Take a look at the SAP Note :
    [1421867 - Error: This field name is not known|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%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333433323331333833363337%7D.do]
    Hope it helps,
    Thanks,
    Bhushan.

  • Issue with the report oracle.apps.xdo.XDOException:Error creating lock file

    I am getting an error while submitting the XML publisher report in Betsy N0 instance.
    Issue
    Log :- Beginning post-processing of request 145458120 on node BETSYN0DB1 at 22-DEC-2011 05:28:26.
    Post-processing of request 145458120 failed at 22-DEC-2011 05:28:28 with the error message: One or more post-processing actions failed. Consult the OPP service log for details
    Output :- Blank Report
    XML file :- XML file generated without any error
    Output process:-
    [12/23/11 4:28:10 AM] [1213640:RT145480622] Completed post-processing actions for request 145480622.
    [12/23/11 5:16:01 AM] [OPPServiceThread1] Post-processing request 145481427.
    [12/23/11 5:49:30 AM] [OPPServiceThread1] Post-processing request 145481923.
    [12/23/11 5:49:30 AM] [1213640:RT145481923] Executing post-processing actions for request 145481923.
    [12/23/11 5:49:30 AM] [1213640:RT145481923] Starting XML Publisher post-processing action.
    [12/23/11 5:49:30 AM] [1213640:RT145481923]
    Template code: XXWIP_WO_VLVS
    Template app: XXWIP
    Language: en
    Territory: US
    Output type: PDF
    oracle.apps.xdo.XDOException: Error creating lock file
         at oracle.apps.xdo.oa.util.FontCacheManager.getFontFromDB(FontCacheManager.java:320)
         at oracle.apps.xdo.oa.util.FontCacheManager.getFontFilePath(FontCacheManager.java:198)
         at oracle.apps.xdo.oa.util.FontHelper.createFontProperties(FontHelper.java:432)
         at oracle.apps.xdo.oa.util.ConfigHelper.getFontProperties(ConfigHelper.java:166)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5824)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3459)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3548)
         at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:247)
         at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:157)
    [12/23/11 5:49:31 AM] [UNEXPECTED] [1213640:RT145481923] oracle.apps.xdo.XDOException: Error creating lock file
         at oracle.apps.xdo.oa.util.FontCacheManager.getFontFromDB(FontCacheManager.java:320)
         at oracle.apps.xdo.oa.util.FontCacheManager.getFontFilePath(FontCacheManager.java:198)
         at oracle.apps.xdo.oa.util.FontHelper.createFontProperties(FontHelper.java:432)
         at oracle.apps.xdo.oa.util.ConfigHelper.getFontProperties(ConfigHelper.java:166)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5824)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3459)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3548)
         at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:247)
         at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:157)
    [12/23/11 5:49:31 AM] [1213640:RT145481923] Completed post-processing actions for request 145481923.

    The issue is fixed.
    Our XML Publisher TMP is not defined, so it uses the APPLTMP used by concurrent manager. There is a folder xdofonts/<SID> in $APPLTMP. It contains the fonts used by XML publisher and on the of font file (.ttf) was 0 byte. We copied the ttf file from QA. And it started working.
    Best practice is to define diffent TMP for concurrent managers and XML Publisher.
    Cherrish Vaidiyan

  • Scheduled Report Error

    Hi All,
    I configured Scheduled Report. But its showing following Error.Please tel me how to rectify this Problem.
    Thanks,
    Nithi

    Hi,
    Please refer SAP note 1798434 - Report Scheduler Prerequisites
    Thanks & Regards,
    Nagarajan

  • Scheduled report failures - Unexpected error getting the HTTP response

    Getting this error when scheduled report executes:
    Unexpected error getting the HTTP response stream while generating report: http://cdmdb1c.nam.nsroot.net:4889/em/console/reports/render

    Hi..
    Thanks for the comment.
    Below is how my web.xml entry looks like.
    The requirement is to send a 404 error response and that will be handled by a servlet which inturn writes the output to the response object.
         <servlet>
              <servlet-name>ErrorPageServlet</servlet-name>
              <servlet-class>com.test.ErrorPageServlet</servlet-class>
         </servlet>
         <servlet-mapping>
              <servlet-name>ErrorPageServlet</servlet-name>
              <url-pattern>/error</url-pattern>
         </servlet-mapping>
         <error-page>
              <error-code>404</error-code>
              <location>/error</location>
         </error-page>>>
    the first option to turn off the "show friendly html error pages" works fine.
    It would be better if I can get a different solution

  • Scheduling report error

    Hi,
    When I am scheduling  areport with Now ,when the report status will change to pending ,but it sometimes failing afterwards  and showing error message
    "Object could not be scheduled within the specified time interval." what can be the reason?
    when I am scheduling with once reccuring option , and starttime as currenttime . while seeing the history of report it changes to pending . And no response.
    Is there any way I can see the currentime in CMC apart from preferences.
    Thanks
    Jorge

    Hi,
    Is there any logs to identify the status of crystal jobserver apart from server tab. because server tab is showing as job server is "running".
    My scheduled report is in a pending state for a very long time , and even it is not failing .
    How to identify the latest patches are installed or not.
    Thanks,
    Jorge

  • Strange error while scheduling but can see the scheduled report

    Hi,
      When I schedule a Deski Report from my Favorite folder to my repository folder the instance fails and has this error message
    destination DLL disabled. []: [CrystalEnterprise.Smtp] .
    But when I see inbox I can see the report scheduled in required format.
    For information - I m using XIR3.1 SP2 and using a server group for scheduling this.
    Please help me identifying why the schedule fails.

    Hi,
         Please note, the error occurred when system tryng to push your completed scheduled report into a particular destination. In you case, the Repository Folder Path.
         Regardless, the solution provided by the previous post contained the same solutions you need to apply.
         In summary, you need to make sure you have permission to that particular path where the report will eventually reside.
    Regards,
    Ken

  • Error in RSS file when setting datasource in report

    Hi,
    I trying to prepare script to deploy my reports to reporting service 2008. Script is takes from
    this question (Deploying Reports rss). Unfortunately code provided for data sources settings is not working in my case and I do not know why.
    Sequence is following: removed reports path, re-craete it, create datasource and for each report following actions performed: deploy and set datasource.
    After first report tried to set data source in itself scripts failed with error:
    D:\_ST\FLASH>rs -i deploy.rss -s http://localhost/ReportServer_i2008
    Parent folder Pipeline Reports created successfully.
    Deploying report 'CRM Practice Report'
    Report: CRM Practice Report published successfully.
    Setting datasource to report 'CRM Practice Report'.
    Error setting datasource to report 'CRM Practice Report'
    ERROR while Publishing report: CRM Practice Report
    Unhandled exception:
    The data source 'Warehouse Datasource' cannot be found.
    Here is the script I using to deploy datasource and reports:
    Dim definition As [Byte]() = Nothing
    Dim warnings As Warning() = Nothing
    Dim destinationFolder As String = "Pipeline Reports"
    Dim reportsTargetPath As String = "/" + destinationFolder
    Dim reportsSourcePath As String = "D:\Depot\Internal\BDW\BDW_Phase4\Src\BDW_R4.17.2\Reports\BDW_Reports"
    Dim datasourceName As String = "Warehouse Datasource"
    Public Sub Main()
    Try
    rs.Credentials = System.Net.CredentialCache.DefaultCredentials
    If rs.GetItemType(reportsTargetPath) = ItemTypeEnum.Folder Then
    rs.DeleteItem(reportsTargetPath)
    End If
    rs.CreateFolder(destinationFolder, "/", Nothing)
    Console.WriteLine("Parent folder {0} created successfully.", destinationFolder)
    CreateReportDataSource(datasourceName, "SQL", "Data Source=apopov\i2008;Initial Catalog=bdw")
    PublishReport("CRM Practice Report")
    PublishReport("CRM Report")
    PublishReport("Pipeline Practice Report")
    PublishReport("Pipeline Report")
    Console.WriteLine("Tasks completed successfully.")
    Catch ex As Exception
    Throw ex
    End Try
    End Sub
    Public Sub CreateReportDataSource(name As String, extension As String, connectionString As String)
    Dim definition As New DataSourceDefinition()
    definition.CredentialRetrieval = CredentialRetrievalEnum.Integrated
    definition.ConnectString = connectionString
    definition.Enabled = True
    definition.Extension = extension
    Try
    rs.CreateDataSource(name, reportsTargetPath, False, definition, Nothing)
    Catch e As Exception
    Console.WriteLine("ERROR creating data source: " + name)
    Throw e
    End Try
    End Sub
    Public Sub PublishReport(ByVal reportName As String)
    Try
    Console.WriteLine("Deploying report '{0}'", reportName)
    Dim stream As FileStream = File.OpenRead(reportsSourcePath + "\" + reportName + ".rdl")
    definition = New [Byte](stream.Length-1) {}
    stream.Read(definition, 0, CInt(stream.Length))
    stream.Close()
    rs.CreateReport(reportName, reportsTargetPath, False, definition, Nothing)
    Console.WriteLine("Report: {0} published successfully.", reportName)
    SetDatasource(reportName)
    Catch e As Exception
    Console.WriteLine("ERROR while Publishing report: " + reportName)
    Throw e
    End Try
    End Sub
    Public Sub SetDatasource(ByVal reportName As String)
    Try
    'Not working, I do not know why
    Console.WriteLine("Setting datasource to report '{0}'.", reportName)
    Dim reference As New DataSourceReference()
    reference.Reference = reportsTargetPath + "/" + datasourceName
    Dim source As New DataSource()
    source.Item = reference
    source.Name = datasourceName
    Dim sources As DataSource() = New DataSource(0) {}
    sources(0) = source
    rs.SetItemDataSources(reportsTargetPath + "/" + reportName, sources)
    Catch e As Exception
    Console.WriteLine("Error setting datasource to report '{0}'", reportName)
    Throw e
    End Try
    End Sub
    I have not ideans why this error may occures.

    Hi Alex,
    I have test the script in my test environment, it works.
    Based on the error message, the data source 'Warehouse Datasource' cannot be found. Please check, did you have add Warehouse Datasource.rds file in the same folder? In your case, it is located in: D:\Depot\Internal\BDW\BDW_Phase4\Src\BDW_R4.17.2\Reports\BDW_Reports
    If the issue is persist, please feel free to ask.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

Maybe you are looking for

  • Photo support on ipod classic? [solved]

    Has anyone found a way to transfer photos to a 6th gen ipod classic? I've tried gpixpod, gtkpod and the kipi photo export...none of those seem to support the newer ipods. Google isnt turning up much so I was hoping someone had some luck with this...

  • Re : Subtotals Font

    HI experts, i have an internal table.. example : customer number I  Invoice no I amount 100 I 001 I 100 100 I 002 I 200 100 I       I 300 200 I 003 I 111 200 I 004 I  222 200 I       I  333 if customer is changing i need to do the subtotal , i have d

  • Cannot open the file attachment because your PDF file attachment settings do not allow this file type to be opened.

    I think this issue may have been posted elsewhere, but I have tried all solutions offered with no success.  I am attempting to open a Link within a secure PDF file when I receive the error above. I have made registry changes and verified the trust ma

  • Webpages do not always load 1st attempt after exch...

    I bought a new TP Link Router & dual aerial wireless USB adapters to solve my line speed issues as the old BT Home hub 1.5 cannot handle the new exchange. http://www.shop.bt.com/products/tp-link-300mbps-wireless-n-adsl-router-77S0.html Now some websi

  • When I minimize a window, it disappears completely as if I exited it altogether, why?

    After I installed the new update for firefox and i tried out several different themes, I found that when I minimize a window it disappears completely instead of just going down like normal. I wish it didn't do that, I miss the other feature. == This