mitchspano/trigger-actions-framework

Sandbox installation errors.

Closed this issue · 10 comments

Hi, I'm receiving the following errors when trying to install/update on my sandbox. Thanks


Your request to install package "Trigger Actions Framework Version 0.3" was unsuccessful. None of the data or setup information in your salesforce.com organization was affected.

If your install continues to fail, contact Salesforce CRM Support through your normal channels and provide the following information.

Organization: xxx
User: xxx
Package: Trigger Actions Framework (04tKY000000PdZO)

Problem:

  1. Apex compile failure
    Apex class FlowTriggerRecordTest: line 28, column 3: Invalid type: TriggerActionFlowTest.AccountTriggerRecord

  2. Apex compile failure
    Apex class FlowTriggerRecordTest: line 44, column 3: Variable does not exist: testTriggerRecord.newRecord

  3. Apex compile failure
    Apex class FlowTriggerRecordTest: line 62, column 4: Invalid type: TriggerActionFlowTest.AccountTriggerRecord

  4. Apex compile failure
    Apex class FlowTriggerRecordTest: line 83, column 4: Invalid type: TriggerActionFlowTest.AccountTriggerRecord

Which API version of Salesforce org are you attempting to install into?

Current API Versions:

  1. FlowTriggerRecordTest: 52
  2. TriggerActionFlowTest: 51

What is the API version of the Salesforce org? Not the Apex class.

Is this what you're looking for, if not, can you please point me to where I can find it? Thanks

Salesforce.com Enterprise Web Services API Version 63.0
Generated on 2025-04-08 19:21:27 +0000.

The latest version of the package is installable in API version 63 via the links in the repo, or the explicit install command:

sf package install -p "04tKY000000PdZOYA0" 

What is the value of sourceApiVersion in your sfdx-project.json file?

Thanks, it's "sourceApiVersion": "63.0"

There is no such class called FlowTriggerRecordTest within the current version of the package. I think you may have a very old version of the package installed in your sandbox?

Yes, I believe you're right that it's an old version. Any ideas on how to get the new version installed, we have quite a few triggers on the framework already?

I think you can use the sf package install command’s -t | --upgrade-type parameter, specifying the value as delete.

Delete specifies to delete all removed components, except for custom objects and custom fields, that don’t have dependencies.

This should delete the unused classes.

https://developer.salesforce.com/docs/atlas.en-us.sfdx_cli_reference.meta/sfdx_cli_reference/cli_reference_package_commands_unified.htm#cli_reference_package_install_unified

Closing this issue since we've identified we have a very old install and there are workarounds with the install commands. @mitchspano thanks for the help and this great framework.