Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / Fill Value in Table Ma...
Finance forum

Fill Value in Table Mandatory Field through Data Entity

(0) ShareShare
ReportReport
Posted on by 362

Hi All,

I have a field in target table which is mandatory and will be filled through some business logic. Now i have created an entity for the same table and would like to fill the same mandatory field value by the business logic.I have written the logic in mapEntitytoDataSource. However i am getting the error as The data value violates integrity constraints.Could you please suggest.

Thanks

Venky

  • Venkatdax0 Profile Picture
    Venkatdax0 362 on at
    RE: Fill Value in Table Mandatory Field through Data Entity

    Hi All,

    It was the data issue and giving correct data has resolved it.Thanks All

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,759 Super User 2024 Season 2 on at
    RE: Fill Value in Table Mandatory Field through Data Entity

    Have you regenerated the staging table? Did you synchronize the database after this change? Have you also regenerated field mapping or the entity in the entity list? 

  • Sukrut Parab Profile Picture
    Sukrut Parab 71,671 Moderator on at
    RE: Fill Value in Table Mandatory Field through Data Entity

    What's the data  type of that field . I saw this error on multiple times one of the reason I remember is,  when  your length of data is actually greater than field length.

  • Venkatdax0 Profile Picture
    Venkatdax0 362 on at
    RE: Fill Value in Table Mandatory Field through Data Entity

    Hi Andre,

    I have checked the field on entity and respective staging table and made the mandatory property as No. But still i am getting the same issue. Please share you thoughts on this...

  • Verified answer
    André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,759 Super User 2024 Season 2 on at
    RE: Fill Value in Table Mandatory Field through Data Entity

    Hi Venky,

    Please check your staging table and data entity settings for this field. If you have added this field on the entity itself, make sure it is not mandatory on the data entity.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,468 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans