Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Breaking change 2021 Wave 1

Posted on by 5

Recently, Microsoft pushed the 2021 Wave 1 release on all of our Dynamics 365 online environments.

And it introduced a breaking change!

For many versions we could write QueryExpression queries and specify no columns at all or omitting the default primary key column, knowing the Entity records returned always have the Id attribute populated.

Not any more! When a QueryExpression does not specify the primary key column explicitly, the Id property equals Guid.Empty.

Since this change in behavior affects a lot of basic software components I am wondering: anyone else experienced this behavior? Could we expect this, i.e. is this documented behavior or simply a nasty error?

  • a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Breaking change 2021 Wave 1

    Hello,

    I wrote a simple console app and I can't reproduce this behavior. Can you please tell what's the version of the instance you can reproduce the issue you describe, provide the brief code and your scenario?

    Here is what I have:

    Version: 9.2.21035.00186

    Scenario: Console application that gets 10 first accounts.

    Code:

    var connString = ConfigurationManager.AppSettings["CrmConnectionString"];
    
    var service = new CrmServiceClient(connString);
    
    var query = new QueryExpression("account")
    {
        ColumnSet = new ColumnSet(false),
        TopCount = 10
    };
    
    service.RetrieveMultiple(query).Entities.ToList().ForEach(a => System.Console.WriteLine(a.Id));
    

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,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans