Urgent help...Attacth an Excel file in a human task

I need (ASAP) an example or code for attaching an excel file in a human task. The excel file is stored as BLOB in a table.
My life depends on it!

Hello Ivan,
Are you using the worklist application? If so you should be able to do it
in the UI itself on the task form (no need of any code).
If you are getting the file programatically then u can get the data and set the attachments on the task using assign.
HTH
Raj

Similar Messages

  • Need help with Dynamic Excel File Name please.

    I am try to output an excel file with dynamic date. 
    Here what I done.
    I am using SQL 2012.
    Create Execute SQL Task Connect Type: Excel
    Create Data Flow Task set to DelayValidation: True
    Create OLE DB Sourc
    Create Data Converstion
    Excel Destination
    Excel Connection, Expression, select ExcelFilePath
    @[User::sXLFilePath] +  @[User::sFileName] + RIGHT("0" + (DT_WSTR, 2) DATEPART("DD", GETDATE()), 2)+ RIGHT("0" + (DT_WSTR, 2) DATEPART("MM", GETDATE()), 2) + RIGHT((DT_WSTR,
    4) DATEPART("YYYY", GETDATE()), 2) +".csv"
    C:\ExcelOutPut\SOX_CAM_SQL_Report_010215.xls
    What I try to accomplish is output the file with each day append to it, date must be DDMMYY.
    I google it and found many samples, tested it, and none of them is work for me. 
    Any suggestions or some examples to share is greatly appreciate. 
    I am new to SSIS.  I found one poster have similar issue and inside the posted below, there was one suggestion to create variable and connection string but how do I bind that variable to Excel Connection manger.
    Please help.
    Thank you so much in advance.
    Ex: SOX_CAM_SQL_Report _020215.csv
           SOX_CAM_SQL_Report _030215.csv
    --Similar issue:
    https://social.msdn.microsoft.com/Forums/en-US/bda433aa-c8f8-47c9-9e56-efd20b8354ac/creating-a-dynamic-excel-file?forum=sqlintegrationservices
    Suggestion in the above posted but where can bind this to Excel Connection Manger. 
    Please help provide step by step.  Thanks.
    "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\\temp\\" + "ExcelTarget" + (DT_WSTR,4)DATEPART("yyyy",GETDATE())  +
    ".xls" + ";Extended Properties=\"EXCEL 8.0;HDR=YES\";"
    And yes, as you were intimating, the delay validation on the dataflow should be set.

    Hi NguyenBL,
    According to your description, you created ssis package to export data from database to excel, when the package runs, you want to create new excel and name the file with time stamp. If that is the case, we can achieve the goal by following steps:
    Create a script task used to create excel files.
    Create a data flow task to export data from database to excel.
    Add OLE DB source to data flow task.
    Add Excel Destination to data flow task.
    Create connection manager for OLE DB and Excel.
    Click Excel Connection Manager, in Properties window, click (…) button next to Expressions, then set ExcelFilePath with expression like below:
    "C:\\ETL Lab\\CreateNewExcel\\ExportData_"+REPLACE((DT_STR, 20, 1252)(DT_DBTIMESTAMP)@[System::StartTime], ":", "")+".xls"
    For detail information, please refer to the document:
    https://sqljourney.wordpress.com/2013/01/12/ssis-create-new-excel-file-dynamically-to-export-data/
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    Wendy Fu
    TechNet Community Support

  • Help creating an excel file

    I am trying to create an excel file from a table in sql server.
     I want to basically copy the template file I created into a new folder, then input data to this new file.
    However, I am having trouble because the package wont run because the excel connection manager is pointing to the file that has yet to be created.

    Hi lrj1985,
    If I understand correctly, you would like to create Excel Connection Manager dynamically. In other word, you want to new an Excel file every time the package run. Am I right?
    If so, we can use expression in ExcelFilePath to name the file dynamically. We can create the destination sheet every time before the data flow task is running. Here are the detailed steps:
    Creae a dummy Excel in a specified folder
    New a Excel Connection Manager, and point to the file we created in step1. Yes, it is pre-created. But it won't be used while the package is running
    New a variable, use expression in it to dynamically set its value. This value is going to be used as the ExcelFilePath in runtime. The expression can be something like this: "D:\\Libraries\\Desktop\\Excel\\"  + SUBSTRING( (DT_WSTR, 30) GETDATE(), 1,
    10)+   "_destination.xls"
    Right click the Excel Connection Manager we created in step2, click Property
    In the properties window, click Expressions
    In the Expression window, set Property as ExcelFilePath, and the value as variable we created in step 3
    Now, go to Control flow, add a Execute SQL Task before Data Flow task.
    In the Excel SQL Task, set connection type as Excel, connection as the connection we created in step1, and the SQL Statement as something like the following one
    CREATE TABLE `Excel Destination` (
    `Id` Double,
    `Value` LongText
      9. Go ahead, and add the Data flow task
    After that, each time we run the package, a new Excel file will be created. We can then use File Sytem Task to move it to a specified folder.
    Thanks,
    Jinchun Chen

  • Need help-problem importing excel files

    I am about to begin work on an annual report that will involve importing charts and tables from an Excel file. I am able to drag and drop the pie charts and bar graphs into Indesign. When I try to do the same with the tables, they don't come across. When I import the excel file using the "place" command in Indesign , the files comes through as text only. I need the chart design and formatting. Any ideas?

    If this is going to press then you absolutely should bring those charts into Illustrator. At the very least you want to make sure to convert the RGB black text to real black.
    As for the tables, when you place the Excel file, make sure that show options is selected in the place dialog box. Then choose the proper formatting for the table. If you already formatted everything in Excel, choose Formatted Table. I think you'll be fairly pleased.
    Bob

  • [URGENT] Is Password protected excel file allowed in SharePoint 2013?

    Hi Everyone,
    My boss wanted me to upload some sensitive files into the SharePoint. So I want to use the basic password encryption in Excel Option to create passwords for each one.
    Due to the unclear rules of SharePoint, it has broken down for several times. So this time, I want to ask professionals first - Can I upload password protected spreadsheets into SharePoint?
    Would Sharepoint allow that?
    Thanks for your ideas!

    Yes, I can confirm the protected Excel file, whatever the Workbook protect or Worksheet protect, would be allowed by SharePoint site and upload without problem.
    Thanks.
    Tony Chen
    TechNet Community Support

  • Will more RAM help handle large Excel files?

    Hi everyone,
    I know this message may be better suited to the Office for Mac Forums website, but the site hasn’t been able to validate me as a new user so far (it's been weeks of trying!), and I’m therefore unable to ask a question. So I have to resort to annoying you here.
    I run Excel 2008 (12.1.7) on a 8-core Mac Pro (early 2008) with 6 Gb of RAM (OS 10.5.6). I encounter a lot of problems working with big files, such as a 385 Mb file comprised of over 600,000 row and 50 columns of mostly data (only a few columns are filled with simple formulas).
    After loading the file (which took quite a while), the Activity Monitor indicated that Excel was using 1.12 Gb of Real memory an 2.11 Gb of Virtual, while 3.66 Gb of RAM was free. When I then attempted to create a PivotTable with this data, the amount of memory used by Excel gradually rose to 1.94 Gb of Real an 2.93 Gb of Virtual (2.85 Gb of Free memory was still available) while reading the data. At this point I then got a message stating that there’s not enough memory. I had to resort to breaking the file up into smaller ones to analyze the data, which is quite annoying.
    I was told that being a 32-bit application, Excel 2008 was limited to handling 4 Gb of RAM. But I thought that 4 Gb being way more than the size of the file on disk, and having 6 Gb of RAM on my machine, I shouldn’t have any problem working with it. Obviously I was wrong. Can someone please clarify what’s going on here? Would more RAM significantly help?
    Any help will be greatly appreciated. Thank you!

    Yes, I bet the Windows version of Excel is better. I think it’s definitely time to try it.
    When you say “having 8 DIMMs”, do you mean filling up the 8 memory slots, or having 8 Gb? I believe I remember seeing that 10 Gb was the sweet spot, with all 8 memory slots occupied. Is that right? And what brand of RAM do you like currently, still OWC?
    Thank you Hatter.

  • Help needed saving excel file using servlet and mailing it as attachment

    Hi,
    I have to enhance an existing application in which (in jsp) using response.setContentType("application/vnd.ms-excel");
    response.setHeader("Content-Disposition", "attachment=inline");
    and stuff ..
    we are asking user to view or save the file. But now i have to write code to save that xls, and send it as an attachment to other users of the application.
    I am new to this plz help me out
    Thanks in advance
    Regards
    Aashi

    Hi Orlando,
    convert content to Hex format then,
    lw_document = cl_document_bcs=>create_document(
               i_type    = 'RAW / HTM'
               i_text    = lw_main_text
               i_subject = lw_subject ).
          w_document->add_attachment(
             i_attachment_type    = 'XLS'
             i_attachment_subject = lw_att_sub
             i_att_content_text   = p_int_soli[]
             i_att_content_hex    = p_int_solix[] ).
    w_int_address = lw_smtp-low.
                 w_camuser = cl_cam_address_bcs=>create_internet_address( w_int_address ).
                 w_recipient = w_camuser.
    thanks,
    Anil

  • Urgent Help:read from text file and write to table

    Hi,
    I'm a super beginner looking for a vi to read this data from a text file and insert it into a table:
       #19
    Date: 05-01-2015
    ID= 12345678
    Sample_Rate= 01:00:00
    Total_Records= 2
    Unit: F
       1 03-23-2015 10:45:46   70.1   3.6
       2 03-23-2015 11:45:46   67.7   2.7
    Output table
    #     date                 time                 x          y        Sample rate    Total Records
    1          03-23-2015     10:45:46        76.8     2.8      01:00:00           2
    2          03-23-2015     10:45:46        48.7     2.1      01:00:00           2
    Thanks for your help in advance.
    Attachments:
    sample.txt ‏1 KB

    jcarmody wrote:
    Will there always be the same number of rows of noise header information?
    Show us how you've read the data and what you've tried to do to parse it.  Once you've got the last rows, you can loop over them using Spreadsheet String to Array (after cleaning up a few messy spaces).
    Jim,
    I didn't know you're that active on here.
    Yes, There will always be the same number of noise header information.
    I'll show you in person
    Regards,

  • Urgent help importing an XML file

    Hi all,
    I'm currently exporting my XML files from Magento, the webshop client. However I cannot use the XML task in ETL because I get the error about namedspaces. I can open the XML file itself no problem, it contains a few columns with data, some empty values.
    What I do to solve the error is create the script in ETL that converts the XML file so that I can make the SDX schema. The ETL script itself works 
    <?xml version="1.0" encoding="utf-8" ?> 
    <xsl:stylesheet version="1.0"         xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 
      <xsl:output method="xml" indent="no" /> 
      <xsl:template match="/|comment()|processing-instruction()"> 
        <xsl:copy> 
          <xsl:apply-templates /> 
        </xsl:copy> 
      </xsl:template> 
      <xsl:template match="*"> 
        <xsl:element name="{local-name()}"> 
          <xsl:apply-templates select="@*|node()" /> 
        </xsl:element> 
      </xsl:template> 
      <xsl:template match="@*"> 
        <xsl:attribute name="{local-name()}"> 
          <xsl:value-of select="." /> 
        </xsl:attribute> 
      </xsl:template> 
    </xsl:stylesheet> 
    But when I open the newly created file he looks really odd: See below for the initial file and the new file (based on how many times I open the file, i get another weird look...). Please help me out it's killing me :)

    Or you can apply a XSLT transform as per http://blogs.msdn.com/b/mattm/archive/2007/12/15/xml-source-making-things-easier-with-xslt.aspx
    Arthur My Blog

  • Need urgent help with creating .war file ...

    My boss gave me one day to create an app. that runs on Apache Tomcat 4.0.6. I managed to get it done, but now I'm trying to move it from my machine to the web server. Each time I try to create a .war file I get an error saying "no such file or directory". Am I missing a step here??
    What I do is: go to the webapps/<appname> directory where the app. is located, type in jar cvf * path/to/application/appname.war.
    I then get the "no such file..." message, then a message that says "added manifest" then lines on the screen that say adding: blah blah file. It goes through all the files in my app directory but I get no resulting .war file.
    I'm so frustrated and confused at this point, any help would be greatly appreciated.

    >
    What I do is: go to the webapps/<appname> directory
    where the app. is located, type in jar cvf *
    path/to/application/appname.war. No need to create an intermediate zip file, or to use JDeveloper to create a simple war file.
    You just need to put the WAR name before the list of files.
    jar cvf appName.war *

  • Urgent Help Regarding Using Sound Files

    Hello,
    Using Java is it possible to
    a) represent a .WAV file in WAVE FORM Format (Graph) output.i.e to represent a
    audio file pictorially.
    b) Spilit a .WAV file into n small pieces or portions.
    Please guide me in this regard.Its Urgent
    Thankz

    Hello,
    Using Java is it possible to
    a) represent a .WAV file in WAVE FORM Format (Graph)
    output.i.e to represent a
    audio file pictorially.Open the AudioInputStream, read the AudioFormat, then read the frames one at a time and plot the data.
    Here's some code that plays a wave file using the AudioInputStream. Java Sound, see reply 2. this shows how to open the file and get the format, it just plays it, but is able to plays it, but it does read frames. This should provide a start for you.
    b) Spilit a .WAV file into n small pieces or portions.Yes, see the classes in package javax.sound.sampled.
    >
    >
    Please guide me in this regard.Its UrgentDon't mark your posts as urgent, don't cross post.
    ThankzYou're welcome, hope this helps

  • Urgent help needed with class file platform transfer

    Hi,
    I am working at home on Java in the windows (2000) system. Now I have compiled a java source code which compiles fine. This is an applet and works fine.
    However, when I am uploading the files( class files generated and the html file) to the Sun Unix system, the applet does not work. My first question is: Does this class file generated in Windows system not transferable in the Unix system?
    At this point, I uploaded the java source file to the Unix system. The source file has been created in Textpad in the Windows environment. Now using telnet I used the javac command to compile the source file in Unix system. Now, I am seeing three errors which was not the case in the Windows environment? I have no idea why the same source code is working on one platform and producing error in another?
    Any help is highly appreciated. Thanks. Regards.

    What are the errors?

  • URGENT HELP NEEDED! sort files randomly

    Hi
    I'm a film student and my final project needs to be finished in less than a week! I have a series of images which I need to appear in a random order in my timeline in Final Cut Express. I used Automator to add a series of numbers to the beginning of each filename corresponding to when each image was created/modified, in the hope that that would reorder them, but since they were all exported from Final Cut in the first place they were all created and modified at pretty much exactly the same time, so that didn't really help. I read somewhere that if you know AppleScript it would be a matter of minutes to write a script that could add a string of random alphanumerical characters to the beginning of a series of filenames, but I don't know AppleScript and I don't have time to learn it. Does someone out there know of a solution?
    Many thanks!

    User Craig Smith over in the AppleScript forums provided me with this helpful little script, which solved my problem:
    set a to choose folder
    tell application "Finder"
    set all_Files to every file in folder a
    repeat with a_file in all_Files
    set a_file's name to ((random number from 100 to 999) as text) & a_file's name
    end repeat
    end tell
    Copy and paste it into Script Editor (/Applications/AppleScript), press "Compile" and then "Run", and it will ask you to choose a folder, all the files in which will then receive a random three-digit number between 100 and 999 to the beginning of their filenames. Handy!
    Message was edited by: Bacchus

  • Need urgent help with service and file removal

    Hi,
    I need a powershell script that would stop a windows service ,wait for 2 mins, delete a particular file from C:\documents&settings and then start the service again.Is this possible ?
    Thanks

    Thanks for the reply chen. May be i was not clear in my query
    I plan this because a particular file of configmgr is corrupt on workstations. So the service has to be stopped first before the deletion. I need to run this on many computers remotely. The import file will have the machines that need the script to be run.
    The script has to run all the four steps on the machines based on the import file and export to a file with the results.How can i modify ?
    The sequence will be as follows
    Stop-Service -Name BITS -Verbose
    Start-Sleep -Seconds 120
    Remove-Item -Path C:\documents&settings\***** -Force -Verbose
    Start-Service -Name BITS -Verbose
    Regards
    Sd

  • Urgent : Help me Upload a file via FTP using URL

    Hi
    I am having a problem with an error (The system cannot find the file specified)
    The files FTPPut.java and TESTING.txt are both in /src directory.
    import java.net.*;
    import java.io.*;
    public class FTPPut {
         public static void main(String[] argv)throws Exception{
         int BUFFER = 1024;
         URL url = new URL("ftp://ftp.scit.wlv.ac.uk/pub/");
         File filetoupload = new File("TESTING");
         URLConnection urlc = url.openConnection();
         byte data[] = new byte[BUFFER];
         FileInputStream fis = new FileInputStream(filetoupload);
         BufferedInputStream bis = new BufferedInputStream(fis, BUFFER);
         OutputStream os = urlc.getOutputStream();
         int count;
         while ((count = bis.read(data, 0, BUFFER)) != -1) {
         os.write(data, 0, count);
         System.out.println("uploaded sucessfully...");
         bis.close();
         os.close();
    Exception in thread "main" java.io.FileNotFoundException: TESTING (The system cannot find the file specified)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java:106)
         at FTPPut.main(FTPPut.java:11)
    Edited by: AceV on Jan 10, 2008 7:28 AM

    import java.net.*;
    import java.io.*;
    public class FTPPut {
         public static void main(String[] argv)throws Exception{
         int BUFFER = 1024;
         URL url = new URL("ftp://ftp.scit.wlv.ac.uk/pub/");
         File filetoupload = new File("TESTING");
         URLConnection urlc = url.openConnection();
         byte data[] = new byte[BUFFER];
         FileInputStream fis = new FileInputStream(filetoupload);
         BufferedInputStream bis = new BufferedInputStream(fis, BUFFER);
         OutputStream os = urlc.getOutputStream();
         int count;
         while ((count = bis.read(data, 0, BUFFER)) != -1) {
         os.write(data, 0, count);
         System.out.println("uploaded sucessfully...");
         bis.close();
         os.close();
    }

Maybe you are looking for

  • Help with rotating a movieclip please!

    How do I rotate a movieclip 360 degrees over a period of time?  Can I use "new tween" ?  I am trying to rotate the movieclip while it is moving from position y to y+50 (this is done using new tween)

  • HANA level based Hierarchy is not displaying in AOLAP

    Hi all, I have created a level based Hierarchy in HANA which I have been able to display in Excel using a HANA MDX Provider connection: However when I try to use the Hierarchy in Analysis for OLAP I am unable to see it, instead the dimensions are fla

  • Sms(message or imessage) sorting in iphone 4s (ver IOS 8.1)

    am facing a problem sorting issue in my iphone 4s. normally if message receive it'll display first in message box. but i can see messages in between of new messages also. ex: today 11 nov 2014 i have received a 5 messages in that i can see 30 oct 201

  • Smartforms: new barcodetechnology - additional (rotated) Text

    Dear community, I've a small problem while designing a new smartform form. I want to print a code 128 and I already created it with SE73 as a "system barcode" and I also chose the "new barcode technology" and  as alignment "rotated". In my form I def

  • Auxiliary account assignment to asset possible remove entry

    While selling f-92 asst sale iam gettign this error Auxiliary account assignment to asset possible,remove entry. Please guide me on this