Text11 stored in Text10
eYe
Member Posts: 169
Hi
I just found a value of length 11 in a Text10 field. FieldClass = normal.
(Native NAV4SP1)
How is it possible for something like this to happen?
I just found a value of length 11 in a Text10 field. FieldClass = normal.
(Native NAV4SP1)
How is it possible for something like this to happen?
Kind Regards,
Ewald Venter
Ewald Venter
0
Comments
-
oh, i know that there was a bug in the 2.00 database.
But still in the 4.00?
it's a customized field?Do you make it right, it works too!0 -
Yes it is a custom field.Kind Regards,
Ewald Venter0 -
did you stream in there some datas? or did you change the lenght?Do you make it right, it works too!0
-
Hi Guys,
The answer is buried in the application developer guideNote
In C/SIDE Database Server, data is stored with a four byte alignment because of
performance considerations. The sizes of text, code and binary fields (that can have
variable lengths) are rounded up to the nearest value that is a multiple of four. This
means that, for example, a text string of 10 characters will occupy 12 bytes.
So it will allow you to store the 11 characters even though it should only be 10
0 -
That explains how it is stored there, not entirely how it got in there.Kind Regards,
Ewald Venter0 -
Hi,
Normally through a dataport or other type of import.0 -
Wouldn't NAV have given a error. Like a Text to Text overflow?Kind Regards,
Ewald Venter0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K 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
- 324 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