Excel invalid path in exe file
Hi,
I have an issue with my application I'm using the report file generation tool to read data from an excel file and I receive an error
"Possible reason(s):
LabVIEW: File not found. The file might have been moved or deleted, or the file path might be incorrectly formatted for the operating system. For example, use \ as path separators on Windows, : on Mac OS, and / on UNIX."
when I open my xls file I was told that it is because the path in the exe file doesn't match the path during devellopement, in the exe file it seems to point to a dll file.
Does anybody have a solution?
Thank you
Olivier
Hi,
Does your program work fine in the development system, and the problem occures after building an exe-file ?
If that.s the case, I have had a similar problem. I solved it by adding some of the VIs in the _excelsub.llb located in "C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\addons\_office" to my project and then to "dynamic VIs and support files" in the build specification. I could not add the complete llb because some of the VIs where broken (maybe some issue with my installation.. ). If you look trough the code in the report VIs you use you find the VIs that are dynamicly linked and therefore have to be added to the build.
Good Luck !
/Sture
Similar Messages
-
I am using jcreator where i am getting this error while compiling
Error : Invalid path, "C:\Program Files\Java\j2re1.4.2_05\bin\javac.exe" -classpath "C:\Program Files\Xinox Software\JCreatorV3LE\MyProjects\zeroCode\classes" -d C:\Program" Files\Xinox "Software\JCreatorV3LE\MyProjects\zeroCode\classes C:\Program" Files\Xinox Software\JCreatorV3LE\MyProjects\zeroCode\src\BasicServiceLister.java
Instead of that same program is compiling in textpad/eclipse easily.
Please tell me what should i do to set what.
present settings are:
User Variable:
classpath C:\Program Files\Xinox JCreatorV3LE\MyProjects\zeroCode\ classes
Java_HOme: C:\Program Files\Java\j2re1.4.2_05\bin\javac.exe
Path:C:\Program Files\Java\j2re1.4.2_05\bin
Classpath is System Variables:
C:\Program Files\Xinox Software\JCreatorV3LE\MyProjects\zeroCode\ classes
Path :C:\Program Files\Java\j2re1.4.2_05\bin
wher i really need to modify the settings:
May be thorugh command prompt.
I never did. windowds environment varaibles i can set.
Thanks
Vijendra... -d C:\Program" Files\Xinox "Software\JCreatorV3LE\MyProjects\zeroCode\classes ...
Looks like you are typing in things wrong with the double quotes. -
Invalid Path for target file, check if connector is deployed correctly
Hi all,
I've got a tricky problem over here: we are using OMB scripts for generating simple extract mappings that just copy data from an oracle source table to a flat file on a directory. Up untill now ( with version 11.1 ) this did not pose any troubles, but now we are using 11.2 for the first time and we don't get the mappings to execute. Generating, validating and deploying all works fine, only executing fails with the error: "Invalid Path for target file, check if connector is deployed correctly". It ends to rapidly, so I'm assuming the problem lies in the repository and not on the database itself.
I'm pretty sure all locations are defined as needed, flat file operator in the mapping has correct location, the flat file module has the same location,...
I tried almost everything: recreate oracle module, recreate flat file module, unregister and recreate db location, unregister and recreate dir location, recreate mapping and flat file, export/import...
The strange thing is, I was able to execute a mapping once. Although it ended with an error (due to a function in the mapping), it created the file correctly. After that I needed to update the directory path of the target location and from then on, I always got the error above, and I don't see a good reason.
Any suggestions??
Tnx,
MichelThat error is displayed when the generated code fails to execute with one of the following database errors;
UTL_FILE.INVALID_PATH
UTL_FILE.INVALID_OPERATION
UTL_FILE.INVALID_FILEHANDLE
So its worth checking the generated code for that map and searching for the code around UTL_FILE.FOPEN and seeing what the path and the file name in the code are. Maybe the file is created with permissions such that it can be created but not then re-written and its an OS permissions thing (such as UMASK settings).
Cheers
David -
INVALID PATH FOR TARGET FILE - 11g
I had several mappings that's need to run almost all of my mappings got this same error,
OWB Owner: owb_rpo_ev04
User Owner: owb_rpu_ev04
h2. "INVALID PATH FOR TARGET FILE, CHECK IF CONNECTOR IS DEPLOYED CORRECTLY"
-Flat File Location has been indicated
-Locations has been deployed
-Files Location has been deployed
-Physical Location has been created
Two mappings is working prefectly without any error, but to several mappings the one with Flat Files Location are the one with the error when executing. I already grant permission owb_rpu_ev04 to UTL_FILE. I even create a synonym for UTL_FILE the i can used "ECT_FILE"
Files are in FTP,
h2. partial script
OUTPUT_FILE ECT_FILE.file_type;
FILENAME VARCHAR2(50);
FILEPATH VARCHAR2(50);
email_subject VARCHAR2(200);
email_body_hdr VARCHAR2(10000);
crlf VARCHAR2(2) := chr(13)||chr(10);
OWB_FAILURE_RUN EXCEPTION;
PRAGMA EXCEPTION_INIT (OWB_FAILURE_RUN,-20000);
PROCEDURE CHK_EXECUTION (EXEC_FLAG IN NUMBER) AS
BEGIN
IF EXEC_FLAG = 3 OR EXEC_FLAG = 4 THEN
RAISE OWB_FAILURE_RUN;
END IF;
END;
BEGIN
FILEPATH := 'ECTDM_EV04_OUTFILE_DIR';
-- ECTBusiness.csv
ECT_RUN_BATCH_MAP1 ( 'PLSQL', 'ECTDM_IN_M_BUSINESS_L1', 'OWB_RPU_EV04_LOCATION', 'ERROR_DETAILS', 0, EXEC_FLAG, 'A','DM');
CHK_EXECUTION (EXEC_FLAG);
Edited by: ellenore on Apr 26, 2012 5:52 AM
Edited by: ellenore on Apr 26, 2012 6:03 AMThat error is displayed when the generated code fails to execute with one of the following database errors;
UTL_FILE.INVALID_PATH
UTL_FILE.INVALID_OPERATION
UTL_FILE.INVALID_FILEHANDLE
So its worth checking the generated code for that map and searching for the code around UTL_FILE.FOPEN and seeing what the path and the file name in the code are. Maybe the file is created with permissions such that it can be created but not then re-written and its an OS permissions thing (such as UMASK settings).
Cheers
David -
Packaging an AIR application in a .EXE file using ADT
Hi All,
I have to package a .AIR file in .exe file with ADT.
Is it possible setting a default installation path in exe file using ADT tool?
I would like to create a .exe file where user can't interact with installation wizard to set a particular path.
Does it exist a particular option?
Would you suggest an example?
(...adt -package -target native ??? myApp.exe myApp.air)
Thanks in advance
GianniHi All,
I have to package a .AIR file in .exe file with ADT.
Is it possible setting a default installation path in exe file using ADT tool?
I would like to create a .exe file where user can't interact with installation wizard to set a particular path.
Does it exist a particular option?
Would you suggest an example?
(...adt -package -target native ??? myApp.exe myApp.air)
Thanks in advance
Gianni -
Invoking exe file through java program
I have one exe file,which i want to invoke it from java program.I have used Runtime class to execute the exe, but it throws an exception
java.io.IOException: CreateProcess: afp2web.exe -q -PDF -c -fm samples\medform.a
fp error=2
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.<init>(Unknown Source)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at Afp2PdfDemo.main(Afp2PdfDemo.java:7)
However if i give the absolute path of exe file then it doesn't throw an exception but at the same time,it doesn't the do the expected job.
Can somebody throw some light on this?
Thanx in advance
Regards,
PulakHave you tried also supplying the absolute paths of the file arguments like "samples\medform.a"?
-
Labview- Excel template path at run time(to build .exe file)
I am new to labview and I have one doubt in it. I have one main.vi file where I use local drive path to invoke one excel template, Now I have to convert this .vi file in to .exe file. So now I cannot give the local drive path to invoke the template because the client will not have the same path as mine. So what I did is I created one project. Under this project I created one virtual folder which contains the excel templates. My doubt is how to give path for the excel-template in main.vi file. Please let me know if you guys know. thanks in advance.
Thanks & Regards
saamyHi again.
Here is a strategy I always use when I create a project:
Create a folder named for example "My project". In this folder I create new folders called "Bin", "Doc", "Data" and "Img". I put my main Vi in the "Bin" folder and for example the excel template in the "Data" folder.
I then create a project in LabVIEW and I add the "My project" folder into this project as an autopopulating folder. This means if I add a file in i.e the "Bin" folder it will automatically come up in the project.
When I create my Main.vi and want to use the excel template, I simply add a folder path constant to the "Data" folder on my computer. I don't care about the LabVIEW project file.
After I'm done programming and I'm happy with the result I need to prepare the VI for being converted into an .exe file. This means I have to remove all the path constants and add the application folder node mentioned above. I have to know what folder hiearchy I want the installer to create. In this example we can use the folder where the .exe file will be and then a sub-folder named "Data" where the excel template will be. The path will be like "the_folder_where_the_exe_is\data\exceltemplate.xlsx."
When I create the .exe file I can add which files that will always be included. Here I add the Data folder containing the excel template. After that I create an installer where I add the folder where the exe file is, which I just created.
Regards,
Even
Certified LabVIEW Associate Developer
Automated Test Developer
Topro AS
Norway -
I cannot open files in excel with error message "The file name or path contains invalid characters
I cannot open files in excel with error message "The file name or path contains invalid characters
Found the solution. The hardrive name was changed to "/" which is not a recognised file path character. So I changed the name to "Mac" then I was able to already open all files in excel and word
-
Labview- .EXE file with excel template
How to create a .exe file from the .vi file with excel template. Since I am giving only .exe file, the client wont be having the excel templates. So please tell me how to build a .exe file with templates which will be invoked by mainfile.vi. Please let me know if U guys know. (Now in my mainfile.vi I am using local file location path to invoke)
Hi saamy,
I have tested it out at my PC and it is working.
I have tested with MS office report and put the template "Excel Template.xlt" under VI's folder (C:\temp) and make the exe file.
After the exe file has been moved to other place(C:\build) and has been executed, the exe file try to locate "Excel Template.xlt" under both C:\temp and C:\build. As long as the template is the same folder with exe file, it is working.
Pls refer to attached file.
Hopefully it will help. Please let me know the result.
Thanks & Regards,
Steve
Attachments:
My Application.zip 4415 KB -
How to use Client_Host without the exe file path
Hi,
i'm using oracle forms 10g,
in my application the users can upload any type of files (doc,xls,pdf,avi ,.. etc) and any user can download and open any of these files.
i implement this using client_host and including the path of winword.exe or AcroRd32.exe ,...
in many cases i don't know where these exe files are installed in the client side or whether it is installed or not.
i tried this command : client_host('calc.exe') it works and show me the calc without including the path of this exe file.
what i want to do is to just call the target file(doc,pdf,avi,..) in the client_host without having to precede this with the exe and path like the calc.exe example.
if you go to start->run and write for example c:\ahmed.mpeg , windows automatically call the real player or any other video software installed and open the movie.
can we implement this in oracle forms? and how?Hi, you attach a procedure to download a file in the local runs from Windows and to close it updates in the database and then delete the local directory
PROCEDURE OPEN_FILE (V_ID_DOC IN VARCHAR2)
IS
-- Open a stored document --
LC$Cmd Varchar2(1280) ;
LC$Nom Varchar2(1000) ;
LC$Fic Varchar2(1280);
LC$Path Varchar2(1280);
LC$Sep Varchar2(1) ;
LN$But Pls_Integer ;
LB$Ok Boolean ;
-- Current Process ID --
ret WEBUTIL_HOST.PROCESS_ID ;
V_FICHERO VARCHAR2(500);
COMILLA VARCHAR2(4) := '''';
BOTON NUMBER;
MODO VARCHAR2(50);
URL VARCHAR2(500);
Begin
V_FICHERO := V_ID_DOC;
-- Ruta y nombre del fichero temporal --
LC$Sep := '\';--WEBUTIL_FILE.Get_File_Separator ; -- 10g
LC$Nom := V_FICHERO;--Substr( V_FICHERO, instr( V_FICHERO, LC$Sep, -1 ) + 1, 100 ) ;
--LC$Path := CLIENT_WIN_API_ENVIRONMENT.Get_Temp_Directory ;
LC$Path := 'C:';
LC$Fic := LC$Path || LC$Sep || LC$Nom ;
-- Descargamos el fichero --
If Not webutil_file_transfer.DB_To_Client
LC$Fic,
'TABLE_NAME',
'ITEM_NAME',
'WHERE'
) Then
Raise Form_trigger_Failure ;
End if ;
-- Abrimos el fichero temporal en local --
LC$Cmd := 'cmd /c start "" /MAX /WAIT "' || LC$Fic || '"' ;
Ret := WEBUTIL_HOST.blocking( LC$Cmd ) ;
LN$But := WEBUTIL_HOST.Get_return_Code( Ret ) ;
If LN$But <> 0 Then
Set_Alert_Property( 'ALER_STOP_1', TITLE, 'Host() command' ) ;
Set_Alert_Property( 'ALER_STOP_1', ALERT_MESSAGE_TEXT, 'Host() command error : ' || To_Char( LN$But ) ) ;
LN$But := Show_Alert( 'ALER_STOP_1' ) ;
LB$Ok := WEBUTIL_FILE.DELETE_FILE( LC$Fic ) ;
Raise Form_Trigger_Failure ;
End if ;
-- Actualizamos el fichero en la BBDD --
If Not webutil_file_transfer.Client_To_DB
LC$Fic,
'TABLE_NAME',
'ITEM_NAME',
'WHERE'
) Then
NULL;
Else
Commit ;
End if ;
-- Eliminamos el fichero temporal local --
LB$Ok := WEBUTIL_FILE.DELETE_FILE( LC$Fic ) ;
Exception
When Form_Trigger_Failure Then
Raise ;
End ; -
Description
Faulting Application Path: C:\Program Files\Safari\Safari.exe
Problem signature
Problem Event Name: APPCRASH
Application Name: Safari.exe
Application Version: 5.34.57.2
Application Timestamp: 4f982b5e
Fault Module Name: KERNELBASE.dll
Fault Module Version: 6.1.7601.18015
Fault Module Timestamp: 50b83b16
Exception Code: 80000003
Exception Offset: 0003491e
OS Version: 6.1.7601.2.1.0.256.1
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
Extra information about the problem
Bucket ID: 3349202712im having this problem to ive uninstalled and installed but this still comes up!!
Problem signature:
Problem Event Name: BEX
Application Name: iTunes.exe
Application Version: 10.7.0.21
Application Timestamp: 504d85d9
Fault Module Name: StackHash_0a9e
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 00000000
Exception Offset: 00000000
Exception Code: c0000005
Exception Data: 00000008
OS Version: 6.1.7601.2.1.0.768.3
Locale ID: 5129
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789 -
I removed .exe from the block list, checked MIME types, all ok,
I followed this solution: http://social.technet.microsoft.com/Forums/en-US/sharepoint2010setup/thread/b380a13e-a15f-4e32-98cd-12747538ad20?prof=required
( go into IIS (I am assuming IIS 7.0) and select the particular web site and click
handler mappings and Edit feature permissions and
uncheck the Execute box .)
It works, I can now open exe files. But it causes other major troubles so far:
-Cannot Export Lists to Excel
-Cannot Publish and Save InfoPath forms
-Cannot edit subsites in SharePoint Designer.
Does anybody have another solution that won't disable other features? What is the best way to do it? I have SolidWorks Edrawings in .exe that needs to be accessible.
Thank you.
Guillaume Gagnon, MCP Senior System Administrator Forensic Technology WAI Inc.Hi Guillaume,
As you know, if we remove the Execute permission for handle mappings, we will be able to download .exe file from SharePoint server. But as you said, this will cause other issues.
The another solution to allow to download .exe file is remove the CGI-exe handle mapping from the handle mappings directly. You may need to restart Internet Information Server(IIS). After that, we will be able to download .exe file directly.
Open the IIS manager
Select the site from the "Sites" tree
Double-click "Handle Mappings"
Right-click "CGI-exe", and then click "Remove"
Thanks,
Jin Chen
Jin Chen - MSFT -
When updating .lbi files in DreamWeaver CS4 I get an invalid path.
When I make changes to my .lbi files in DreamWeaver CS4 I and try to update them I am getting
item Library\dreamweaver\themed_image.lbiE:\RCG\Web Sites\2011 RCG Working Web Site\Library\dreamweaver\themed_image.lbi contains an invalid path.
item Library\dreamweaver\logo.lbiE:\RCG\Web Sites\2011 RCG Working Web Site\Library\dreamweaver\logo.lbi contains an invalid path.
item Library\dreamweaver\icons.lbiE:\RCG\Web Sites\2011 RCG Working Web Site\Library\dreamweaver\icons.lbi contains an invalid path.
item Library\dreamweaver\menu_top.lbiE:\RCG\Web Sites\2011 RCG Working Web Site\Library\dreamweaver\menu_top.lbi contains an invalid path.
item Library\dreamweaver\menu_side.lbiE:\RCG\Web Sites\2011 RCG Working Web Site\Library\dreamweaver\menu_side.lbi contains an invalid path.
item Library\dreamweaver\$_whats_new.lbiE:\RCG\Web Sites\2011 RCG Working Web Site\Library\dreamweaver\$_whats_new.lbi contains an invalid path.
files examined: 136
files updated: 0
files which could not be updated: 0
total time: (0:00:13)
Here is the code in one of the files for my side menu.. I do not see what is wrong and was wondering if anyone could help. Thank you.
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!--
<div class="maincontainer">
<table style="width: 100%" cellpadding="0" cellspacing="0">
<tr>
<td>
<table style="width: 100%" cellpadding="0" cellspacing="0">
<tr>
<td class="headerleft"><h3>MainMenu</h3></td>
<td class="headerright"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table style="width: 100%" cellpadding="0" cellspacing="0">
<tr>
<td class="leftcolumn"></td>
<td class="maincontent">
-->
<div class="maincontent">
<h3>MainMenu</h3>
<div class="bg">
<!-- menu -->
<div id="ddsidemenubar" class="sidemenu">
<ul>
<li><a href="../../index.htm" title="Home"> <span>Home</span></a></li>
<li><a href="../../catalog_opening.html" title="Catalog" rel="sub1"> <span>Catalog</span></a></li>
<li><a href="../../services.htm" title="Services" rel="sub2"> <span>Services</span></a></li>
<li><a href="../../photo_gallery.htm" title="Photos">Gallery<span></span></a></li>
<li><a href="../../sitemap.htm" title="Search"> <span>Search</span></a></li>
</ul>
</div>
<script type="text/javascript">
ddlevelsmenu.setup("ddsidemenubar", "sidebar") //ddlevelsmenu.setup("mainmenuid", "topbar|sidebar")
</script>
<!--Side Drop Down Menu 1 HTML-->
<ul id="sub1" class="ddsubmenustyle sidesubmenu">
<li><a href="../../catalog_opening.html">Senior Class T-Shirts</a>
<ul>
<li><a href="../../catalog_seniorclass.html">Page 1</a></li>
<li><a href="../../catalog_seniorclass2.html">Page 2</a></li>
</ul>
</li>
<li><a href="../../catalog_opening.html">School T-Shirts</a>
<ul>
<li><a href="../../catalog_school1.html">Page 1</a></li>
<li><a href="../../catalog_school2.html">Page 2</a></li>
</ul>
</li>
<li><a href="../../catalog_opening.html">Montana T-Shirts</a>
<ul>
<li><a href="../../catalog_montana1.html">Page 1</a></li>
<li><a href="../../catalog_montana2.html">Page 2</a></li>
<li><a href="../../catalog_montana3.html">Page 3</a></li>
</ul>
</li>
<li><a href="../../catalog_misc.html">Misc T-Shirts</a>
</li>
</ul>
<!--Side Drop Down Menu 2 HTML-->
<ul id="sub2" class="ddsubmenustyle sidesubmenu">
<li><a href="../../direct_to_garment.html">T-Shirt Printing</a> </li>
<li><a href="../../computer_design.html">Computer Design</a> </li>
<li><a href="../../signs.html">Signs</a> </li>
<li><a href="../../vehicle_graphics_and_wraps.html">Vehicle Graphics/Wraps</a> </li>
<li><a href="../../airbrush.html">Airbrush</a> </li>
</ul>
<!--Side Drop Down Menu 3 HTML-->
<!-- end menu / do not edit beyond this line -->
</div></div>
<!--
</td>
<td class="rightcolumn"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table style="width: 100%" cellpadding="0" cellspacing="0">
<tr>
<td class="bottomleft"> </td>
<td class="bottomright"> </td>
</tr>
</table>
</td>
</tr>
</table>
</div>
-->Are all of your pages that are linked to this on the same directory level?
The ../../ in front of every link means "go up two directory levels". If there are no pages, or if some of the pages are not at that directory level, the links would be going to nothing.
I don't use library items myself, so I'm not sure if that has anything to do with it, but the "bad path" in your error report leads me to think some of those paths (since they're the only ones in the code) could be pointing to the wrong locations.
My response will also bump your question back to the top of the pile. Maybe someone else will have a good idea of what's actually happening. -
Referring remote machines exe file path in exec method
Can i refer remote server machine's exe file path in RunTime class's exec method?
It's not so easy to cause a program to run on another machine. In fact virus writers consider that a challenge.
If you want to run a program on another machine, you need that machine's permission, in the form of a server that accepts requests to run programs. An FTP server can be configured to do that, and there are other servers that can do it too. Ask the administrator of the other machine about setting one up. -
An unnamed file contains an invalid path
Hi. I'm using Flash CS3 on Windows XP Pro (SP3) and for the
past two weeks, when attempting to save a file, I've been getting a
dialog which is headed as "Adobe Flash CS3" and reads: "An unnamed
file contains an invalid path. OK" After clicking OK, the dialog is
dismissed but the Flash ui does not respond. Quitting Flash and
restarting it again is OK - Flash behaves "normally". This issue
does not occur every time I try to save a document - but it has
occurred every time I've used Flash. It does not occur for any
other CS3 application. I have tried to uninstall and re-install
Flash. (Same issue.) I have also tried to re-install all of CS3.
(Same issue.) I use McAfee Security Center and have scanned the
system twice without finding any issues. I have run a checkdisk on
the hard disk drive and also defragged the hard disk drive. None of
these things has changed the behaviour. Can anyone offer any
advice?Please post to the Discoverer forum:
Discoverer
Maybe you are looking for
-
Hello all, I need some assistance with downloading the new iOS 5 software for my iPod touch 4th generation (32GB). Once connected, my iTunes says that a newer version is available and when I click on "update," the standard boxes appear and when i cli
-
Restoring iTunes from a backup hard drive
OK so my hard drive crashed. The good news is that the backup drive has all of my music on it. I got a new hard drive and installed iTunes. But now I do not understand how to get the music and playlists off of my backup drive and on to my new drive?
-
Encore menu done in Photoshop issue
For the past few years I build a DVD menu in Photoshop that I used in Encore. I have a roll over command for each chapter (=1) there are anywhere for 26-30 chapters. Every year I have done it with success except for this year. I'm using Encore 5.0.0.
-
Hierarchy Deletion - Bookmarks
Dear All, We are trying to delete one of the hierarchies for profit center. The purpose 1) is that this hierarchy group has become obsolete but still appears in the portal in the input selection screen. When we try to select for profit center hierarc
-
Parasites graphics rendering - little black line on image
Hello In the menu it appears in tiny black line and can not find their origin http://coach.de.vie.free.fr/ Thanks