- edited description
Inspector false positive for SObjectField Order.Id
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)
-
reporter -
repo owner Hmmm....I'm not seeing that behavior:
Where are you taken when you navigate through the reference in
Order.Id
? I end up atSystem.SObject.Id
. Same for you, or do you end up somewhere else? -
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
-
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...
-
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?
-
repo owner - changed status to resolved
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.
- Log in to comment