Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculate new roll up failing on "The rollup must be Active before you can run a Calculate job" #511

Closed
astehman-summa opened this issue Jun 2, 2017 · 6 comments

Comments

@astehman-summa
Copy link

astehman-summa commented Jun 2, 2017

OK I've tried poking around to find this answer and not having much luck.

I created a new rollup on a self-referencing object (parent/child) where the parent value rolls up values on its children.

I then tried to run calculate, like the instructions say to do, to backfill existing records.

But when I did, I got that error.
dlrs_error_calculate_job_rollup_must_be_active

@astehman-summa
Copy link
Author

As a note, I attempted to run it again, just to see what would happen, after unsuccessfully poking around for answers and looking for something to activate. Oddly, I got the error that it was already executing:

dlrs_error_calculate_job_rollup_second_attempt_alreadyrunning

@afawcett
Copy link
Collaborator

afawcett commented Jun 5, 2017

@astehman-summa Are you running the latest release v2.9? Can you check the Calculate Rollup Jobs tab to see if you have a record for your rollup? If there is a record still present and your calculate job is not running (see Apex Jobs under Setup) then delete it. Let me know though, since my expectation is that the Calculate Jobs record should be deleted automatically.

@astehman-summa
Copy link
Author

astehman-summa commented Jun 5, 2017

Hi Andy,

I went through the standard interface via "Lookup Rollup Summaries" and just re-created the rollup. That worked. I was using 2.9 which is what was available from the link on github.

Following these instructions, there was a Lookup Rollup Calculate Job, and yes nothing was running, just one job completed last night (technically) which was likely the one from this most recently created roll up.

So now I have one rollup under "Lookup Rollup Summaries" (Subproject Value Rollup) which **does work ** and one under "Manage Lookup Rollup Summaries - Custom Metadata Pilot" (Project Value) that does not work.

I am sticking with the non-pilot tab for now. Any other advice?

@afawcett
Copy link
Collaborator

afawcett commented Jun 5, 2017

Ok, this could be a bug then, can you confirm if the remaining record in the Calculate Job is for the Manage Lookup Rollup Summaries defined rollup?

@afawcett
Copy link
Collaborator

afawcett commented Jun 13, 2017

So i have found a bug, that if you attempt to run Calculate on a Custom Metadata or Custom Object based rollup and it is not active, you get the above error message in your first post. Which is correct, but...

It leaves a rollup job record, which needs deleting manually before you can try again (after ticking the Active checkbox on the record). I've done some more testing and the record does get deleted after the job completes. So i will leave this open for the initial press of Calculate button when a rollup is not Active scenario...

If you could at some point delete the job record and try your custom metadata based rollup again and tell me if your results match, in that the calc job record should be deleted.

@afawcett
Copy link
Collaborator

afawcett commented Jan 1, 2018

Fixed in v2.10

@afawcett afawcett closed this as completed Jan 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants