Inspector false positive for SObjectField Order.Id

Issue #1988 resolved
Eric Kintzer created an issue

In the following code fragment, SObjectField fld = Order.Id; renders an inspector error on Id asking it to be ID but when the field is used in an SObject creation, the proper usage is Id = ...

Note the difference with Account.Id which does not have this issue; only Order.Id

Comments (6)

  1. Scott Wells repo owner

    Hmmm....I'm not seeing that behavior:

    Issue_1988.png

    Where are you taken when you navigate through the reference in Order.Id? I end up at System.SObject.Id. Same for you, or do you end up somewhere else?

  2. Eric Kintzer reporter

    I too get to `System.SObject.Id` where it shows as `Id` 

    • I don't have any class named `Order` though I do have one named `Orders` - not sure this is relevant
    • Also fails on `fld = Schema.Order.Id`;

    I'm definitely on 2.1.9.0

    I don't know what to say.  I tried other examples like `Asset.Id`, `Contact.Id`, `Quote.Id`, `OrderItem.Id` and they are all fine - just `Order.Id` is the outlier

  3. Scott Wells repo owner

    Okay. I'll take a look again early next week once the Winter '22 IC2 release is out comfortably. Hopefully I'll get to where I can reproduce it...

  4. Scott Wells repo owner

    Eric, I'm still unable to reproduce this. Can you please create a brand new project against this same org (so that you end up with the same--or at least a similar--OST) and see if the same problem occurs there? If so, can you please send me that bare-bones project including the OST so I can try to reproduce it locally?

  5. Scott Wells repo owner

    Resolving due to lack of activity. Eric, if you're still seeing this and have an environment where it's reproducible, please send it over and I'll take a look.

  6. Log in to comment