Download byte[]'s from database from pageflow Controller

I cannot seem to download a byte[] array (of a stored excel file in Oracle) using a pageFlow controller. I want to use the controller because the byte[]'s are gathered from a JDBCControl and the controller can of course gain easy access to the JDBCControl.
          Of course the desired end result is that the browser will prompt the user to open/save the dowloaded file.
          Has anyone been able to do this?

Hi Jinchun,
Thank you for your suggestions. Below are my comments:
Upgrade the SSRS to date - I am a developer and the server is owned by an infrastructure team. It is not at all realistic for me to ask them to upgrade the server because of my issues. If it helps though, we are using SSRS 2012.
Run the sub report separately to check whether the issue happens - I have done this and it doesn't make a difference because I'm only retrieving basic parameters from the main report. The subreport queries the binary data from the database itself.
Simply the custom code(e.g. Just show message box) - Unfortunately, I didn't have time to try this one before the business agreed to the other working option which is downloading the files to a shared drive. I know it sounds so lame from a web development
perspective but really I think this is not a bad compromise for using SSRS.
Thanks again for your efforts,
Vanessa

Similar Messages

  • How to download a file from database

    Hi,
    My flex application contains a form that uploads a file into the server. This file is however saved in the database, and not on the disk. Most of the tutorials in the database explains how to download a file by passing the file's url to the "download" function of the fileReference Object. That dsnt work for me as my file is saved in the database.
    How do I download this file from the server ?
    For example, in php, we would do smthing like this :
    $content = $file_to_download['content'];
    $size = $file_to_download['content_size'];
    $type = $file_to_download['content_type'];
    $name = $file_to_download['filename'];
    header("Content-type:$type");
    header("Content-length:$size");
    header("Content-Disposition:attachment;filename=$name");
    header("Content-Description:PHP Generated Data");
    echo $content;
    When executing this file, it opens up the "download file" dialog box. How do i get the same effect in flex 4 ?

    You need the bytes use FileReference.download() and after download you can save
    it on disk with FileReference.save(); You also need FP 10 at least I think. Use
    the docs they are less error pron than mi memory :).
    C

  • Downloading a file from Database [Blob field]

    I am trying to write an application which can upload and download files [Excel, Word etc.] to/from an Oracle 9i database Blob field. I am using Java/JSP for the same.
    The upload part works just fine. However, when I try to download the file that I uploaded, I get an error.
    A dialog box comes up asking me to Open/Save the file. However, when I try to save it, it says
    �Internet Explorer cannot download �..tion=download&planId= testplan from localhost
    Internet Explorer was not able to open this Internet Site. The requested site is either unavailable or cannot be found. Please try again later.�
    I am using IE 6.0. I tested the same with Firefox browser and was able to download the file.
    Can anyone help?
    Code:
    Following is the code I am using for the same.
    /* Code to retrieve from Blob field */
    String sqlString = "SELECT PLAN_DOCUMENT_NAME,PLAN_DOCUMENT FROM BRS_PLAN_DESCRIPTION WHERE PLAN_ID = ?";
    ps = con.prepareStatement(sqlString);
    ps.setString (1,planId);
    rs = ps.executeQuery();
    while (rs.next()) {
         fileBytes = rs.getBytes("PLAN_DOCUMENT");
         fileName = rs.getString("PLAN_DOCUMENT_NAME");
    brsPlanDocument.setPlanId(planId);
    brsPlanDocument.setFileName(fileName);
    brsPlanDocument.setFileBytes(fileBytes);
    /* Code for download */
    String fileName = brsPlanDocument.getFileName();
    String fileType = fileName.substring(fileName.indexOf(".")+1,fileName.length());
    if (fileType.trim().equalsIgnoreCase("txt"))
         response.setContentType( "text/plain" );
    else if (fileType.trim().equalsIgnoreCase("doc"))
         response.setContentType( "application/msword" );
    else if (fileType.trim().equalsIgnoreCase("xls"))
         response.setContentType( "application/vnd.ms-excel" );
    else if (fileType.trim().equalsIgnoreCase("pdf"))
         response.setContentType( "application/pdf" );
    else if (fileType.trim().equalsIgnoreCase("ppt"))
         response.setContentType( "application/ppt" );
    else
         response.setContentType( "application/octet-stream" );
    response.setHeader("Content-Disposition","attachment; filename=\""+fileName+"\"");
    response.setHeader("cache-control", "no-cache");
    byte[] fileBytes=brsPlanDocument.getFileBytes();
    ServletOutputStream outs = response.getOutputStream();
    outs.write(fileBytes);
    outs.flush();
    outs.close();

    Hi,
    is this problem solved for you, I am also writing the java code to store different files in blob fields in database(db2udb) and allow users to open them through jsp pages. Upload seems to be working fine.....My big problem is only excel files are opened properly in both IE and Firefox. Word files, image files are not getting opened. Any suggestion as what I could be doing wrong....my jsp is kind of similar to the above one...
    thanks in advace, please guide me
    long pmsId = new Long(request.getParameter("pmsId")).longValue();
    String fileName = request.getParameter("fileName");
    int fileSeq = new Integer(request.getParameter("fileSeq")).intValue();
    if(fileName.endsWith("txt")) {
    response.setContentType("text/plain");
    log.debug(" this is a text file");
    } else if(fileName.endsWith("xls")) {
    response.setContentType("application/vnd.ms-excel");
    log.debug(" this is a excel file");
    } else if(fileName.endsWith("gif")) {
    response.setContentType("image/gif");
    log.debug(" this is a image file");
    } else if(fileName.endsWith("doc")) {
    response.setContentType("application/msword");
    log.debug(" this is a doc file");
    } else if(fileName.endsWith("pdf")) {
    response.setContentType("application/pdf");
    log.debug(" this is a pdf file");
    } else if(fileName.endsWith("ppt")) {
    response.setContentType("application/ppt");
    log.debug(" this is a ppt file");
    } else {
    response.setContentType("application/everythingelse");     
    log.debug(" this is a unknown ile");
    response.setHeader("Content-Disposition", "attachment;filename="+fileName);
    OutputStream out1 = response.getOutputStream();
    Class.forName("com.ibm.db2.jcc.DB2Driver");
    db2Conn = DriverManager.getConnection("jdbc:db2:TESTDB","db2admin","db2fv1000");
    //log.debug("connection obtained");
    pstmt = db2Conn.prepareStatement(" SELECT * FROM UPLOADDOCS WHERE PMSID = ? AND DOCSEQ = ? ");
    //log.debug("statemenmt prepared");
    pstmt.setLong(1, pmsId);
    pstmt.setInt(2, fileSeq);
    rs = pstmt.executeQuery();
    int count = 0;
    if(rs.next()){
    InputStream is = rs.getBinaryStream("DOCUMENT"); //"is" is
    //now the binary data
    //of the file
    byte[] buf = new byte[4096];
    int len;
    while ((len = is.read(buf)) > 0)
         out1.write(buf, 0, len);
    out1.close();
    out1.flush();

  • Use WEBUTIL for upload and download file to/from Database

    Dear friends
    I have a table with three columns (id , name , myDoc) myDoc is a BLOB, I would like upload word documents or PDFs or images to myDoc column, I use Oracle Form 10g, I try to use webutil to solve my problem, but I couldn't, Please help me.
    Thanks

    # Details
    # transfer.database.enabled : Can be TRUE or FALSE - allows you to disable
    # upload and download from the database server.
    # transfer.appsrv.enabled : Can be TRUE or FALSE - allows you to disable
    # upload and download from the application
    # server.
    # transfer.appsrv.workAreaRoot: The root of the location in which WebUtil can
    # store temporary files uploaded from the client.
    # If no location is specified, Application Server
    # user_home/temp will be assumed.
    # This location is always readable and writable
    # no matter what the settings in
    # transfer.appsrv.* are. This setting is
    # required if you need the Client side
    # READ/WRITE_IMAGE_FILE procedures.
    # transfer.appsrv.accessControl:Can be TRUE or FALSE - allows you to indicate
    # that uploads and downloads can only occur from
    # the directories named in the
    # transfer.appsrv.read.n and
    # transfer.appsrv.write.n entries and their
    # subdirectories. If this setting is FALSE,
    # transfers can happen anywhere.
    # transfer.appsrv.read.<n>: List of directory names that downloads can read
    # from.
    # transfer.appsrv.write.<n>: List of directory names that uploads can write
    # to.
    #NOTE: By default the file transfer is disabled as a security measure
    transfer.database.enabled=true
    transfer.appsrv.enabled=true
    transfer.appsrv.workAreaRoot=
    transfer.appsrv.accessControl=TRUE
    #List transfer.appsrv.read.<n> directories
    transfer.appsrv.read.1=c:\temp
    #List transfer.appsrv.write.<n> directories
    transfer.appsrv.write.1=c:\temp

  • I want to download and image from the url and image is in byte format

    hi
    i want to download the image from the url:
    http://www.tidelinesonline.com/mobile/j2me_v1?reqType=imageJoin&imageCount=1&month=1&day=1&year=2008&id=1&imageWidth=230&imageHeight=216&imageDepth=8&imageUnits=feet&imageType=JPG&msisdn=456
    can any one help me to do this i need to finish this today plz help me.
    first 5 character 09593 is the length of the image we need to substract image length from total length.
    thanks in advance
    M.Raj
    Edited by: Mraj.Bangalore on May 15, 2008 12:01 AM
    Edited by: Mraj.Bangalore on May 15, 2008 12:01 AM

    hi
    thanks for the reply,
    that works only if .png file is there in the path.
    i worked it out, it is working fine now
    try
                   httpConn = (HttpConnection)Connector.open(url);
                   is=httpConn.openInputStream();
                   responseCode = httpConn.getResponseCode();
                   if(httpConn.getResponseCode() == 200)
                             ByteArrayOutputStream bStrm = null;
                             byte[] data = new byte[512];
                             int contentLen = httpConn.getHeaderFieldInt("Content-Length", 0);
                             if(contentLen > 0)
                                  response = new byte[contentLen];
                             else
                                  bStrm = new ByteArrayOutputStream();
                             int count = 0, tmp =0;
                                  while ((count = is.read(data)) >= 0)
                                       if( contentLen > 0 )
                                            for(int i=0;i<count && tmp+i < contentLen;i++)
                                                 response[tmp+i] = data;
                                            tmp += count;
                                       else
                                            bStrm.write(data, 0, count);
    //                                    if( aborted)
    //                                         break;
                                  data = null;
                                  System.gc();
                                  if( contentLen <= 0 )
                                       response = bStrm.toByteArray();
                                       bStrm.close();
                                       bStrm = null;
                                       System.gc();                                   
                        else
    //                          main.showAlert("ERROR","Connection failed.Please access again later");
    //                          main.changeToMain();
              catch(Exception e){
                   response = null;
                   responseCode = 0;
    //                main.showAlert("ERROR","Connection failed.Please access again later");
    //                main.changeToMain();
              catch(OutOfMemoryError e){
    //                main.showAlert("ERROR","Not enough memory, please disable some apps or delete files and try again.");
    //                main.changeToMain();
              finally
                   System.out.println("Before Creation"+response.length);
                   img = Image.createImage(response, 5, response.length-5);
                   System.out.println("After Creation");
                   CanvasImageFile canvas = new CanvasImageFile(this);
                   midlet.display.setCurrent(canvas);
                   try
                        if( is != null )
                             is.close();
                             is=null;
                   catch(Exception ex){
    //                     main.showAlert("ERROR","Connection failed.Please access again later");}
                             if( httpConn != null )
                             try {
                                       httpConn.close();
                                  } catch (IOException e) {
                                       // TODO Auto-generated catch block
                                       e.printStackTrace();
                             httpConn=null;

  • After downloading a movie from itunes i get the message MPAV Controller Error Domaine error 3 what can i do ?

    after downloading a movie from itunes i get the message MPAV Controller Error Domaine error 3 what can i do ?

    Log out of iTunes from Settings, power down and restart the iPad, log back into iTunes. Your download should play now.

  • I want to download an image from the url and image is in byte format

    hi
    i want to download an image from the url
    http://www.tidelinesonline.com/mobile/j2me_v1?reqType=imageJoin&imageCount=1&month=1&day=1&year=2008&id=1&imageWidth=230&imageHeight=216&imageDepth=8&imageUnits=feet&imageType=JPG&msisdn=456
    first 5 digits will be the length of the image,we need to download except first 5 digits and display an image file
    i need to finish this today
    pla reply if any body knows solution for this.
    thanks in advance
    Mraj

    You do not need to do anything - iPhoto always keeps the original and you can revert to it at any time
    If you want to be able to see the original and the cropped version in iPhoto at the same time duplicate the photo (this does not really duplicate but simply starts a new edit stream for the photo - command-d) and crop the duplicate
    LN

  • Downloading a file from App Server to User's Desktop

    Hi All,
    I know that there are many threads on file upload and download :-)
    I have tried to browse through most of them and could not find my solution.
    The requirement is to place a file in the unix app server directory and allow the user to download it using a link, to the user's desktop. In case you think that this has already been answered in an old thread, kindly give me the pointer. Any sample code for doing this, would be great.
    I know how to upload a file from desktop to table/app server. I know how to download a file from a BLOB column in database.
    Thanks,
    Amit

    You would not be able to use file upload or download beans, as they interact with the database and not the filesystem.
    You would need to write a simple file reader routing in plain java.
    Tapash

  • How to download a file from a custom server location?

    Hello experts,
    I have the following scenario:
    A BAPI creates an .exe file and stores it in a custom folder in the server where the portal (and my WD application) is running. This happens once a day.
    What I need to do is create a link or button (doesn't matter) so that users can click on it and download this file.
    I already checked the file upload - download tutorial (http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/202a850a-58e0-2910-eeb3-bfc3e081257f;jsessionid=%28J2EE3417500%29ID0774236150DB11016171821629714331End?overridelayout=true) however this one considers the file to be downloaded is stored in the src folder of the project, thus it doesn't really help me.
    How can I achieve this? Any suggestions and help will be greatly appreciated.
    Thanks!

    hi Alain,
    Use File API to read data from the file. It will return byte array from the file. Set Byte array to the file resouce context attribute.
    bind this attribute to the filedownload UI element.
    Since you need to read file from the same server where webdynpro application is running, You can give the folder path on the server where the file is located.
    try {
                   File inputFile =
                   new File("C:\\Test\\Test.txt");
                   FileInputStream in = new FileInputStream(inputFile);
                   byte b[] = new byte[ inputFile.length()];
                   in.read(b);
                   in.close();
              } catch (FileNotFoundException e1) {
                   // TODO Auto-generated catch block
                   e1.printStackTrace();
              } catch (IOException e1) {
                   // TODO Auto-generated catch block
                   e1.printStackTrace();

  • How to download a file from Middleware server

    Hi,
    I have a requirement to list file names in a table layout and when user clicks on file name, file must be downloaded to the client tier. Source files are located in 11i Apps middletier.
    I did not find any examples on how to achieve this using OAF. All I see is downloading file from BLOB inside a database.
    please help..

    OAMessageDownloadBean is the bean that lets you download a file from middletier.
    Please see the File Upload and Download chapter in devguide for implementation details.
    Thanks
    Tapash

  • How to Download a file from web server using servlets

    how do we download a file from Java Web Server connecting to oracle database
    it should start as soon a i click a button in my html browser
    please reply as it is needed to complete my project to submited to the collage

    With SQLJ you can do it.
    When you look at:
    http://otn.oracle.com/sample_code/tech/java/sqlj_jdbc/files/basic/basic.htm
    or
    http://otn.oracle.com/sample_code/tech/java/sqlj_jdbc/files/advanced/advanced.htm
    There are samples for reading LONGRAW / BLOB from Database. If you want use it in servlet you have to pass the result to the responce object, set the correct mime-type and set the response.setContentLength( xx). This is for some PlugIns nessessary (pdf).
    regards Dietmar

  • How to download a file from server machine to client machine using jsp

    Hi,
    In my application, I have an excel file stored on my server machine. How can I download that excel file on to my client machine using jsp. Is there any other way I can open that file from my machine and save it in my machine using jsp/java?
    Its an emergency for me to do this.
    Can anyone provide me the full code to download a file from server machine as I don't have
    time to browse through various sites.
    thanks in advance,
    Tiijnar

    Please post your code using code tags (click on CODE above the text area, when posting)
    response.setContentType("application/octet-stream");Why octet-stream? Set the correct mime-type.
    String disHeader = "Attachment; Filename=\"filename\"";The filename should just be the file's name. Not the complete path to the file! This will tell anyone where the file is located on the server. It's also inconvenient because by default,the browser will suggest it as the name for the download.
    Your way of writing to the output stream is just plain wrong. See this snippet (picked from [http://balusc.blogspot.com/2007/07/fileservlet.html])
            BufferedInputStream input = null;
            BufferedOutputStream output = null;
            try {
                // Open streams.
                input = new BufferedInputStream(new FileInputStream(file), DEFAULT_BUFFER_SIZE);
                output = new BufferedOutputStream(response.getOutputStream(), DEFAULT_BUFFER_SIZE);
                // Write file contents to response.
                byte[] buffer = new byte[DEFAULT_BUFFER_SIZE];
                int length;
                while ((length = input.read(buffer)) > 0) {
                    output.write(buffer, 0, length);
                // Finalize task.
                output.flush();
            } finally {
                // Gently close streams.
                close(output);
                close(input);
            }

  • How to download a file from server?

    Hi everyone,
    I need to download a file from my server to client machine. I got a sample code from ur forum and I modified it slightly.
    //Snippet of code:
    public void doGet(HttpServletRequest req, HttpServletResponse res)throws
         ServletException, IOException{
    int bytesRead=0;
         int count=0;
         byte[] b1=new byte[1];
         //OutputStream out=res.getOutputStream();
         res.setContentType("application/html");
         //Create an input stream from file URL.
         String fileURL="http://localhost:8080/webapps/upload/upload.html";
         BufferedInputStream bis=null;
         BufferedOutputStream bos=null;
         boolean download=false;
         res.setHeader("Content-disposition", "attachment; filename=upload.html " );
         try{
         URL url=new URL(fileURL);
         URLConnection connection=url.openConnection();
         InputStream in=connection.getInputStream();
         bis=new BufferedInputStream(in);
         FileOutputStream fileout=new FileOutputStream("upload.html");
         bos=new BufferedOutputStream(fileout);
         while(-1 != (bytesRead = bis.read())){
         try{
         bos.write(bytesRead);
         bos.flush();
         }//end of try forwhile loop
         catch(SocketException e){
         setError(e);
         break;
    The code is getting compiled, when I run the appln using the URL,
    http://localhost:8080/upload/servlet/DownloadFile
    it opens a pop up dialog box, asking whether to "open", "save" or "cancel" buttons. When I try to open a file, I'm getting a blank page.
    I'm not getting the contents of the file.
    So pls can anyone tel me wht's wrong in the code or do i need to add few more lines in my code?
    Also pls let me know, how can I download any files of type .doc, html, .txt, .zip, or any type, without mentioning the file type?
    Thanks in advance

    Do not use a FileOutputStream (that will save it locally to the server). Call HttpServletResponse.getOutputStream(), which will send it back to the browser. Also remember to call close() on the stream at the end.
    - Saish

  • How to download a file from the net and save it into .txt format in a datab

    Can some one show me a tutorial on how to download a file from the net and save it into .txt format in a database?
    Thank you,

    http://java.sun.com/docs/books/tutorial/networking/urls/readingWriting.html

  • Software Updates ADR Issue: "Failed to download the update from the internet. Error = 5"

    "Failed to download the update from internet. Error = 5"
    The above is the error I am getting when running any ADR. The error is quite clear software updates are failing to download and Error = 5 being a permissions error its clear that the downloads are failing due to incorrect permissions applied to the download
    path. 
    Here is the last bit of my ruleengine.log, everything above is the same except for the update trying to be downloaded of course:
    Failed to download the update from internet. Error = 5
    SMS_RULE_ENGINE 6/26/2014 9:21:59 AM
    5148 (0x141C)
    Failed to download ContentID 16860969 for UpdateID 16857152. Error code = 5
    SMS_RULE_ENGINE 6/26/2014 9:21:59 AM
    5148 (0x141C)
    Downloading contents (count = 1) for UpdateID 16857255
    SMS_RULE_ENGINE 6/26/2014 9:21:59 AM
    5148 (0x141C)
    List of update content(s) which match the content rule criteria = {16861141}
    SMS_RULE_ENGINE 6/26/2014 9:21:59 AM
    5148 (0x141C)
    Downloading content with ID 16861141 in the package
    SMS_RULE_ENGINE 6/26/2014 9:21:59 AM
    5148 (0x141C)
    Failed to download the update from internet. Error = 5
    SMS_RULE_ENGINE 6/26/2014 9:22:00 AM
    5148 (0x141C)
    Failed to download ContentID 16861141 for UpdateID 16857255. Error code = 5
    SMS_RULE_ENGINE 6/26/2014 9:22:00 AM
    5148 (0x141C)
    Failed to download any update SMS_RULE_ENGINE
    6/26/2014 9:22:00 AM 5148 (0x141C)
    Failed to download update contents. SMS_RULE_ENGINE
    6/26/2014 9:22:00 AM 5148 (0x141C)
    No new update was added to the package. Package "SCP0008A" would not be updated.
    SMS_RULE_ENGINE 6/26/2014 9:22:00 AM
    5148 (0x141C)
    Failed to run the DownloadAction for the AutoDeployment.
    SMS_RULE_ENGINE 6/26/2014 9:22:00 AM
    5148 (0x141C)
    STATMSG: ID=8706 SEV=E LEV=M SOURCE="SMS Server" COMP="SMS_RULE_ENGINE" SYS=SCCM-MPS.DSCICORP.COM SITE=SCP PID=2376 TID=5148 GMTDATE=Thu Jun 26 13:22:00.164 2014 ISTR0="SMS Rule Engine" ISTR1="Failed to download one or more
    content files" ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=0
    SMS_RULE_ENGINE 6/26/2014 9:22:00 AM
    5148 (0x141C)
    Enforcing Create Deployment Action SMS_RULE_ENGINE
    6/26/2014 9:22:00 AM 5148 (0x141C)
      Create Deployment Rule Action XML is: <DeploymentCreationActionXML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><CollectionId>SCP00055</CollectionId><IncludeSub>true</IncludeSub><Utc>false</Utc><Duration>0</Duration><DurationUnits>Hours</DurationUnits><AvailableDeltaDuration>0</AvailableDeltaDuration><AvailableDeltaDurationUnits>Hours</AvailableDeltaDurationUnits><SuppressServers>Checked</SuppressServers><SuppressWorkstations>Unchecked</SuppressWorkstations><PersistOnWriteFilterDevices>Unchecked</PersistOnWriteFilterDevices><AllowRestart>true</AllowRestart><DisableMomAlert>false</DisableMomAlert><GenerateMomAlert>false</GenerateMomAlert><UseRemoteDP>true</UseRemoteDP><UseUnprotectedDP>true</UseUnprotectedDP><UseBranchCache>true</UseBranchCache><EnableDeployment>true</EnableDeployment><EnableWakeOnLan>true</EnableWakeOnLan><AllowDownloadOutSW>false</AllowDownloadOutSW><AllowInstallOutSW>true</AllowInstallOutSW><EnableAlert>true</EnableAlert><AlertThresholdPercentage>90</AlertThresholdPercentage><AlertDuration>7</AlertDuration><AlertDurationUnits>Days</AlertDurationUnits><EnableNAPEnforcement>false</EnableNAPEnforcement><UserNotificationOption>DisplaySoftwareCenterOnly</UserNotificationOption><LimitStateMessageVerbosity>false</LimitStateMessageVerbosity><StateMessageVerbosity>10</StateMessageVerbosity><AllowWUMU>true</AllowWUMU><AllowUseMeteredNetwork>true</AllowUseMeteredNetwork></DeploymentCreationActionXML>
    SMS_RULE_ENGINE 6/26/2014 9:22:00 AM
    5148 (0x141C)
      Rule XML is: <AutoDeploymentRule xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><DeploymentName>Test ADR</DeploymentName><DeploymentDescription>Test ADR</DeploymentDescription><LocaleId>1033</LocaleId><UseSameDeployment>false</UseSameDeployment><EnableAfterCreate>true</EnableAfterCreate><NoEULAUpdates>false</NoEULAUpdates><AlignWithSyncSchedule>false</AlignWithSyncSchedule><ScopeIDs><ScopeID>SMS00UNA</ScopeID></ScopeIDs></AutoDeploymentRule>
    SMS_RULE_ENGINE 6/26/2014 9:22:00 AM
    5148 (0x141C)
      Criteria Filter Result XML is: <AutoDeploymentRule xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><DeploymentName>Test ADR</DeploymentName><DeploymentDescription>Test
    ADR</DeploymentDescription><LocaleId>1033</LocaleId><UseSameDeployment>false</UseSameDeployment><EnableAfterCreate>true</EnableAfterCreate><NoEULAUpdates>false</NoEULAUpdates><AlignWithSyncSchedule>false</AlignWithSyncSchedule><ScopeIDs><ScopeID>SMS00UNA</ScopeID></ScopeIDs></AutoDeploymentRule>
    SMS_RULE_ENGINE 6/26/2014 9:22:00 AM
    5148 (0x141C)
        Parsing Deployment Action XML...
    SMS_RULE_ENGINE 6/26/2014 9:22:00 AM
    5148 (0x141C)
        Parsing Rule XML... SMS_RULE_ENGINE
    6/26/2014 9:22:00 AM 5148 (0x141C)
    Could not find element DeploymentId SMS_RULE_ENGINE
    6/26/2014 9:22:00 AM 5148 (0x141C)
    Could not find element UpdateGroupId SMS_RULE_ENGINE
    6/26/2014 9:22:00 AM 5148 (0x141C)
    Could not find element UpdateGroupName SMS_RULE_ENGINE
    6/26/2014 9:22:00 AM 5148 (0x141C)
        SQL is: select cis.CI_ID from vCI_ConfigurationItems cis join vProvisionedCIs pci on cis.CI_ID = pci.CI_ID where cis.CI_ID in (16793068, 16793070, 16793441, 16793445, 16793531, 16793686, 16793688, 16794597, 16794600, 16794602, 16794604, 16795443,
    16795445, 16795709, 16795711, 16796210, 16796222, 16796292, 16796298, 16799495, 16799503, 16799602, 16799700, 16799703, 16799705, 16799712, 16799718, 16800300, 16800302, 16800367, 16800369, 16800371, 16800375, 16801224, 16801227, 16801237, 16801239, 16801287,
    16801289, 16801559, 16801566, 16801996, 16802034, 16802839, 16802841, 16803306, 16803310, 16803420, 16803422, 16806477, 16806479, 16809354, 16809360, 16809393, 16809397, 16809774, 16809786, 16809792, 16813338, 16813348, 16813636, 16813638, 16814948, 16814950,
    16815151, 16815153, 16817088, 16817102, 16817108, 16817398, 16817400, 16818677, 16818691, 16825397, 16840448, 16840458, 16840460, 16840462, 16840690, 16840700, 16840702, 16840710, 16840824, 16840826, 16842640, 16842641, 16842802, 16842803, 16842841, 16842870,
    16842871, 16842896, 16842917, 16843017, 16843042, 16843049, 16843051, 16845981, 16846404, 16846751, 16846757, 16848017, 16848021, 16848664, 16848687, 16849383, 16849385, 16852506, 16852514, 16852516, 16855484, 16857102, 16857151, 16857152, 16857255) order
    by cis.CI_ID SMS_RULE_ENGINE
    6/26/2014 9:22:00 AM 5148 (0x141C)
          0 of 115 updates are downloaded and will be added to the Deployment.
    SMS_RULE_ENGINE 6/26/2014 9:22:00 AM
    5148 (0x141C)
    The rule resulted in no updates being found. Skip deployment creation or update...
    SMS_RULE_ENGINE 6/26/2014 9:22:00 AM
    5148 (0x141C)
    CRuleHandler: Enforcing Actions for Rule 16777228 failed!
    SMS_RULE_ENGINE 6/26/2014 9:22:00 AM
    5148 (0x141C)
    CRuleHandler: ResetRulesAndCleanUp() SMS_RULE_ENGINE
    6/26/2014 9:22:00 AM 5148 (0x141C)
    Updated Failure Information for Rule: 16777228
    SMS_RULE_ENGINE 6/26/2014 9:22:00 AM
    5148 (0x141C)
    CRuleHandler: Deleting Rule 16777228 SMS_RULE_ENGINE
    6/26/2014 9:22:00 AM 5148 (0x141C)
    Found notification file C:\Program Files\Microsoft Configuration Manager\inboxes\RuleEngine.box\16777228.RUL
    SMS_RULE_ENGINE 6/26/2014 9:22:10 AM
    5148 (0x141C)
    RuleSchedulerThred: Change in Rules Object Signalled.
    SMS_RULE_ENGINE 6/26/2014 9:22:10 AM
    5228 (0x146C)
    Refreshed ScheduleList instance for Rule (16777228) from schedule string () with next occurence (12/31/1969 7:00:00 PM)
    SMS_RULE_ENGINE 6/26/2014 9:22:10 AM
    5228 (0x146C)
    FindNextEventTime found next event for RuleID 0 as :1/1/2038 12:00:00 AM
    SMS_RULE_ENGINE 6/26/2014 9:22:10 AM
    5228 (0x146C)
    RuleEngine: Got next rule execution time successfully. Next event is in  12369097 minutes
    SMS_RULE_ENGINE 6/26/2014 9:22:10 AM
    5228 (0x146C)
    Sleeping for 15 minutes SMS_RULE_ENGINE
    6/26/2014 9:22:10 AM 5228 (0x146C)
    Also, I do not have a patchdownloader.log anywhere, Ive checked all aforementioned locations from various sources and it just simply does not exist on my SCCM server. Here is my setup:
    Server1: Primary server with all roles installed locally except the site database is on its own server. WSUS is installed locally here and DB is stored here. 
    Server2: SQL DB for Primary site DB
    Server3: Secondary remote site running MP, DP, SUP. DB is SQL Express local. 
    So the SUP role was installed successfully on both server1 first and server 2 second with the site servers accounts. The SUP Synchronizes successfully and I can see a large list of updates available for use but not downloaded of course. I have set WSUS option
    to store updates locally and have plenty of space at the target destination.
    So here is my issue, I have been working on this issue for the better part of a week and understand the error code from the ruleengine.log to be a permissions issue. I have also proved this out but creating a test ADR with minimal updates and applied NTFS perms
    to the target path for Modify with the everyone group (testing purposes only). The updates downloaded successfully. So this puts me right back to where I was, knowing its a permissions issue but not understanding what permissions are needed. Let me explain
    further.
    The best way to start is to show what perms I have to the target location for downloads/wsus/sup anything:
    Path: \\Server1\UpdatesAndDefinitions    (permissions being applied to the UpdatesAndDefinitions root folder)
    SCCMAdmin (account used for most SCCM tasks except for NA) / Modify / Share and NTFS
    Server1$ (primary site server) / Modify / NTFS
    Everyone / read and execute / NTFS and Share
    There are other system generated perms but the above three are the important ones. So hence my confusion I know that the SCCMAdmin account or the Server its self has to be accessing the target directory so why is it failing with a permissions issue?
    My next step was to enable Auditing on the target path. Doing so revealed just what I thought and through me into further frustration:
    A network share object was accessed.
    Subject:
    Security ID:
    SYSTEM
    Account Name:
    SCCM-MPS$
    Account Domain:
    DSCI
    Logon ID:
    0x3e7
    Network Information:
    Source Address:
    fe80::306a:8827:8672:3ba5
    Source Port:
    50329
    Share Name: \\*\UpdatesAndDefinitions
    A handle to an object was requested.
    Subject:
    Security ID:
    DSCI\sccmadmin
    Account Name:
    sccmadmin
    Account Domain:
    DSCI
    Logon ID:
    0xad903c
    Object:
    Object Server:
    Security
    Object Type:
    File
    Object Name:
    F:\UpdatesAndDefinitions
    Handle ID:
    0xf5c
    Process Information:
    Process ID:
    0x10cc
    Process Name:
    C:\Windows\explorer.exe
    Access Request Information:
    Transaction ID:
    {00000000-0000-0000-0000-000000000000}
    Accesses:
    READ_CONTROL
    ReadAttributes
    Access Mask:
    0x20080
    Privileges Used for Access Check:
    Restricted SID Count:
    0
    Now I may not be the best I traversing through the mess of audit entry's and translating them, but from what I can see the two accounts that have the proper share and ntsf perms ive listed above are indeed the ones accessing the target location and the audit
    code is success. I filter for failures and found no audits for failures whatsoever yet my downloads still fail religiously, unless of course I open myself up with the everyone group.
    So next... I tried adding in the Network Service account with proper permissions, the Local Service Account, my user account, and all no go's.
    Next... I remove the SUP roles from SCCM checked the logs for deinstall confirmations, and reinstalled these roles. No Go!
    If anyone can assist I would be in your debt and very grateful. 
    Oh last note, but very important note I'm running SCCM 2012 SP1 CU4
    Thanks,
    Michael
    MichaelSpaulding

    I just tested with the everyone group further; I added everyone with modify for ntfs and just read only for share and downloads failed!
    I then changed the share perms for everyone to change and the ntfs to read/execute and poof downloads complete! Obviously change share perms for everyone leaves me open which Id like to prevent, so finding what account is being used is crucial.
    I have already tried adding all of the SCCM accounts I use and the servers themselves as change perms to share and ntfs and have not had any luck.
    MichaelSpaulding

Maybe you are looking for

  • Is there a tool available that can be executed by another process to scale the actual size of a PDF?

    Is there a tool available that can be executed by another process to scale the actual size of the printed PDF file by X%?  We are attaching PDF files to printed output using the Oracle DocuMaker product, and are running into margin issues with the at

  • Global Variable for selection screen variable

    Hi All, We need to create a report where calendar day has to be included in the selection screen.Later after executing the report we should be able to retrieve the selection screen input for calendar day and modify it and use the modified one for oth

  • Master Objects in Page layout

    It seems from a number of archived posts that Master Objects dont work when in page layout mode. The help menu says its possible but doesnt say how. I think this should be considered a bug as Page layout needs master as much as word processing. Any t

  • Move Skype Message To Right Side Of Call

    Ever since the update where the message box was on the right side of the call, I got used to it, and now that it's suddenly moved back to the bottom it looks horrendous and honestly wastes space... Is there any way to move it back to the right side o

  • Where is burn button

    I need to burn songs from my library to a CD. I do what it says but there is no burn button at bottom of itunes window, nor is the burn option available in the drop down menu under File. Please advise.