Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

Table creation with PK

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;
        }
 
Categories:
  • YUN ZHU Profile Picture
    YUN ZHU 68,395 Super User 2024 Season 2 on at
    Table creation with PK
    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
  • Suggested answer
    tanya07 Profile Picture
    tanya07 1,535 on at
    Table creation with PK
    Hello,
     
    Can you please show the error here ?
     
    Also what is the data type used for VoucherNo ?
     
     

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,252 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,089 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans