Skip to main content
Avalara Help Center

Why is error CANNOT INSERT UPDATE ACTIVATE ENTITY occuring after update to AvaTax for SalesForce?

Overview

You've upgraded your AvaTax for Salesforce builds for SFCORE and an error is now occurring:

12:49:03.520 (30520052714)|ENTERING_MANAGED_PKG|AVA_SFCORE
12:49:03.520 (30520698671)|SOQL_EXECUTE_BEGIN|[56]|Aggregations:0|SELECT Id, Name, AVA_SFCORE__Active_Setting__c, AVA_SFCORE__Service_URL__c, AVA_SFCORE__Account_Number__c, AVA_SFCORE__License_Key__c, AVA_SFCORE__Company_Code__c, AVA_SFCORE__Origin_Street__c, AVA_SFCORE__Origin_City__c, AVA_SFCORE__Origin_State__c, AVA_SFCORE__Origin_Postal_Code__c, AVA_SFCORE__Origin_Country__c, AVA_SFCORE__Enable_Commits__c, AVA_SFCORE__Enable_Tax_Calculation__c, AVA_SFCORE__Enable_Address_Validation__c, AVA_SFCORE__Automatic_Tax_Calculation__c, AVA_SFCORE__Save_UnCommitted_Quotes__c, AVA_SFCORE__Use_BillingAddress__c, AVA_SFCORE__Commit_On_Status__c, AVA_SFCORE__Verify_Validated_Addresses__c, AVA_SFCORE__Use_Acct_Name_for_Avalara_Cust_Num__c, AVA_SFCORE__TriggerLimit__c FROM TaxNowSetting__c WHERE Active_Setting__c = TRUE
12:49:03.621 (30621199517)|SOQL_EXECUTE_END|[56]|Rows:0
12:49:03.623 (30623830380)|DML_END|[228]
12:49:03.623 (30623916831)|EXCEPTION_THROWN|[228]|System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, AVA_SFCORE.OppLineTrigger: execution of BeforeInsert

System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, AVA_SFCORE.OppLineTrigger: execution of BeforeInsert caused by: System.ListException: List index out of bounds: 0 (AVA_SFCORE): [] 
Stack Trace: Class.MoveOppToClosedControllerTest.CatalystTestOptions: line 244, column 1 

Environment

Salesforce