Get filename from Watched folder start point

I have a watched folder as a start point and I can use the
symbols %F and %E in order to save the output documents in the Result folder.
This is easy.
What I cannot do, is getting in a string variable the same filename in order to use it within the Process:
Is it possible?
I would like to exploit this filename to discriminate the activities that the file have to make...
Thanks you as usual!

thank you Jasmin, your answer is correct and now it works!
only I don't understand why my way didn't work...
Instead of a setValue, I used directly a INSERT SQL activity with getDocAttribute(/process_data/@docXML, "basename") as parameter: as is, it didn't work!
As you suggest, if I put a setValue between the Watched folder startpoint and the INSERT SQL activity (now with the populated string as parameter), it works...
Bah!
Thank you again!
Fabio

Similar Messages

  • URL Error - Configuring watched folder end point in Adobe LC

    I am trying to configure watched folder end point in Adobe LC and it is giving me below error
    Invalid url \\server1\PDFLiveCycleFolder. Please check for invalid filename characters in the url. 
    Same path can be accessed from windows explore. What could be the reason?

    You need to check the access rights.
    Check this - http://help.adobe.com/en_US/livecycle/9.0/adminHelp/admin.htm?content=000106.html
    ~ Varun

  • Watch Folder End Point Problem

    Hi,
    I'm currently evaluating LiveCycle ES and having problems with watched folder end point.
    I use the Sample - Barcoded Forms: RouteOnDataEntry process and have added and configured the watched folder end point for the process.
    When I copy the RouteOnDataEntry PDF form to input folder, it manage to pick up the file, but the PDF is moved to failure folder. Here is the information I get from the failure.log:
    Failure Time----Wed Aug 15 17:30:16 PDT 2007
    source location ---- Reason of failure is-----Failure to invoke the job RouteOnDataEntry
    Failure to invoke the job RouteOnDataEntry
    Invocation error.
    javax.jms.JMSException: Could not create a session: javax.resource.spi.CommException: javax.naming.NameNotFoundException: XAConnectionFactory
    Could not create a session: javax.resource.spi.CommException: javax.naming.NameNotFoundException: XAConnectionFactory
    ALC-DSC-600-000: com.adobe.idp.dsc.provider.service.scheduler.impl.SchedulerRuntimeException: Failure to invoke the job RouteOnDataEntry
    I check the jboss server log file and see a lot exception regarding javax.naming.NameNotFoundException: XAConnectionFactory.
    Please advise what is the cause and how to solve this problem.
    Thanks
    Fadly

    Hi,
    My requirement is to develop a standalone java program to convert Word documents to PDFs using Adoble LC ES.
    I found the code from the Adobe LC ES documentation. Please help me what's wrong in the code.
    I don't understand what i'm missing in the code...The "test.doc" file
    is there in the given location with proper data and Document object is not "NULL". Program is able to connect to Adobe LC Server. No issues with connection. But why the error ??
    Code & exception are below :
    CODE:
    import java.io.File;
    import java.util.Properties;
    import com.adobe.idp.Document;
    import com.adobe.idp.dsc.clientsdk.ServiceClientFactory;
    import com.adobe.livecycle.generatepdf.client.CreatePDFResult;
    import
    com.adobe.livecycle.generatepdf.client.GeneratePdfServiceClient;
    public class GeneratePDFFromNativeFiles {
    public static void main(String[] args)
    Properties ConnectionPropsForSOAP = new Properties();
    ConnectionPropsForSOAP.setProperty("DSC_DEFAULT_SOAP_ENDPOINT",
    "http://workspace-d.web.abbott.com:8080/soap/services/
    ConvertAllFileTypesToPDF?wsdl");
    ConnectionPropsForSOAP.setProperty("DSC_TRANSPORT_PROTOCOL", "SOAP");
    ConnectionPropsForSOAP.setProperty("DSC_SERVER_TYPE", "JBoss");
    ConnectionPropsForSOAP.setProperty("DSC_CREDENTIAL_USERNAME",
    "epaspdfgen");
    ConnectionPropsForSOAP.setProperty("DSC_CREDENTIAL_PASSWORD",
    "epaspdf1");
    ServiceClientFactory factory =
    ServiceClientFactory.createInstance(ConnectionPropsForSOAP);
    try{
    String currentDirectory = System.getProperty("user.dir");
    String sourceDocPath="/test.doc";
    String resultDocPath ="/bin/arg/util/simpleFTP/test.pdf";
    String inputFilePath = currentDirectory+sourceDocPath;
    File file = new File(inputFilePath);
    String adobePDFSettings = "Standard";
    String securitySettings = "No Security";
    String fileTypeSettings = "Standard";
    GeneratePdfServiceClient gps = new
    GeneratePdfServiceClient(factory);
    Document inputDoc = new Document(file,true);
    CreatePDFResult docResult=gps.createPDF (inputDoc, inputFilePath,
    fileTypeSettings, adobePDFSettings,
    securitySettings, null, null);
    Document createdDocument = docResult.getCreatedDocument();
    createdDocument.copyToFile(new File(currentDirectory
    +resultDocPath));
    catch (Exception e) {
    e.printStackTrace();
    System.out.println("Error OCCURRED: " + e.getMessage());
    EXCEPTION:
    ALC-DSC-000-000: com.adobe.idp.dsc.DSCRuntimeException: Internal
    error.
    at
    com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapAxisDispatcher.throwExceptionHandler(So apAxisDispatcher.java:
    207)
    at
    com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapAxisDispatcher.doSend(SoapAxisDispatche r.java:
    125)
    at
    com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(AbstractMessageDispat cher.java:
    57)
    at
    com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:
    208)
    at
    com.adobe.livecycle.generatepdf.client.GeneratePdfServiceClient.createPDF(GeneratePdfServ iceClient.java:
    172)
    at
    arg.util.simpleFTP.GeneratePDFFromNativeFiles.main(GeneratePDFFromNativeFiles.java:
    73)
    Caused by: ALC-DSC-002-000:
    com.adobe.idp.dsc.RequiredParameterException: Parameter: inputDocument
    is required.
    at
    org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:
    221)
    at
    org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:
    128)
    at
    org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:
    1087)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
    Source)
    at
    org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
    Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
    $FragmentContentDispatcher.dispatch(Unknown Source)
    at
    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
    Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
    Source)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
    at
    org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:
    227)
    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
    at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
    at
    org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:
    62)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
    at org.apache.axis.client.Call.invoke(Call.java:2748)
    at org.apache.axis.client.Call.invoke(Call.java:2424)
    at org.apache.axis.client.Call.invoke(Call.java:2347)
    at org.apache.axis.client.Call.invoke(Call.java:1804)
    at
    com.adobe.idp.dsc.provider.impl.soap.axis.sdk.SoapAxisDispatcher.doSend(SoapAxisDispatche r.java:
    123
    Please help me.
    Thanks a lot.
    VJ.

  • View all what I have done from a specific start point or time frame ?

    While I am Creating A Controlling Area,  and Defining a Cost Center Standard Hierarchy
    get a phone call or meeting.   Need to get back to keep going,  is there a way or a T-Code to view all what I have done from a specific start point or time frame ?

    Greatly appreciate every single reply from all of you.
    I did access T-Code SE10, and attached a screen.
    The most confusing thing i have ever seen   
    I was hoping for some type of report that looks like an Excel sheet where it can give better details.

  • How to get FILENAME from FILE PATH

    does anyone know how to get filename from a file path for example
    FILE PATH: C:\Project\uploadbean\web\uploads\Button.txt
    returns
    FILENAME: Button.txt

    @BalusC
    ust for a reference cause i'm new in JSP This has nothing to do with JSP, but with basic knowledge of an essential API. I have given you the link to the File API. Are you saying that you refused to read the API documentation, which clearly explains you how to use the File and shows which methods are all available to you undereach the straightforward getName() method, and expecting that the others may chew the answers for you? Loser.

  • How to show filesystem(filenames from a folder) in SSRS

    Hallo everyone,
    I haved already tried the following solutions
    http://forums.asp.net/t/1422162.aspx?System+Security+SecurityException+Request+for+the+permission+of+type+System+Security+Permissions+FileIOPermission+mscorlib+Version+2+0+0+0+Culture+neutral+PublicKeyToken+b77a5c561934e089+failed+
    AND
    http://stackoverflow.com/questions/8476231/ssrs-custom-code
    Both didn't work.
    My problem is:
    What I want is to show all filenames from a certain folder in SSRS.
    I started with custom code in SSRS:
    Public Function getArrayOfFilename(pathname As String) as Array
    Dim arrayOfFilename As String() = System.IO.Directory.GetFiles(pathname)
    System.Array.Sort(Of String)(arrayOfFilename)
    Return arrayOfFilename
    End Function
    My questions are:
    1. If I try to call this function in a textbox like this:
    getArrayOfFilename("C:\Help\")
    then I get this error:
    [rsRuntimeErrorInExpression] The Value expression for the textrun ‘Textbox8.Paragraphs[0].TextRuns[0]’ contains an error: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
    2. Can I use this array as a dataset to carete a list or table  in SSRS?
    Thanks for any hint!

    The error message is related to permission. You are trying to access the file system object of the reporting server.
    Moreover creating a dataset from a custom code can be challenge, instead we can simply use TSQL to do this.
    ----------------- RUN TO ENABLE COMMAND SHELL
    EXEC sp_configure 'xp_cmdshell', 1;
    GO
    -- To update the currently configured value for this feature.
    RECONFIGURE;
    ----------------------QUERY
    DECLARE @folder VARCHAR(100) = 'C:\TESTING'
    DECLARE @DOSCommand varchar(1024); SET @DOSCommand =  'dir ' + @folder +'\'  + ' /A-D  /B'
    EXEC MASTER.dbo.xp_cmdshell @DOSCommand
    Regards, RSingh

  • Get filename from file sender adapter

    Hi Experts,
    I have a question regarding the file/ftp adapter (sender).
    I have a directory with xml and pdf files. for every xml file there is a pdf file with the same filename. for example:
    file1.xml
    file1.pdf
    file2.xml
    file2.pdf
    file3.xml
    file3.pdf
    Now I want to read the xml file with the file sender adapter. afterwards I want to read the related pdf file. for example: If I read the file file1.xml afterwards I want to read the pdf file file1.pdf with the file sender adapter. For this it is nessessary to get the filename from the xml file so that I can read afterwards the pdf file. How can I realise it?
    Thanks and best regards
    Christopher

    Hi srinivas,
    thanks for your quick answer.
    That the file adapter is not able to read pdf files is clear to me. In this case I only want to transport the pdf. that works fine. I tested it.
    the problem is the following:
    I have a xml file with the name "file1.xml". I read the xml file with the sender file/ftp adapter configured with filename "*.xml". Then I want to import the pdf file with the name "file1.pdf". Therefor I need the filename from the xml file.do you know what I mean? So XI has to know the filename of the xml to import the pdf with the same name ...
    regards

  • How to get filename from mail attachment

    Hi all,
    I have a XI scenario Mail->XI->RFC. I have created my own adapter module which handle all attachments from incoming mail.
    Everything work fine, but in my module I try to get information about filename of mail attachment. I use getContentType() metod to get the filename but this method return only the mimetype of the document. The getDescription() method return olny string "mail attachment". I need to get the original filename of the attachment or at least the file extension. 
    Is it possible to get the whole filename from mail attachment?
    Thanks
    Peter

    Hi,
    You can tryout with adapter modules . You can make use of following Adapter attributes also -
    http://help.sap.com/saphelp_nw2004s/helpdata/en/ad/bf93409c663228e10000000a1550b0/content.htm
    Similar discussion-
    Email attachment file names
    PayloadSwapBean-
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    Regards,
    Moorthy

  • Getting filename from HttpServletRequest

    hi,
    i am doing a simple servlet for uploading file.
    i have been googling around, but i could't find a way to retrieve the filename from the HttpServletRequest object. most solution uses another party's code.
    below is the simple code from the html that takes in the file
    <form action="/TestJSP/test2" method="post" enctype="multipart/form-data">           
                <input type="file" name="test">
                <p>
                <input type="submit" value="Upload File!">
    </form>on the servlet side, i tried using
    String filename = request.getParameter("test") ;but i keep getting a null value for the filename.
    thanks in advance!

    of lots of apache package, like the FileItemFactory
    and ServletFileUpload, even the FileItem class.The package is written for a much wider audience, it is designed to do a lot more than just read the name of the file being uploaded. I don't know if you read their Guide.
    Keep in mind that the solution posted on the other thread was custom written to solve the posters problem, which is a lot more than reading the file name.
    If you want shrunken code, then it's not that difficult:
    package test71;
    import org.apache.commons.fileupload.disk.DiskFileItemFactory;
    import org.apache.commons.fileupload.servlet.ServletFileUpload;
    import org.apache.commons.fileupload.*;
    import javax.servlet.http.*;
    import java.util.List;
    public class AnotherFileUploadServlet extends HttpServlet {
        public void doPost(HttpServletRequest request, HttpServletResponse response) {
            FileItemFactory factory = new DiskFileItemFactory();
            ServletFileUpload upload = new ServletFileUpload(factory);
            List<FileItem> items = null;
            try {
                items = upload.parseRequest(request);
                for (FileItem item : items) {
                    if (!item.isFormField()) {
                        String fileName = item.getName();
                        System.out.println("File Name is: " + fileName);
            } catch (FileUploadException e) {
                e.printStackTrace();
    }

  • Getting filename from a string including filepath and filename

    How I can get a filename from a string which includes both
    filepath and filename? The filepath is not always the same. For
    example, the variable could include a "C:\temp\test.doc" or
    "C:\files\docfiles\test.doc" and I need to get the filename
    "test.doc" and save it to another variable. Thanks in
    advance.

    on getFilenameFromPath vPath
    oldDelim=the itemDelimiter
    the itemDelimiter=the last char of the moviePath
    iFilename=the last item of vPath
    the itemDelimiter=oldDelim
    return iFilename
    end
    Put that into a movie script. Then you can call the function
    any time
    to retrieve the last part of the path- like this:
    put getFilenameFromPath("C:\temp\test.doc")
    -- "test.doc"
    As an added bonus, it is cross-platform so it will work on a
    Mac as well
    as a PC.

  • Extract СС from email (Email Start Point)

    Hi all,
    I am using a Email start point in my process.
    It is possible to extract СС from email, by analogy %SUBJECT%,%BODY%,%HEADER%,%SENDER% ?
    In DB tables (Oracle)  I have not found (
    Regards Aydar.

    Nevermind. The solution was simple. Just download all his email into Apple's Mail.app and use the add to address book feature. Worked perfectly. Thanks anyway.

  • Get filename from EBS to BPEL

    Hi to all,
    I have an ESB process that has a file adaptor, that reads xml files from a certain folder and then routes them to a BPEL process.
    I want FROM Bpel to get the filename, becauase i need to store that filename in my database.
    Can anyone please help me?
    Thank you

    Antonis
    Hope this helps. I had wanted to write files and store the filenames in a database table.
    I haven't it, but I am sure it will work for read as well.
    Edit the adapter WSDL to add an output:
    <portType name="Write_ptt">
    <operation name="Write">
    <input message="tns:resultset_msg"/>
    <output message="hdr:OutboundHeader_msg"/>
    </operation>
    </portType>
    then edit die .esbsvc file:
    change the
    mepDisplayName="One Way" mep="OneWay"
    to[b]
    mepDisplayName="Request Response" mep="RequestResponse"
    in the Reply part of the Routing Service you would be able to use call a database adapter or a BPEL process
    Message was edited by:
    user638991

  • Get photos from Photoshop Album Starter Edition 3.2

    We have some images stored in Photoshop Album Starter edition 3.2. When we now try to open the photos, we are told to register us for an unlocking code, which we never get. I have also tried to call Adobe support, but they could not help us with this because this program does not longer exists. And then support told us to go to this forum for further assistance. Anyone here who know how we can get access to our photos again?

    If you are on a Mac, try using File Juicer:
    It will extract any and all images from any type of file.
    http://echoone.com/filejuicer/
    With File Juicer you can:
    Extract images from a PowerPoint slide show or presentation.
    Extract images and text from PDF files.
    Recover images and video from erased flash cards
    Recover text from damaged files
    Extract the images and HTML files in Safari's cache.
    Extract attachments from email archives.
    Rebuild simple PDF files into Word documents
    Convert iPhoto's iPod cache files and ithmb files to TIFF.
    Recover photos from your iPod if you have lost your Mac.
    Extract Flash animations saved in .EXE files.
    Convert ZIP files which have been saved as .EXE files to zip.
    Extract the JPEG pictures from Canon & Nikon RAW files.
    Extract System 7 Sounds
    Use it for forensics examining cache files of various kinds
    Invisibly attach files to images - simple steganography
    File Juicer doesn't care what type file you drop onto it; it searches the entire file byte by byte. If it finds a JPEG, JP2, PNG, GIF, PDF, BMP, WMF, EMF, PICT, TIFF, Flash, Zip, HTML, WAV, MP3, AVI, MOV, MPG, WMV, MP4, AU, AIFF or text file inside, it can save it to your desktop or to another folder you choose.

  • How to get ringtones from music folder

    I really need help getting my purchased ringtones from the music folder to the rigntone folder.  support is not helping.
    All of my purchased ringtones show up in my music folder and not in my ringtone folder.  Please HELP anyone

    After performing a (Finder) Find for .aif files, I located the tracks and was able to delete the playlist (album) folder with the tracks. So no assistance needed after all.
    However, inexplicably, the folder with the tracks to be deleted was located in iTunes Music folder > Compilations folder, rather than in the artist folder. After finding and moving the folder of the tracks to the Trash, I checked the info of the original CD in iTunes out of curiosity and discovered that "Part of a compilation" was checked for the tracks, even though this is not a compilation (or even a live) album. I assume this sort of...tagging, I guess...was originally imbedded in the CD and is not a result of any glitch in iTunes. In fact, in the Compilations folder, I noticed several albums which are not compilation albums. I'd appreciate any thoughts or explanations as to why some non-compilation albums are checked as compilation albums.
    Thanks,
    Paul

  • Get filename from list of measurement files

    Hi,
    I would like to have the user select from a list of measurement files and pass that name and path to the write to measurement file VI.
    Ideally, when the data is written to the measurement file the user could add comments.
    Any ideas?
    Thanks
    Joel

    Hi Joel,
    maybe your questions a too generic?
    To select from a list of files you use the FileDialog (either ExpressVI or plain function) and it will give you a (full) path to the selected file.
    To save "comments" with data you can use TDMS file functions which allow to set "properties" for channels of data.
    To get more help than that you should better describe your problems and it's always a good idea to attach a VI of your tries to solve them...
    Examples are found by the help menu in LabVIEW: simply start the example finder
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

Maybe you are looking for