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
Jonathan Crow 6Jonathan Crow 6 

Error Saving APEX Trigger - sObject type 'ContainerAsyncRequest' is not supported

I am trying to create an APEX Trigger that strips a custom field of any HTML. I wrote this code in a Trailblazer sandbox and it was working fine. When I moved it over to my Dev org I now am getting an error message when saving:

Failed to create createContainerMember for containerId=1bg8X000000HkYgQAK: SELECT Id FROM ContainerAsyncRequest WHERE State ^ ERROR at Row:1:Column:16 sObject type 'ContainerAsyncRequest' is not supported. If you are attempting to use a custom object, be sure to append the '__c' after the entity name. Please reference your WSDL or the describe call for the appropriate names.

Here is the APEX Trigger I am trying to write:
trigger removeHTML on Case (before update) {
    for (Case c : Trigger.New){
    c.MyCustom_Field__c = c.MyCustom_Field__c.stripHtmlTags();
    }
}

Currently I have made sure that my profile has:
  • API Enabled
  • View and Setup Configuration
  • View All Data
  • Write access to MyCustom_Field__c and Case
  • I have changed my Developer Console Workspace in case it had gotten corrupted and deleted all others.
Even when all I do is create the trigger and then try to change insert to update I can't save.
trigger removeHTML on Case (before *update*) { 

}

Any ideas on what to try next?