Number series weirdness
bhalpin
Member Posts: 309
Hi.
This just started happening:
- Purchase > Order Processing > Invoices
- [F3] to insert new invoice.
- [Enter] from "No." field.
- Error: You cannot assign numbers greater than 9999 from the number series P-INV.
- When you clear the error, a perfectly good/logical number is there (2223).
The P-INV No. Series settings are:
Start: 1001
End: 9999
Last used date: 01/01/08
Last No. Used: 2223
The debugger doesn't stop on anything, so I'm kina at a loss ...
Any ideas on this out there?
Bob
This just started happening:
- Purchase > Order Processing > Invoices
- [F3] to insert new invoice.
- [Enter] from "No." field.
- Error: You cannot assign numbers greater than 9999 from the number series P-INV.
- When you clear the error, a perfectly good/logical number is there (2223).
The P-INV No. Series settings are:
Start: 1001
End: 9999
Last used date: 01/01/08
Last No. Used: 2223
The debugger doesn't stop on anything, so I'm kina at a loss ...
Any ideas on this out there?
Bob
0
Answers
-
Change the End# to 99999999
sounds strange - any filters set or modifications done?
You get an error & no debugger info :?:
is 2223 actually what the number series is saying or what you are saying is the last # used?0 -
Ok, tried that and same error but with the bigger number. And no stopping in debugger either. (Very weird)
Code coverage and persistence lead me to codeunit 396 NoSeriesManagement and this is where the error is occuring:IF (NoSeriesLine."Ending No." <> '') AND (NoSeriesLine."Warning No." <> '') AND (NoSeriesLine."Last No. Used" >= NoSeriesLine."Warning No.") AND (NoSeriesCode <> WarningNoSeriesCode) AND (TryNoSeriesCode = '') THEN BEGIN WarningNoSeriesCode := NoSeriesCode; MESSAGE( Text007, NoSeriesLine."Ending No.",NoSeriesCode); END;
The number being assigned (2224) is greater than the "Warning No." which is 1995, so NAV is kicking up a "warning" using Text007 - which is the same text constant used to report an actual error when the number series is exhausted.
NAV. A magical mystery tour sometimes, eh?
Bob0
Categories
- All Categories
- 75 General
- 75 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions