SObject row was retrieved via SOQL without querying the requested field error. - Answers - Salesforce Trailblazer Community
Ask Search:
Ashwini SukumaranAshwini Sukumaran 

SObject row was retrieved via SOQL without querying the requested field error.

In the object Closed Deals/Comps there is a button "Book Sale". 
User-added image
This is part of Managed Package. 
User-added image

When I click on the button I get the error: 
"SObject row was retrieved via SOQL without querying the requested field: McLabs2__Sale__c.Department__c
"
I am unable to see the apex class since its hidden. 

User-added image


User-added image
How do I fix the error?
 
Best Answer chosen by Ashwini Sukumaran
Amnon KruviAmnon Kruvi
Hi Ashwini, 

You will need to contact the vendor of the app and ask them for a fix. You cannot change logic in managed packages. 

All Answers

Amnon KruviAmnon Kruvi
Hi Ashwini, 

You will need to contact the vendor of the app and ask them for a fix. You cannot change logic in managed packages. 
This was selected as the best answer
Ashwini SukumaranAshwini Sukumaran
Ok.  Will check with them. Thank you.