-
Notifications
You must be signed in to change notification settings - Fork 238
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
"Apex Trigger .. has not been deployed"; too restrictive for dev-to-stage-to-prod workflow #94
Comments
It should match on the name of the trigger (derived from the child object name). When it deploys the trigger its using the same Metadata API that your Ant solution is using. So i'm confused. If you let DLRS deploy in production does it use a different trigger name? |
@cropredy Any thoughts on my last comment, can you confirm the generated name of the trigger and class is the same in both sandbox and production? |
trigger names were identical between Dev sandbox and stage sandbox - as they would be when deploying via Ant -- I could see the triggers in Stage Sandbox Setup | Develop | Triggers and the sobject name was the same between dev sandbox and stage sandbox. |
The validation when setting the Activate checkbox simply looks up on the ApexTrigger object for the name of the trigger as specified in the error message. So your saying you get something like this...
And yet you can clearly see under Setup > Develop > Triggers, that dlrs_MyObjectTrigger exists? Can you confirm the exact error message? As there is a potential problem when the logic has to truncate the apex trigger name due to max 32 character trigger names. |
hello Andrew, Thanks so much for your answer I can go further now But i have another problem, hihi Message below If you ever have some times to tell me what i do wrong;-) Deployment CompleteTest failure, method:
Test failure, method: RollupControllerTest.testDeployedStatus -- Test failure, method: RollupServiceTest.testCountById -- Test failure, method: RollupServiceTest.testCountByType -- Test failure, method: Test failure, method: RollupServiceTest.testMultiRollup -- Test failure, method: Test failure, method: RollupServiceTest.testMultiRollupNoConditions -- Test failure, method: RollupServiceTest.testMultiRollupWithTwoParents Test failure, method: Test failure, method: RollupServiceTest2.testChangeInRelationship -- Test failure, method: Test failure, method: RollupServiceTest2.testMultiRollupOneScheduled Test failure, method: Test failure, method: RollupServiceTest2.testScheduleItemsAndLogs -- Test failure, method: RollupServiceTest3.testCalculateJob -- Test failure, method: RollupServiceTest2.testUnDeleteRealtime -- Test failure, method: RollupServiceTest3.testCalculateJobNotActive -- Test failure, method: Test failure, method: RollupServiceTest3.testDateRollupDeleteChild -- Test failure, method: RollupServiceTest3.testDeveloperAPI -- Test failure, method: Test failure, method: Test failure, method: Test failure, method: Code coverage issue, class: RollupServiceTest2Trigger -- Test coverage |
What are you trying to do here? Install the tool? |
exactly :-) if you have any clue? Oliver
|
Unless your editing the code, i would recommend in both sandbox and production that you install the packaged version of the tool? https://github.com/afawcett/declarative-lookup-rollup-summaries#packaged-release-history |
Thanks Andrew it's what i tried with your GithUb deploy to Salesforce Button. Thanks Oliver On 22 December 2014 at 16:07, Andrew Fawcett [email protected]
|
Yes the GitHub Deploy to Salesforce Button is only for developers intending to edit / customise the code or add features to submit back. If your only using the tool, please use the package install links, you will not get these problems. |
Thanks a lot Andrew, Sorry to ask, i just dont understand what is the "package install link" Do i need this bad Eclipse software then? :-( Thanks Oliver On 22 December 2014 at 16:28, Andrew Fawcett [email protected]
|
No, not at all, you simply click the package install link here and follow the prompts to install into your org. No need for any tools at all. |
waooo, great, thanks a lot i feel dumb! best Oliver On 22 December 2014 at 16:32, Andrew Fawcett [email protected]
|
Andrew -- looks like you closed this issue but because it got conflated with oavon's issue. To your question:
Answer: YES, that is the error I got. And yes, the trigger was in Setup | Develop | Triggers. This is the trigger name: |
Yes your correct trigger and apex class name is 255, either way, its not truncating it, so my theory as to what is going on is not sound. So my next suggestion would be to enable subscriber support in the org refusing to activate the rollup. So that i can go in, reproduce it and grab a debug log with the full code trace in it. Would you be able to enable that and give me the org id? |
This may be tricky for me to set up as I worked around the issue as originally stated. Give me some time here and I'll let you know when I can reproduce |
OK, here is some more info but not exactly what you asked for as I can't give you access to these orgs
dlrs Stack Trace
So, I'm baffled -- the trigger exists in all envs, the testclass exists in all envs, but when we try to mock a DLRS row via a testmethod with seeAllData=false, we get the error in #4 above - but only in PROD now |
Are you stilling getting this issue with your DLRS test? Have you got the latest release? |
Also can you try to do upsert the DLRS records one by one, instread of in bulk as your doing via upsert dlrsNameToDlrsMap.values(); |
@cropredy Sorry this one is dragging, any thoughts on my latest questions? |
Sorry for the late reply, i've been on holiday. Can you include a screenshot of the Lead to Task trigger activation error as well please? Also if you run MCSubscriberTest test via the standard Salesforce Setup or Developer Console UI does give the same error? |
Hi Andrew. Victoria and I work together - we resolved the first issue that she sent over, but now were running into a different issue. We love the app, so hopefully this can be resolved. Our client is using the nonprofit starter pack and trying to convert a lead to a contact that already exists. They're getting a DLRS error. |
Hmmm i thing there is something special about Leads and Tasks around this tool, i've seen a few other issues crop up recently. Can you send me a screen shot of the rollup/s you have, i'd like to try and replicate. Also the steps your doing to get to the above screen, as i am not a big CRM app expert. |
Here's a screen shot: Were just creating a lead; clicking convert which brings you to the lead I want this to work so badly, we need it for so many of our analytics. Your Danielle Lutsky Director of Consulting On Sat, Jun 6, 2015 at 5:02 AM, Andrew Fawcett [email protected]
|
Wow this is a complex setup, any chance i can login via Subscriber Support and grab a debug log? If you r ok to set this for the next few days, and tell me which Lead to click Convert on, i'll see what i can see from the Debug Log. |
I just granted you log in access. Im not sure its the complexity of the org thats affectng things; its Danielle Lutsky Director of Consulting On Mon, Jun 8, 2015 at 3:20 PM, Andrew Fawcett [email protected]
|
I've recently written up some shared details on the code coverage issue described in this case, please check the details here and comment at the bottom of the wiki page. |
Thank you andrew! I'll check this out! Danielle Lutsky Director of Consulting office: (718) 392-3085 cell: (917) 438-8553 Please note that I will be out of the office from June 27-30th, and July On Wed, Jul 1, 2015 at 2:57 PM, Andrew Fawcett [email protected]
|
Thanks, i've been reviewing this issue and its morphed several times from one issue to another, so i am going to close it now. Would you mind opening a new issue if you do happen to still have a problem. Thanks and appreciated. |
Here's our deployment model:
Oops - won't work as DLRS returns this error:
Error: Apex Trigger dlrs_xxxTrigger has not been deployed. Click Manage Child Trigger and try again.
where xxx is the name of the child object
But the trigger/test class are deployed, but not via DLRS, but via the Ant build
The only way around this is to delete (or never include in the ant build) the trigger/test class and then deploy via the Manage Child Trigger button in Stage sandbox (and PROD)
So, suggestion(s):
The text was updated successfully, but these errors were encountered: