Error while opening attached .CSV file !!!

pskannaa
Member Posts: 138
Dear All,
I'm using NAV 4.0, i have form for attaching the files like "import/open/remove attachment". All are fine but when i imported the .CSV file it was succesfully imported, if i open the imported attached csv file it's throughing error message i'm unable to open it.
other all files are fine eg: .doc,.xls,.txt etc..
Error:
C/Side Hyperlinking failed.
You tried to hyperlink to this target:
C:\docume~1\psk\local~1\temp\doc.csv
do you want to place the hyperlink target on the clipboard ?
Yes / NO ----> nothing has changed the both actions.
Open Attachement code:
FormAttRec.SETFILTER(FormAttRec."No.","No.");
FormAttRec.SETFILTER(FormAttRec.Description,Description);
IF FormAttRec.FIND('-') THEN
BEGIN
IF FormAttRec."Attachment No." <> 0 THEN
FormAttRec.OpenAttachment
END
ELSE
BEGIN
MESSAGE('No Document is Attached');
EXIT;
END;
CurrForm.UPDATE;
Please suggest me..
Thanks & Regards,
Psk
I'm using NAV 4.0, i have form for attaching the files like "import/open/remove attachment". All are fine but when i imported the .CSV file it was succesfully imported, if i open the imported attached csv file it's throughing error message i'm unable to open it.
other all files are fine eg: .doc,.xls,.txt etc..
Error:
C/Side Hyperlinking failed.
You tried to hyperlink to this target:
C:\docume~1\psk\local~1\temp\doc.csv
do you want to place the hyperlink target on the clipboard ?
Yes / NO ----> nothing has changed the both actions.
Open Attachement code:
FormAttRec.SETFILTER(FormAttRec."No.","No.");
FormAttRec.SETFILTER(FormAttRec.Description,Description);
IF FormAttRec.FIND('-') THEN
BEGIN
IF FormAttRec."Attachment No." <> 0 THEN
FormAttRec.OpenAttachment
END
ELSE
BEGIN
MESSAGE('No Document is Attached');
EXIT;
END;
CurrForm.UPDATE;
Please suggest me..
Thanks & Regards,
Psk
0
Comments
-
Are you sure your file exist in the path shown ?
This message is shown when Navision is not able to open the file.My candle burns by both ends, it will not last the night,
But oh my foes and oh my friends, it gives a lovely light0 -
Actually i have specified c:\ for file path, but other files(.doc,.xls,.txt) are working file. I don't knw why it's happened for .csv format.0
-
The file is there, for checking i hav removed attached file and again imported the file. Permission i doubt because it should be asking for all files while opening right ?? so some where it's strucking for ONLY CSV FORMAT.0
-
I think there is some limitation while opening .csv file in nav...any idea?0
-
search the forum for the automation WSH (Windows Scriptiong Host) and use WSHShell.run(command).Do you make it right, it works too!0
-
Hi all..
I'm having the same problem here
Cannot open the .csv file
I already use the Automation WSHShell.RUN
but got error :
"An exception was raised in method Run. The OLE control or Automation server has returned error (HRESULT) -2147352567.
The component did not provide the exception description."
actually not only .csv file, but .doc, .pdf, and some .txt files (some can be opened, some cannot.. i also dont understand why) also cannot be opened.
any idea what's wrong?0 -
pardonme wrote:Hi all..
I'm having the same problem here
Cannot open the .csv file
I already use the Automation WSHShell.RUN
but got error :
"An exception was raised in method Run. The OLE control or Automation server has returned error (HRESULT) -2147352567.
The component did not provide the exception description."
actually not only .csv file, but .doc, .pdf, and some .txt files (some can be opened, some cannot.. i also dont understand why) also cannot be opened.
any idea what's wrong?
I got similar issue and the problem was file name. When i try to open file with WHS and in file name was space then i got the same error. Try to to something like this:wsh.Run('"'+"FilePathVariable"+'"');
0 -
I got similar issue and the problem was file name. When i try to open file with WHS and in file name was space then i got the same error. Try to to something like this:
wsh.Run('"'+"FilePathVariable"+'"');
^ AWESOMENESS
Thank You, chrisxx830
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions