web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Any solution for BC's item number 20 character limit?

(4) ShareShare
ReportReport
Posted on by 41
We are migrating our data from GP to BC. However, BC has a 20 character limit on item numbers. Changing the item number will heavily impact our company. We are wondering if there are any workarounds?
Only solution I can think of right now:
i.      Create a custom dictionary table for all our items, with “Item Number” = 1,2,3, … to 46074, and “Part Number”, which is our true item number. 
ii.      Modify our SQL tables, replacing our current item number with 1,2,3,…
iii.      After migration, whenever we want to display item number, we use AL to lookup and display “Part Number”.
I have the same question (0)
  • Verified answer
    Saif Ali Sabri Profile Picture
    2,360 Moderator on at
    You're correct—Business Central enforces a 20-character limit on the No. field for items, and altering this limit directly is not supported. Here are two practical solutions:
    Option 1: Custom Mapping Table (Your Suggested Approach)
    • Create a custom table with fields: Item No. (short key), Part Number (full original).
    • Use a generated short code (1, 2, 3...) as the actual Item No. in BC.
    • Override display and lookup logic in AL to show/use the Part Number wherever needed (pages, reports, APIs).
    • Pros: Retains original part numbers logically.
    • Cons: Additional dev overhead for UI, reports, and integrations.
    Option 2: Use External ID with Item Cross Reference
    • Use the standard Item Cross Reference feature to store the original GP Part Number as a cross-reference.
    • Set up a consistent Cross-Reference Type (e.g., "GP").
    • Use customization or reporting logic to pull/display Part Number where needed.
    • Pros: No heavy dev; utilizes built-in BC features.
    • Cons: Still requires some customization for visibility in UI/reporting.
    ⚠️ Avoid trying to alter table schema directly; it's unsupported and will break updates and AL extensions.
    Let me know if you'd like a sample AL code snippet or guidance on setting up either method.
  • Suggested answer
    Jainam M. Kothari Profile Picture
    16,158 Super User 2026 Season 1 on at
    Hello,
     
    To address the 20-character limit on item numbers in Business Central during your migration from GP, you can create a custom dictionary table mapping your original item numbers to shorter ones, modify your SQL tables accordingly, and use AL to display the full item numbers post-migration.
     
    Alternatively, consider using custom fields, item cross-references, or item variants to manage the original item numbers without significant impact on your operations.
     
     
  • Suggested answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    14,306 Super User 2026 Season 1 on at
    BC does have a limitation of 20 characters for the item code.
    You can put the GP Code as an Item Reference so the user can still use their old GP Code.
     
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    22,350 Super User 2026 Season 1 on at
    Business Central's standard Item.No. field is limited to 20 characters and cannot be extended directly due to base table limitations. Microsoft doesn't support increasing that length, even in On-Prem environments. The workaround using a custom mapping table with a short internal number and a full external part number is a well-known and commonly implemented solution. It’s used in many GP to BC migrations where longer item numbers are involved.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,072 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,129 Super User 2026 Season 1

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 650 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans