function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
chercher 

Parent relationship queries are not allowed error sales workbench

I executed the following related soql query in salesforce workbench:

select ACT_STATUS_ABT__C, ACCOUNT__R.Name from ACT_STATUS__C where ACT_STATUS_ABT__C != NULL

Here ACT_STATUS__C is the child object of the account (i.e there is a master detail relationship to the account). 

 

This query is working perfectly in the Apex Explorer, But When I execute the same query in the salesforce workbench I am getting the following error: 

 

Parent relationship queries are not allowed. 

 

What could be the reason? The API version of workbench I am using is 22.0

 

 

Rakesh SahooRakesh Sahoo

Go to the workbench setting and in the Query & Search option click on the check box "Allows SOQL Parent Relationship Queries"  and click on apply setting.

You can able to access the parent relationship queries.