• aishonline
  • NEWBIE
  • 5 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies

Hi, I am getting an error while updating a list of records in Betch class execute method.

 

Code snippet is as below:

 

for(Activity_Product__c ActivityProduct: ActivityProductList){
            if(ActivityProduct.price_list__r.COGS_IMPACT_FLAG__c == 'Y')
            {
                 System.debug('11111111  First If Block');            
            }
            
            if(ActivityProduct.price_list__r.DP_IMPACT_FLAG__c == 'Y'){
                System.debug('222222222  second If Block');               
              }
            
            if(ActivityProduct.price_list__r.SR_IMPACT_FLAG__c == 'Y' ){
                System.debug('33333333  3rd If Block');         
            }
            
            if(ActivityProduct.price_list__r.COGS_IMPACT_FLAG__c == 'Y' || ActivityProduct.price_list__r.DP_IMPACT_FLAG__c == 'Y' || ActivityProduct.price_list__r.SR_IMPACT_FLAG__c == 'Y')
            ActivityToUpd.add(ActivityProduct);            
         
        }
               
        Database.update(ActivityToUpd,false);  // getting that error on this line.

 

Any help would be highly appreciated.

Thanks a lot.

Hi, I am getting an error while updating a list of records in Betch class execute method.

 

Code snippet is as below:

 

for(Activity_Product__c ActivityProduct: ActivityProductList){
            if(ActivityProduct.price_list__r.COGS_IMPACT_FLAG__c == 'Y')
            {
                 System.debug('11111111  First If Block');            
            }
            
            if(ActivityProduct.price_list__r.DP_IMPACT_FLAG__c == 'Y'){
                System.debug('222222222  second If Block');               
              }
            
            if(ActivityProduct.price_list__r.SR_IMPACT_FLAG__c == 'Y' ){
                System.debug('33333333  3rd If Block');         
            }
            
            if(ActivityProduct.price_list__r.COGS_IMPACT_FLAG__c == 'Y' || ActivityProduct.price_list__r.DP_IMPACT_FLAG__c == 'Y' || ActivityProduct.price_list__r.SR_IMPACT_FLAG__c == 'Y')
            ActivityToUpd.add(ActivityProduct);            
         
        }
               
        Database.update(ActivityToUpd,false);  // getting that error on this line.

 

Any help would be highly appreciated.

Thanks a lot.

Hi All,

 

I just finished the official training course given by Salesforce for our company.

They have also given us "DEV 401/501" student/exercise guide.

I would like to take the exam roughly a month from now.

 

Is the following reading materials enough for passing this exam ?

 

a) DEV 401 Guide (Student / Exercise)

 

b) Kindle version of "Development with the Force.com Platform: Building Business Applications in the Cloud" by Jason Ouellete

 

c) Force.com Fundamentas pdf

 

Also it would be nice to know if there are any particular key topics that I should focus on..

 

Thanks for your time :)

 

GVPY

  • February 27, 2012
  • Like
  • 0