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...
Suggested Answer

Table creation with PK

(0) ShareShare
ReportReport
Posted on by 2
Hi everyone,
I'm new in Business central development. Need ur help regarding table creation in business central.
I'd created master / child tables for GL entry with defining VoucherNo as PK and foreign key in Master / Child tables and designed the pages accordingly.
When entering the data in /ListPart/, i get error /Text type of key field cannot be automatically split/.
Can anybody help in this regard. 
 
Thanks
GUlbaz 
 
////
Data Type of Voucher No is 
field(1; VoucherNo; Text[15])
        {
            DataClassification = ToBeClassified;
            TableRelation = /GB Voucher Master/.VoucherNo;
        }
 
I have the same question (0)
  • Suggested answer
    tanya07 Profile Picture
    1,638 on at
    Hello,
     
    Can you please show the error here ?
     
    Also what is the data type used for VoucherNo ?
     
     
  • YUN ZHU Profile Picture
    99,966 Super User 2026 Season 1 on at
    Hi, it looks like you are using the AutoSplitKey property? You can refer to page 46 "Sales Order Subform" and pay attention to setting the AutoSplitKey property and DelayedInsert property.
     
    Hope this can give you some hints.
    Thanks.
    ZHU

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 March Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,831 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,122 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 690 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans