jamessimone / apex-rollup

Fast, configurable, elastically scaling custom rollup solution. Apex Invocable action, one-liner Apex trigger/CMDT-driven logic, and scheduled Apex-ready.
MIT License
210 stars 30 forks source link

Error upgrading from 1.5.64 to 1.6.6 #548

Closed solo-1234 closed 8 months ago

solo-1234 commented 8 months ago

Hi! I'm trying to upgrade the unmanaged package and I got this error:

Your request to install package "Apex Rollup Flow optimizations continued" was unsuccessful. None of the data or setup information in your [salesforce.com](http://salesforce.com/) organization was affected.

Problem:

1.  Apex compile failure
Apex class RollupSObjectUpdaterTests: line 9, column 5: Constructor not defined: [RollupSObjectUpdater].<Constructor>(Schema.SObjectField)

2.  Apex compile failure
Apex class RollupSObjectUpdaterTests: line 19, column 7: Constructor not defined: [RollupSObjectUpdater].<Constructor>(Schema.SObjectField)

Any ideas how to fix this? TIA

jamessimone commented 8 months ago

I would uninstall the extra test plugin package and do the base package upgrade before reinstalling the updated extra test plugin package

solo-1234 commented 8 months ago

Thanks for responding! That sounds like a good idea, except that I don't have any test packages installed... I just have Apex Rollup and Apex Rollup - Nebula Logger.

solo-1234 commented 8 months ago

In the list of apex classses in setup, RollupSObjectUpdaterTests was created in 2021 and isn't part of any package (no little icon to the left of the class name). Should I delete it?

There are actually a few: RollupTestUtils, RollupRecursionItemTests, RollupQueryBuilderTests, as well.

jamessimone commented 8 months ago

Ah yes - I don't package all of the test classes so the ones that aren't listed as part of a package are safe to delete

solo-1234 commented 8 months ago

That worked - thank you!