You need to sign in to do that
Don't have an account?
mbond
No such column 'Id'
Here's my code that's causing the error:
for(OpportunityLineItem oppLI : [SELECT Id FROM OpportunityLineItem WHERE Opportunity.Account.Id = :AcctId]) { ... }
Here's my error:
System.UnexpectedException: No such column 'Id' on entity 'OpportunityLineItem'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.
So if every entity has an 'Id' column, how can I get an error that the 'Id' column doesn't exist? I've googled this and didn't find anything helpful.
Thanks for helping,
Matt
I think this was a secondary error. There was an error that happens right before this in the same trigger cascade. Once I fixed that, I couldn't see this error anymore.
Matt
All Answers
Does Opportunity.AccountId work?
I think this was a secondary error. There was an error that happens right before this in the same trigger cascade. Once I fixed that, I couldn't see this error anymore.
Matt