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

Notifications

Announcements

No record found.

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 607

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.

I have the same question (0)
  • Verified answer
    I Gusti Made Ari Profile Picture
    3,600 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
    607 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,098

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,556 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,108 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans