As most of you've noticed, Microsoft has (finally) decided to lengthen most of the text fields from 30 to 50 characters.
To my regret, I must say that the MS Dynamics NAV development team made at least a few mistakes here. When you open the global variables window in page 291 and 296 you will see what I mean.
Yep, your eyes are not deceiving you.. the "Description2" variable is still 30 characters. Off course this doesn't have to be a problem if the function that fills the variable is also using a 30 character parameter. But well, since a picture says more than a thousand words:
As you can see the parameter is 50 characters so here we've got a potential overflow error. We've already reported this issue at Microsoft and they've told us that it will be fixed in a future service pack. But for now as they told us:
"From the current release perspective, please go ahead and increase length of Description2 global variable (page 291 and 296) to 50 chars. This will make it consistent with the parameter that sets value here."
Just so you all know.. nobody's perfect.
On Text based variables you can leave the "Length" empty. But in Table fields you still have to define a length. But it is still possible to define a length to a variable, probably for performance reasons.
Still, this situation will cause a possibility for an overflow.
I thought Text-based fields had unlimited length in NAV 2013?
I didn't know that one.. thanks for the update!
Sure, nobody's perfect!!
There's already a hot fix list for NAV 2013 available:
It also says that there will be a service pack!!!