File path error1

I'm getting file path error when I run my VI.  It seems that there are control characters in my filepath that are causing the error. However, I'm not sure how to fix this error. I've attached a screenshot of the error message and my VI.
I'm using the VI as a subvi in another application.
Thanks
Attachments:
file error1.png ‏40 KB
PM2_FileNamePathDialogBoxCSVFile.vi ‏30 KB

The error message also says that the command requires GPIB controller blah blah blah, but I assume it's clear to you that that's not the issue. The error you got is error 1, which the description says quite clearly is invalid input. If you look at the message you will also see that the error was at the CLOSE file function. The only relevant input you give to the close function is the reference, so that's what you need to look at.
Do you know how to debug in LV? You need to place probes on the relevant wires and then run the code. Do that for the input to the close function. My guess is that you will find out that the reference was already closed somewhere.
Try to take over the world!

Similar Messages

  • Search c:\ drive and return file path for winword.exe and save as variable

    Hi all, here is what I'm trying to do;
    1. Search C:\ drive for winword.exe
    2. take the file path and save it as a variable.
    3. Then based on the path value, use the switch statement to run "some command" 
    Essentially I'm trying to find what the file path for winword.exe is, then run a command to modify the registry.  I already have the script that will modify the registry like I want but the problem it, the path is hard coded in the script, I want to
    now look for all versions of word and set the right file path so I can make the right registry changes.

    This should get you started:
    http://ss64.com/ps/get-childitem.html
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • What is a  Logical and Physical file path in sap?

    what is a  Logical and Physical file path in sap?

    Hi,
    Physical file is what you see from the OS level.
    Logical file is what ABAP code can call certain functions to read/write.
    Transaction FILE would link them together. Typically the logical path ends with "<FILENAME>", and the logical file refers to the logical path.
    To extract the physical path from the logical path name
    DATA: lf_mandt TYPE sy-mandt,
            lf_opsys TYPE sy-opsys.
      lf_mandt = sy-mandt.
      lf_opsys = sy-opsys.
    To extract the physical path from the logical path name
      CALL FUNCTION 'FILE_GET_NAME'
        EXPORTING
          client           = lf_mandt
          logical_filename = p_unix
          operating_system = lf_opsys
        IMPORTING
          file_name        = gwa_input
        EXCEPTIONS
          file_not_found   = 1
          OTHERS           = 2.
      IF sy-subrc EQ 0.
      Concatenating the physical path and the input unix file name
        CONCATENATE gwa_input p_file INTO gf_file .
      ENDIF.
    Reward if helpful.
    Regards,
    Ramya

  • Application server file path vaidation

    I have written the code for application server file path validation.
      DATA : l_fname TYPE filename-fileintern." type c.
      DATA : l_filpath TYPE filename-fileintern,
             l_filname(40) TYPE c.
    PARAMETER : p_sucfil LIKE rfpdo-rfbifile OBLIGATORY. " rlgrap-filename
    AT SELECTION-SCREEN ON p_sucfil.
    l_fname = p_sucfil.
    CALL FUNCTION 'FILE_GET_NAME'
      EXPORTING
      CLIENT                        = SY-MANDT
        logical_filename              = l_fname
       OPERATING_SYSTEM              = SY-OPSYS
      PARAMETER_1                   = ' '
      PARAMETER_2                   = ' '
      PARAMETER_3                   = ' '
      USE_PRESENTATION_SERVER       = ' '
       WITH_FILE_EXTENSION           = 'X'
      USE_BUFFER                    = ' '
      ELEMINATE_BLANKS              = 'X'
    IMPORTING
      EMERGENCY_FLAG                =
      FILE_FORMAT                   =
       FILE_NAME                     = l_filpath
    EXCEPTIONS
       FILE_NOT_FOUND                = 1
       OTHERS                        = 2
    IF sy-subrc <> 0.
      message 'Invalid file name' type 'E'.
    ENDIF.
    But always i will get Invalid file name.
    Y is it so.
    pls help me.

    Praveen,
    I have checked ur code and I found that if i give a logical file name from
    tran. FILE under folder 'Logical file name definition, cross client' then ur code works. Pl. check.
    Regards,
    Joy.
    DATA : l_fname TYPE filename-fileintern." type c.
    DATA : l_filpath TYPE filename-fileintern,
    l_filname(40) TYPE c.
    PARAMETER : p_sucfil LIKE rfpdo-rfbifile OBLIGATORY. " rlgrap-filename
    AT SELECTION-SCREEN ON p_sucfil.
      l_fname = p_sucfil.
      CALL FUNCTION 'FILE_GET_NAME'
      EXPORTING
      logical_filename = l_fname
    operating_system = sy-opsys
      with_file_extension = 'X'
      IMPORTING
      file_name = l_filpath
      EXCEPTIONS
      file_not_found = 1
      OTHERS = 2
      IF sy-subrc <> 0.
        MESSAGE 'Invalid file name' TYPE 'E'.
      ENDIF.

  • 'F4_FILENAME'. USER FILE PATH

    when I used the following function module  for user defined file path selection
    parameters: p_file like rlgrap-filename.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
    CALL FUNCTION 'F4_FILENAME'
    EXPORTING
    PROGRAM_NAME = SYST-CPROG
    DYNPRO_NUMBER = SYST-DYNNR
    FIELD_NAME = ' '
    IMPORTING
    FILE_NAME = P_FILE.
    I am getting the follwing Dump error.
    Exception condition "NO_FIELDCATALOG_AVAILABLE" raised.
    Could any one help me correcting problem ?

    Try  this.
    report zrich_0001.
    data: ifiletable type filetable.
    data: xfiletable like line of ifiletable.
    data: rc type i.
    parameters: p_file1 type localfile default'C:test.txt'.
    at selection-screen on value-request for p_file1.
    call method cl_gui_frontend_services=>file_open_dialog
       EXPORTING
    *    WINDOW_TITLE            =
    *    DEFAULT_EXTENSION       =
    *    DEFAULT_FILENAME        =
    *    FILE_FILTER             =
         INITIAL_DIRECTORY       = 'C:'
    *    MULTISELECTION          =
      changing
        file_table              = ifiletable
        rc                      = rc
    *    USER_ACTION             =
      EXCEPTIONS
        FILE_OPEN_DIALOG_FAILED = 1
        CNTL_ERROR              = 2
        ERROR_NO_GUI            = 3
        others                  = 4.
    read table ifiletable into xfiletable index 1.
    if sy-subrc = 0.
      p_file1 = xfiletable-FILENAME.
    endif.
    Regards,
    RIch Heilman

  • Logical and physical file paths

    Hi,
    can anyone elobrate me  on what are logical and physical file
    paths ?

    hi,
    Follow this link
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3deb358411d1829f0000e829fbfe/frameset.htm
    File format determination (Required / optional fields and field checks).
    Logical File Path configuration through transaction 'FILE'. A new physical file path should be created on operating system level or an existing one can be used if agreed. The Basis team member should create a new file path at operating system level, if required.
    Hope this helps, Do reward.

  • Inserting file path/filename

    Hi, all out there,
    I've just strated using Pages '08, and exploring it. But Pages Help and User Guide do not tell me how to insert the file path or filename in the footer, so that it's automatically updated whenever changed. It's not in the Insert menu, and cannot find it in Insert > Function.

    Hi Peggy,
    Though that feature is useful isn't found in 10.4.10. The Devon Technologies WordService ReadMe file has the following:
    Insert:
    Contents Of Path
    Inserts files and folders of the selected path (tilde is expanded)
    and of all its subdirectories (e.g. select the path '~/' and this function
    will insert all contents of your home directory)
    Short Date Cmd-'{'
    Inserts the current date (no text selection necessary)
    Long Date Cmd-'}'
    Inserts the current date (no text selection necessary)
    Short Date & Time Cmd-'_'
    Insert the current date & time (no text selection necessary) Long Date & Time Cmd-'%'
    Insert the current date & time (no text selection necessary) Time
    Insert the current time (no text selection necessary)
    Maybe that's what you're seeing in your services menu perhaps.
    Sincerely,
    RicD

  • How to get a list of file paths for all files used in a project

    I have a project in Premiere Pro CC which has a large number of bins.  A sequence in one of these bins uses files from other bins.  I am trying to find the locations of all each of the files used  in the project.
    1)  Obviously I can select each clip in the timeline and show in finder, but there a lot of clips
    2) The video usage associated with each file in the project would help.  However
               1.  I haven't found a way to display only clips that have video useage if all of the bins have not been expanded.
              2.  Video usage  shows usage for all sequences, so one would have to manually check the pull down for each file to see if it is used in the sequence in question.
    3) I tried exporting the project to final cut pro xml.  The path url gives me the information that I need.  For some reason, however, when I do the export only one clip's information is there, not the information for all of the other clips in the project.
    4) I tired an export for speedgrade and all of the file names are there.  However the paths are not. 
    Basically I want to find all of the files in the project and relocate them to a specific folder for that project.  There's got to be a way to do this but I'm not seeing it ....

    Thanks for the suggestion concerning the file path.  And certainly it would have been nice to have done this before beginning.  However this is a project that has been around for quite a while, and the files have been moved into different bins.  And now the project sequence is being revised.
    So the problem is, worded slightly differently, how can I search all of the bins for the files that are used just by this sequence, ignoring the files which are used by other sequences?  Or, how can I get a list of the file paths of the files that are used in the sequence?

  • Apex Listener 2.0.3.221.10.13 File path syntax error: ILLEGAL_CHARACTER

    Hi all,
    I tryed to install Apex Listener 2.0.3.221.10.13 into Tomcat 7.0.42 and I got the error :
    INFO: Deploying web application archive C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\apex.war
    ago 16, 2013 9:15:19 AM oracle.dbtools.common.util.Files checkLegal
    WARNING: File path syntax error: ILLEGAL_CHARACTER, path: C:/
    ago 16, 2013 9:15:19 AM org.apache.catalina.core.StandardContext startInternal
    SEVERE: Error listenerStart
    ago 16, 2013 9:15:19 AM org.apache.catalina.core.StandardContext startInternal
    SEVERE: Context [/apex] startup failed due to previous errors
    and also
    ago 16, 2013 9:15:19 AM org.apache.catalina.core.StandardContext listenerStart
    SEVERE: Exception sending context initialized event to listener instance of class oracle.dbtools.rt.web.SCListener
    java.lang.IllegalArgumentException: oracle.dbtools.common.util.FilePathSyntaxException: ILLEGAL_CHARACTER
      at oracle.dbtools.common.util.Files.checkLegal(Files.java:262)
      at oracle.dbtools.common.util.Files.file(Files.java:127)
      at oracle.dbtools.common.config.file.ConfigurationFolder.chooseExistingFile(ConfigurationFolder.java:172)
      at oracle.dbtools.common.config.file.ConfigurationFolder.choose(ConfigurationFolder.java:151)
      at oracle.dbtools.common.config.file.ConfigurationFolder.setup(ConfigurationFolder.java:64)
      at oracle.dbtools.rt.web.SCListener.contextInitialized(SCListener.java:72)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
      at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:976)
      at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1653)
      at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
    Caused by: oracle.dbtools.common.util.FilePathSyntaxException: ILLEGAL_CHARACTER
      at oracle.dbtools.common.util.FilePathSyntax.check(FilePathSyntax.java:45)
      at oracle.dbtools.common.util.Files.checkLegal(Files.java:255)
      ... 19 more
    My platform is :
    OS : Windows 7 64 bit
    JRE : 1.7.0_25-b17 -
    %USERPROFILE% : C:\Users\SERGIO
    %TEMP% : C:\Users\SERGIO\AppData\Local\Temp
    Apex Listener Configuration Folder : C:\Users\SERGIO\AppData\Local\Temp\apex
    Can anyone help me, please?
    Sergio

    You need to configure your config directory before you deploy. If you never configured v2 listener before then create a new folder like "c:\apex\config". Then use
    java -jar apex.war configdir  c:\apex\config
    Then do your configuration as required and then deploy again.

  • How to get the file path in adf application

    hii all,
    i have a txt file that i am using in my adf application,
    i am passing this txt file through a File Reader, for which i have to mention the file path.
    The file is in web-content and when i am hard coding the complete file path i.e C:/JDeveloper/myApp/ViewController/public_html/log.txt
    the application is working fine when run on integrated weblogic server.
    My requirement is to access this file without giving the static file path, as in case i have to use this application on any other machine..
    for that how to mention the file path-
    i tried using FacesContext to get the context path :-
    FacesContext.getCurrentInstance().getExternalContext().getRequestContextPath();
    which gives me
    \myApp-ViewController-context-root
    after appending public_html\log.txt
    I am using the following path to access the file :-
    \myApp-ViewController-context-root\public_html\log.txt
    again i am getting the java.io.FileNotFoundException
    Does anyone know how to use file from inside the web-content without giving the complete path..???
    Thanks

    Hi,
    If you put your file under public_html folder, you can use this code to access the file:
    For example file is : log.txt
    FacesContext.getCurrentInstance().getExternalContext().getRealPath('/log.txt').toString().trim();
    Thanks.
    - LSR

  • Error message: "Can't open file "[File path, file name].key"

    If I attempt to open any Keynote files, I now get this error message.
    "Can't open file "[File path: file name].key"
    To clarify, the text in the square brackets above would be the file path and then the file name.
    The file then will appear on the screen, but is unresponsive to any clicks or menu commands.
    The files will open successfully on other Macs, so they aren't corrupt.
    Also - I've just checked, and opening Keynote and trying to create a new presentation leads to the same problem: All screen menus / buttons are dead - all I can do is drag the window around the screen.
    I've tried to reinstall Keynote, but this hasn't resolved the problem.
    Is there some corrupt preference file (or similar) that I need to get rid of? Is there an easy way to do a complete uninstall of Keynote so I can try another install? Or is this a symptom of something else?
    All ideas gratefully appreciated!
    Message was edited by: Brendan Donlon

    All the issues I describe in my questions around this time re: Keynote were actually symptoms of a soon-to-die laptop. The Hard Disc was corrupting, and Keynote was the first application to be affected.

  • How to Print File Path and File Name at the bottom of the Report?

    Hi guys,
    I have situation where i have to display my file path where i save my file. For example: U:\Reports\Monthly_Reports\Compay_xyz.jsp
    also, after the file path line if its possible i would like to display the date where the last modification done on the file.
    I read one of the post and some one suggested that use srw.get_report_name() but since i am a new to Reporting i am not sure how to use it.
    Can anyone describe me little bit in detail please?
    Thank You.

    Hi,
    Your logic seems to be fine and you should put it in the additional plsql code section "After displaying the page". But you may have to check you syntax by compiling it. You cannot use "LINEFEED". It should be '<br>'. This is the line break in html. Please check your type declaration. Also some ';' is missing after some statements.
    Hope that helps.
    Thanks,
    Sharmila

  • File Path and Name field does not display correct path

    We are using Crystal 2008 along with VS 2005. We embed the special "File Path and Name" field  inside our report and it displays the correct path when viewed inside Crystal reports:
    C:\Program Files\reports\Chart.rpt
    When run through the web and viewed in the DHTML viewer, the file name and path appear as follows:
    C:\Windows\TEMP\Chart {02152A43-3339-4C03-A50A-E281E1D391AF}.rpt
    How can this be corrected?
    Thanks in advance for any assistance.

    This is a known issue tracked under ADAPT0000962216. At this time I do not know when this will be resolved, however Service Pack 2 for CR 2008 is targeted to be released by September and this may contain the fix.
    Ludek

  • Snow Leopard 10.6.2 CS4 InDesign can't open files with a "#" in file path

    Snow Leopard 10.6.2 CS4 InDesign can't open files with a "#" in file path using any of these perfectly normal methods:
    1. double-click file in the Finder (e.g in a Folder on your Mac or on your Mac desktop etc.)
    2. select file and choose "File... Open" command-o in the Finder
    3. drag file to the application icon in the Finder.
    4. Select file in Bridge and double-click, choose File.. Open.. or Drag icon to InDesign icon in dock.
    If you try to open an ID file named with a "#", you will get an error message "Missing required parameter 'from' for event 'open.'"
    This happens to any InDesign file that has a "#" (pound sign, number sign, or hash) in the filename or in the file path (any parent folder).
    To reproduce
    Name an InDesign file Test#.idd Try to open it in the Finder or Bridge (as opposed to the "Open" dilaog of InDeisng itself).
    "Solution"
    The file WILL open using File... Open... command-o while in InDesign application.
    Rename the file or folders that have a "#" (shift-3) in the filename.
    Report to Adobe if it bugs you.
    This does not occur in "plain" Leopard 10.5 nor Tiger 10.4
    Untested in Panther or before and
    Untested with CS3 and earlier in Snow Leaopard.
    Anyone have those and want to try this... ?

    In case this really bothers you: we've added a workaround for this into Soxy. If you enable the option, these documents will open fine on double-click.
    You need Soxy 1.0.7 from:
    http://www.rorohiko.com/soxy
    Go to the 'Soxy' - 'Preferences' - 'Other' dialog window, and enable 'Open InDesign via Script'
    (Irrelevant background info (it's all invisible to the user): the workaround works by special-casing how Soxy opens documents in InDesign: instead of using AppleScript, Soxy will use ExtendScript to instruct InDesign to open the document - which works fine).

  • The Cluster Service function call 'ClusterResourceControl' failed with error code '1008(An attempt was made to reference a token that does not exist.)' while verifying the file path. Verify that your failover cluster is configured properly.

    I am experiencing this error with one of our cluster environment. Can anyone help me in this issue.
    The Cluster Service function call 'ClusterResourceControl' failed with error code '1008(An attempt was made to reference a token that does not exist.)' while verifying the file path. Verify that your failover cluster is configured properly.
    Thanks,
    Venu S.
    Venugopal S ----------------------------------------------------------- Please click the Mark as Answer button if a post solves your problem!

    Hi Venu S,
    Based on my research, you might encounter a known issue, please try the hotfix in this KB:
    http://support.microsoft.com/kb/928385
    Meanwhile since there is less information about this issue, before further investigation, please provide us the following information:
    The version of Windows Server you are using
    The result of SELECT @@VERSION
    The scenario when you get this error
    If anything is unclear, please let me know.
    Regards,
    Tom Li

Maybe you are looking for