Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Breaking change 2021 Wave 1

(0) ShareShare
ReportReport
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,325 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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,965 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,836 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans