Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Answered

When is AutoSplitKey property used?

(0) ShareShare
ReportReport
Posted on by 605

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.

  • AXBOY Profile Picture
    AXBOY 605 on at
    RE: When is AutoSplitKey property used?

    Thank you.

  • Verified answer
    I Gusti Made Ari Profile Picture
    I Gusti Made Ari 3,594 on at
    RE: When is AutoSplitKey property used?

    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.

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,661 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,379 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans