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

Make field mandatory for configuration package import

(2) ShareShare
ReportReport
Posted on by 66

Hi All,

I am designing a table that will be populated primarily by using a configuration package (Rapidstart). This will be done regularly, not just for the initial set of data. Some of its fields should not allow blank values, but I have not been able to find a way to enforce this when importing data. I would like the configuration package to throw an error if the mandatory fields are blank in the package data. (Currently my package loads the blank values without error). Does anyone know of a way to achieve this? Or should I look at an alternatives such as XMLPorts?

I have tried doing the following in the table's definition :

- NotBlank = true : but this is only respected by pages

- Put Testfield() in the fields' OnValidate() trigger : but this does not work because when the field's value is empty, OnValidate() is not called.

- Check the fields' values in the table's OnInsert() and OnModify() trigger : but this does not work because on the initial insert, the fields' values are not yet populated, so are legitimately blank. This method can work with inserts from the page, by using DelayedInsert, but DelayedInsert is not available for inserting data via a configuration package.

Perhaps I've missed something.

Thank you in advance.

Chris

I have the same question (0)
  • Suggested answer
    JAngle Profile Picture
    157 on at

    Perhaps a configuration template may help. In there you can specify if a field is mandatory or not. You can even preset some values.

  • Chris Greenwood Profile Picture
    66 on at

    Thanks a lot Josh for your suggestion. I gave it a try but I found that to select the "mandatory" option I have to provide a default value.

    Unfortunately in my case I cannot supply default values (the fields are "Start Date" and "End Date" and it doesn't make sense to default them).

  • CU30051015-1 Profile Picture
    8 on at
    Hi.
     
    In the end, were you able to achieve this? I'm currently looking to do the same. 
     

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

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,260 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,515 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,373

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans