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

Issue with Asset Rollup #411

Closed
georgesf7 opened this issue Oct 6, 2016 · 4 comments
Closed

Issue with Asset Rollup #411

georgesf7 opened this issue Oct 6, 2016 · 4 comments

Comments

@georgesf7
Copy link

georgesf7 commented Oct 6, 2016

Hi,

I've created a Lookup Relationship between Asset and Contact. After I deployed the dlrs_AssetTrigger, I can no longer create new Asset record. I've been getting below error whenever I'm creating a new record:
Error: Invalid Data.
Review all error messages below to correct your data.
Apex trigger dlrs_AssetTrigger caused an unexpected exception, contact your administrator: dlrs_AssetTrigger: execution of AfterInsert caused by: dlrs.RollupServiceException: Lookup Rollup Summary 'Asset Rollup' is invalid, your org configuration may have changed.: Class.dlrs.RollupService.createLSFWrapper: line 1150, column 1

However, this doesn't prevent me from editing existing Asset record, and if I remove the dlrs_AssetTrigger, I can create Asset record again.
I've turned on debug, and can't find anything particularly useful.

Thanks.

George

@georgesf7
Copy link
Author

Here's the debug log
apex-07L55000007ino6EAA.log.zip

@georgesf7
Copy link
Author

resolved the issue, looks like the "Asset Rollup" metadata was "stuck" even though the rollup record was deleted. So I removed it manually from Setup.

@afawcett
Copy link
Collaborator

Hmmmm what do you mean by stuck?

@afawcett
Copy link
Collaborator

afawcett commented Jan 1, 2017

Ah i see what you might have ment. I think you deleted the shadow rollup record without the metadata record. Actually the mistake was not deleting the metadata record, if you do this first in future things should be fine.

@afawcett afawcett closed this as completed Jan 1, 2017
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