web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
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?

I have the same question (0)
  • a33ik Profile Picture
    84,331 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Sahan Hasitha Profile Picture

Sahan Hasitha 226

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 81 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 68 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans