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
111111 

System.TypeException: Invalid boolean: false

select Id from OpportunityLineItem 
            where PricebookEntry.Product2.hozen_rel_flg__c =: Boolean.valueOf('false')

 
error is appeared.
 
how can i make it to be right?
 
public OpportunityLineItem[] selectOpportunity(String sffann){
      opportunityList = [select Id from OpportunityLineItem 
            where PricebookEntry.Product2.hozen_rel_flg__c =: Boolean.valueOf(sffann) for update];
 
}
mikefmikef
try this:
Code:
opportunityList = [select Id 
from OpportunityLineItem
where PricebookEntry.Product2.hozen_rel_flg__c =: false
for update]



Message Edited by mikef on 07-02-2008 08:33 AM
111111
public OpportunityLineItem[] selectOpportunity(String sffann){
      opportunityList = [select Id from OpportunityLineItem 
            where PricebookEntry.Product2.hozen_rel_flg__c =: Boolean.valueOf(sffann) for update];
 
}
 
 
how can make it to be right?
mikefmikef
Turn this:

Code:
public OpportunityLineItem[] selectOpportunity(String sffann){
      opportunityList = [select Id from OpportunityLineItem 
            where PricebookEntry.Product2.hozen_rel_flg__c =: Boolean.valueOf(sffann) for update];
 
}

 Into this:

Code:
public OpportunityLineItem[] selectOpportunity(String sffann){
      opportunityList = [select Id from OpportunityLineItem 
            where PricebookEntry.Product2.hozen_rel_flg__c =: sffann];
 
}