SFDO-Community/declarative-lookup-rollup-summaries

Type name too long, maximum length is 40

mobrienffdc opened this issue · 12 comments

Getting the following error when trying to Deploy the trigger:

ERROR
Error:
classes/dlrs_ffrr_RevenueRecognitionTransactionLineTest.cls (Line: 5: Column:15) : Type name too long, maximum length is 40: dlrs_ffrr_RevenueRecognitionTransactionLineTest

Any way to work around the 40 character limit?

found a work around. I copied the Class section of the text generated by the Manage Child Trigger button and pasted it into a "New" class and shortened the class name to make it less than 40 characters. Then did the same with the trigger text and created a trigger. AND it actually worked which is amazing cause I don't know anything about apex code...just a dangerous hacker of an Accountant!

Ha very good! You will need to use a ChangeSet to deploy to Production though. Meanwhile I'll work on a fix for ya!

First of all - I love this Application!!! Thank you for making it available.

I was able to create and deploy the trigger, however I could not activate the roll-up summary because it does not recognize that I enabled the trigger. Thoughts?

So you have deployed a shortened version of the trigger manually and now are attempting to activate it?

Yes manfully activating the roll up summary.

Ok, so currently you cannot activate, is that correct?

Does the trigger name matter? Should the shortened name be just the first 40 characters of what DLRS would have used?

Yes that is correct.When I try and activate it, I get an error.

error_rollup

@chalemic I tried that and it did not work.

Guys I'm working on a release right at this moment, this is one of two issues I want to sort. I'm hoping for a release sometime this week, subject to work and other personal commitments, fingers crossed!

Thanks for the update @afawcett !

Fixed in v1.10.