Report Error "The maximum length for a string value is 10"

ccbryan63
Member Posts: 115
I am busy upgrading to 2009 RTC and I have several reports (Vendor Account Detail is one) that when run from RTC return the error ""The maximum length for a string value is 10." Running the same report with the same parameters in the Classic client works fine, so I figure it has to do with the VS report layout. Furthermore, running the report in RTC with different parameters (e.g., different vendor) also works fine, so it's obviously data-related and not an inherent error in the report layout itself.
Does anyone know how I might go about figuring out what the problem in the layout is? Do I just need to wipe the existing layout and recreate it?
Thanks...
Chandler
Does anyone know how I might go about figuring out what the problem in the layout is? Do I just need to wipe the existing layout and recreate it?
Thanks...
Chandler
0
Answers
-
Check whether you have anycode with
IF ISSERVICETIER THEN BEGIN..
0 -
Some more information: I'm pretty sure I have isolated the issue down to a single field. I have vendor- date-filtered the report (Vendor Account Detail) so that it should only return two rows, an invoice and a payment. If I further filter it on Vendor Ledger Entry.Documnet Type = Payment, it runs fine. However, if I try to run it for Document Type = Invoice or without filtering on document type, it gives the error. I'm nearly certain that the culprit is the Document No. field. The payment doc no in question is 'REM085629' (10 chars), and the invoice is 'AP INV28394' (11 char).
However, I can't find anywhere in the VS report or in the .xsd that is limiting the Document No. field to 10 characters. The field length in the report form is set in centimeters/inches, not characters, and depends on the width of the column. In the .xsd the length of the field is -1 (like all the other fields) and any changes I make to it are not saved.
Any thoughts?0 -
The answer is always easy, once you know what it is. There was a global variable DocNoTmp, with a length of 10. This variable was not used in the Classic report, only in the RTC. There ya go!0
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