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

When is AutoSplitKey property used?

(0) ShareShare
ReportReport
Posted on by 625

Hi All,

I have created a custom page where the source table has id1 as the primary key, I have added a subform on this page. And the Souce table for this subform page  has id1 and ItemNum as the primary keys. Now the thing is when i try to save a record on the subform part on my main custom page, i am getting the error "he code type of key field cannot be automatically split".

Now on researching , i found that AutoSplitKey property was by default set to true on my subform page.

So i set AutoSplitKey = false and now its not showing me error. 

I want to know if i am making any mistake by setting the property of AutoSplit key to false? Will it cause any problems in the future?

In which situation is AutoSplitkey= true is used?

Please Help!!!

Thanks in Advance.

  • Verified answer
    I Gusti Made Ari Profile Picture
    3,608 on at

    Auto Split Key is used if you are using Integer data type  as the last key . For Example , Document No. and Line No. , Line No. in this case is integer. when you create a new line, line no. will be automatically populated as 10000,2000, and so on.

    The scenario of using this is for document for example, puchase order,  in purchase order, you have multiple line with same document no., in this case you need another key to differentiate it which is line no. .   with autosplit key feature it is easier as you no need to get what is the last line no. as it will keep increasing and populated automatically.

    Take a look at Standard Sales Order , Purchase Order page to better understand it.

  • AXBOY Profile Picture
    625 on at

    Thank you.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 711 Super User 2026 Season 2

#2
Teagen Boll Profile Picture

Teagen Boll 377 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 367 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans