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

Error Deploying Apex Trigger and Apex Class #750

Closed
jttrieu opened this issue Sep 21, 2018 · 3 comments
Closed

Error Deploying Apex Trigger and Apex Class #750

jttrieu opened this issue Sep 21, 2018 · 3 comments

Comments

@jttrieu
Copy link

jttrieu commented Sep 21, 2018

Getting this error when deploying DLRS for custom object:

| Error:dlrs_BillingScheduleTest.testTrigger System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, BillingScheduleCalloutTrigger: execution of BeforeInsert caused by: System.QueryException: List has no rows for assignment to SObject Class.BillingScheduleInvoiceNSCalloutClass.setCurrency: line 191, column 1 Trigger.BillingScheduleCalloutTrigger: line 43, column 1: [] Class.dlrs.RollupService.testHandler: line 272, column 1 Class.dlrs_BillingScheduleTest.testTrigger: line 11, column 1
-- | --

Warning:
dlrs_BillingScheduleTrigger:Test coverage of selected Apex Trigger is 0%, at least 75% test coverage is required

manage apex trigger error

@jamiesbartlett
Copy link

I am receiving the same error. Everything works in the sandbox but when in production, I cannot deploy my child trigger. Looking forward to any feedback!

@aheber
Copy link
Contributor

aheber commented Oct 1, 2018

@jttrieu it looks like the auto-generated test class isn't creating enough data for the surrounding processes to complete. Either someone will have to develop some more complete test code (setting up the necessary supporting objects most likely) or the other code will have to be adapted to function when the supporting objects are empty.

@afawcett
Copy link
Collaborator

@jttrieu hopefully your sorted now. For future reference this wiki page has more info > https://github.com/afawcett/declarative-lookup-rollup-summaries/wiki/Challenges-with-Code-Coverage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants