Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Inserting no value

Posted on by 225

I'm inserting a record which has DateTime. For some objects setting this DateTime is not necessary, and I would like to set a null value. Somewhere along the road null because default, and default is 1/1/0000 and then I get this fancy message:

DateTime is less than minumum value supported by CrmDateTime. Actual value: 01/01/0001 00:00:00, Minimum value supported: 01/01/1753 00:00:00

 Is there a way to insert no values for entities in the sdk? Its de default behavior of Dynamics, it the field is not required it is empty if not set.

*This post is locked for comments

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Inserting no value

    Instead of doing value 01/01/001 you can directly set null.You might face issue with  01/01/0001 value in future.

  • Suggested answer
    Guido Preite Profile Picture
    Guido Preite 54,081 Super User 2024 Season 1 on at
    RE: Inserting no value

    you need to set null, looks like you are setting a DateTime.MinValue

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans