• SFDC_KM
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 0
    Replies
I have created a cpq custom action of Button type to display on Opportunity Detail page. See below the details. It isn't working. Is there any other setting required?

User-added image
I am setting language of VF page based on user preferences (select option) and on selecting the drop down value (on change), the page should be translated to the selected language. The entire pages is translated except for one picklist field values which are translated opposite.
For example, if i have two options: English & French. When i select French, picklist values come in English. When i select English, French values are displayed for the picklist.
Can someone let me know the reason for this behavior of picklist translation?
I am calling a batch in trigger where I a, getting 'System.UnexpectedException: commits are not allowed because someone called setCommitAllowed(false), justification: doWorkAndCommit' error while bulk update. In debug logs the error is indicated for line no underlined below.
if ([SELECT count() FROM AsyncApexJob WHERE JobType='BatchApex' AND (Status = 'Processing' OR Status = 'Preparing' OR Status = 'Queued')] < 5){
    ID batchprocessid = Database.executeBatch(new batchClass(contactsId),100);
} else{
        ID batchprocessid = Database.executeBatch(new batchClass(contactsId),100);
        Boolean isSuccess = System.FlexQueue.moveJobToFront(batchprocessid);
        system.debug('---batchprocessid: '+batchprocessid+' & movedToFront: '+isSuccess);
}

Can anyone lead me to the reason for this exception?
 
I am calling a batch in trigger where I am getting 'System.UnexpectedException: commits are not allowed because someone called setCommitAllowed(false), justification: doWorkAndCommit' error while bulk update. In debug logs the error is indicated for line no underlined below.
if ([SELECT count() FROM AsyncApexJob WHERE JobType='BatchApex' AND (Status = 'Processing' OR Status = 'Preparing' OR Status = 'Queued')] < 5){
	ID batchprocessid = Database.executeBatch(new batchClass(contactIds),100);
} else{
		ID batchprocessid = Database.executeBatch(new batchClass(contactIds),100);
		Boolean isSuccess = System.FlexQueue.moveJobToFront(batchprocessid);
		system.debug('---batchprocessid: '+batchprocessid+' & movedToFront: '+isSuccess);
}
Can anyone lead me to the reason for this exception?