The length of the source exceeds the size of the destination
Cindy_Pret
Member Posts: 8
I've got a field "File Hyperlink" with a path saved in it. When I lookup I get the error below. Why would that be? What am I doing wrong?
Error Message:
Microsoft Business Solutions-Navision
The length of the source exceeds the size of the destination buffer.
OK
Variables:
CommonDialogMgt Codeunit Common Dialog Management
tFileName Text 512
InitPath Text 512
FH Text 1024
Text50000 c:\windows\Explorer.exe
Code:
IF "File Hyperlink" <> '' THEN BEGIN
FH := STRSUBSTNO('%1%2',"File Hyperlink","File Hyperlink Extended");
SHELL(Text50000, FH);
END ELSE BEGIN
InitPath := '\\itsnav410\TestServer\Call Attachments\' + "Call ID" + '\*.*';
FH :=
CommonDialogMgt.OpenFile('Documents',InitPath,4,'All Files (*.*)|*.*', 1);
IF InitPath = FH THEN BEGIN
"File Hyperlink" := ''
END ELSE BEGIN
VALIDATE("File Hyperlink",COPYSTR(FH,1,250));
VALIDATE("File Hyperlink Extended",COPYSTR(FH,251));
END;
END;
Error Message:
Microsoft Business Solutions-Navision
The length of the source exceeds the size of the destination buffer.
OK
Variables:
CommonDialogMgt Codeunit Common Dialog Management
tFileName Text 512
InitPath Text 512
FH Text 1024
Text50000 c:\windows\Explorer.exe
Code:
IF "File Hyperlink" <> '' THEN BEGIN
FH := STRSUBSTNO('%1%2',"File Hyperlink","File Hyperlink Extended");
SHELL(Text50000, FH);
END ELSE BEGIN
InitPath := '\\itsnav410\TestServer\Call Attachments\' + "Call ID" + '\*.*';
FH :=
CommonDialogMgt.OpenFile('Documents',InitPath,4,'All Files (*.*)|*.*', 1);
IF InitPath = FH THEN BEGIN
"File Hyperlink" := ''
END ELSE BEGIN
VALIDATE("File Hyperlink",COPYSTR(FH,1,250));
VALIDATE("File Hyperlink Extended",COPYSTR(FH,251));
END;
END;
0
Comments
-
Hi,
Did you try to turn on debuger and see where it stops on error?
hxr0 -
Yes. It stops at the shell part0
-
I think it is best that you put your commandstring and your parameterstring together to run the SHELL.
Or even better then SHELL : http://www.mibuso.com/forum/viewtopic.php?t=12417Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Hi Cindy ,
The error you menitioned
Error Message:
Microsoft Business Solutions-Navision
The length of the source exceeds the size of the destination buffer.
You can try one thing in the data port properties just change ShowStatus in the data port properties to No .
I hope this will solve your problem.
Regards,0 -
[Inappropriate/Offensive text removed by Moderator.]
[Non-English text (besides in the forums where it is allowed) is not allowed.]
Please see Forum Rule(s) #2 and 3.4: Forum Rules.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 333 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