System.SObjectException: Invalid field SBQQ__Product__c for SBQQ__QuoteLine__c

Object o = myOb.get(myFieldName);

Does your code look something like this?

System.SObjectException: Invalid field SBQQ__Product__c for SBQQ__QuoteLine__c

And you get an error something like that?

This is an apex error. This can happen with any field on any object. If you’re here, you probably have less hair because you’re pulling it out trying to figure out why, in tarNATION, the field you’re referencing is not valid for the object you’re trying to get the value out of. Have no fear! The answer is here!

You have a space before and/or after the field name. 😂

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.