Account created on 19 August 2021, almost 3 years ago
#

Recent comments

Facing the same on drupal 10.2.2, salesforce suite 5.0.3.

Posting the code for two triggers.. We were facing the above issues with these triggers

trigger CMS_InvoiceItem_Trigger on Invoice_Item__c (before insert, before update,
after insert, after update) {

String debugName = '--- CMS_InvoiceItem_Trigger ---';

Utils u = new Utils();
Invoice i = new Invoice();
Enrollment e = new Enrollment();

Boolean isApiAdminUser = u.isApiAdminUserProfile(UserInfo.getProfileId());
private Boolean sendCmsDebugEmail = new Utils().isDebugCMSTrans(UserInfo.getProfileId());

if(isApiAdminUser) {
System.debug(debugName + ' executing....');
if(trigger.isInsert && trigger.isBefore) {
System.debug(debugName + ' ATTEMPTING INSERT....');
i.createInvoiceLineFromCMS(trigger.new);
}
if(trigger.isInsert && trigger.isAfter) {

Invoice_Item__c ii;
ii= (Invoice_Item__c)trigger.new.get(0);
//i.debugInvoiceItemRecord(ii, 'After '+debugName+ ' executed and item is inserted.', sendCmsDebugEmail);
i.debugInvoiceItemRecords(trigger.new, 'After '+debugName+ ' executed and potentally MULTIPLE itemS ARE inserted.', sendCmsDebugEmail);

//------------- have to link the enrollment obj records to invoice item records here because
//------------- we don't yet have the invoice item ids in the before trigger
List invItemsInserted = trigger.new;
Set invItemIds = new Set();
Boolean atLeastOneClassExists = false;
for (Invoice_Item__c invoiceItem : invItemsInserted) {
if(invoiceItem.Class__c != null) {
atLeastOneClassExists = true;
invItemIds.add(invoiceItem.id);
}
}
if(atLeastOneClassExists) {
i.linkEnrollmentToInvoiceItem(invItemIds);
}
//-------------- done linking.

Invoice__c parentInvoice = i.getInvoice(ii.invoice__c);
System.debug(debugName + ' re-locking Invoice and updating origin');
parentInvoice.Status__c = 'Finalized';
parentInvoice.Origin__c = 'CMS Web Order';
update parentInvoice;
}
}
}

trigger ClassInstructorImportTrigger on SFDC_Class__c (after insert) {
Utils u = new Utils();
String debugName = '--- ClassInstructorImportTrigger.trigger ---';

if(!u.isDisableClassInstructorImportTrigger(UserInfo.getProfileId())) {
System.debug(debugName + ' BEGIN EXECUTING!!!');
Classes cls = new Classes();
cls.addClassInstructors(trigger.new);
System.debug(debugName + ' END EXECUTING!!!');
}

@Dave Reid, No we have created a new entity browser from entity browser config page and configured things over there.

Check whether there is any parse error on your composer.json file.

Changing the mode from Git to SFTP in Pantheon fixes the issue.

In Pantheon, changing the mode from git to SFTP fixes this issue.

The issue was with the custom module in my codebase. Disabling it fixes the issue.

Production build 0.69.0 2024