Windows login - length limit?

bhalpin
Member Posts: 309
Very strange ...
NAV 2009 R2 Build 33597
When any user opens a particular page (Sales Order -> Sales Line > Functions -> Reserve. Then click “Available to Reserve”) they get this error:
The server "net.[url=tcp://companyname:7046/DynamicsNAV/Service]tcp://companyname:7046/DynamicsNAV/Service[/url]" is either unavailable or your connection has been lost.
The Event Viewer shows:
Service: MicrosoftDynamicsNAVServer
User: ABCDEFGHIJKLMNO\abcdef
Type: System.ArgumentOutOfRangeException
One guess was that the Windows login string was 'pretty long' - 22 characters. So we created a Windows user with a one-character name. The error did not occur for that user.
So this raises the question: Is there some limit on the length of the Windows login string (Domain\user) ?
The really disturbing part is that this error only started recently - and the page has worked for several months in testing by the same users. (And the NAV build has remained constant.)
Any clues/comments/suggestions would be greatly appreciated.
NAV 2009 R2 Build 33597
When any user opens a particular page (Sales Order -> Sales Line > Functions -> Reserve. Then click “Available to Reserve”) they get this error:
The server "net.[url=tcp://companyname:7046/DynamicsNAV/Service]tcp://companyname:7046/DynamicsNAV/Service[/url]" is either unavailable or your connection has been lost.
The Event Viewer shows:
Service: MicrosoftDynamicsNAVServer
User: ABCDEFGHIJKLMNO\abcdef
Type: System.ArgumentOutOfRangeException
One guess was that the Windows login string was 'pretty long' - 22 characters. So we created a Windows user with a one-character name. The error did not occur for that user.
So this raises the question: Is there some limit on the length of the Windows login string (Domain\user) ?
The really disturbing part is that this error only started recently - and the page has worked for several months in testing by the same users. (And the NAV build has remained constant.)
Any clues/comments/suggestions would be greatly appreciated.
0
Comments
-
Hi bhalpin,
To answer your question -Is there some limit on the length of the Windows login string (Domain\user) ?
No there is no limit for same.
Possible Reason for error -
The local variable used for storing UserID, during the transaction your are trying to do will be assigned a size of say 20 characters. This local variable is exceeding the limit.
Resolution -
Try running the same process with same user ID on classic and start the debugger. It will tell you the location where the USER ID is getting stored in local variable.
Just increase the size to max. length of your domain user id.
Let me know if you still have any issues.
Thanks & Regards,
Saurav Dhyani
Do you Know this About NAV?
Connect - Twitter | Facebook | Google + | YouTube
Follow - Blog | Facebook Page | Google + Page0 -
Thanks.
There are two pages in the mix here that were modified - very slightly. The mod is simply to display a calculated value returned from a function added to the Purchase Line table. The function is extremely simple - and doesn't have anything to do with user IDs. It simply filters and then adds up values from the item ledger entry table.
But, the crash started after doing that mod, so anything is possible.
I've made the same mods to the classic forms and sent that off. We'll see if the same crash (or at least an understandable error) occurs in Classic.
B
PS - I've seen string overflow errors under RTC before - they don't cause an end to the universe like this.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