You need to sign in to do that
Don't have an account?
Merri Furlong
We Enabled Chatter Answers and now have Code Coverage Issues (Known Issue)
I was directed here by SFDC Support when I created a case in the regular support site. We enabled Chatter Answers and now our developers are not able to deploy code due to an error in the test coverage for custom triggers created by Chatter Answers.
I found a technote that says this is a known issue: and SFDC can send us a corrected test class.
Here is the link describing the known issue. Please send us corrected test class for Chatter Answers. I was shocked that enabling that check box created code coverage issues for us. The trigger also assumes there is a QuestionID field and a CommunityID field in the case object. Do we need to add those custom fields manually for Chatter Answers to work?
https://success.salesforce.com/answers?id=90630000000hXAqAAM
ChatterAnswerEscalationTriggerTest error when trying to deploy custom code.
Trying to deploy code we get the error that we cannot deploy our custom code. ChatterAnswersEscalationTriggerTest.validateQuestionEscalation() Class 16 1 Failure Message: "System.DmlException: Update failed. First exception on row 0 with id 90680000000GqQ5AAK; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, chatter_answers_question_escalation_to_case_trigger: execution of AfterUpdate caused by: System.EmailException: SendEmail failed. First exception on row 0; first error: IN...
I found a technote that says this is a known issue: and SFDC can send us a corrected test class.
Here is the link describing the known issue. Please send us corrected test class for Chatter Answers. I was shocked that enabling that check box created code coverage issues for us. The trigger also assumes there is a QuestionID field and a CommunityID field in the case object. Do we need to add those custom fields manually for Chatter Answers to work?
https://success.salesforce.com/answers?id=90630000000hXAqAAM
ChatterAnswerEscalationTriggerTest error when trying to deploy custom code.
Trying to deploy code we get the error that we cannot deploy our custom code. ChatterAnswersEscalationTriggerTest.validateQuestionEscalation() Class 16 1 Failure Message: "System.DmlException: Update failed. First exception on row 0 with id 90680000000GqQ5AAK; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, chatter_answers_question_escalation_to_case_trigger: execution of AfterUpdate caused by: System.EmailException: SendEmail failed. First exception on row 0; first error: IN...
Your dev team or person should be able to fix this problem by deleting all the classes and trigger in one fell swoop: http://salesforce.stackexchange.com/questions/14559/disabling-chatter-answers/15529#15529
My issue is that I can't access a trigger (that needs to be deleted) and so my two options are 1) fix the whole thing with code 2) figure out why I can't access the trigger even though my permissions seem fine.
Let me know if the above link is helpful.
Here is a similar thread too that might give some background: https://developer.salesforce.com/forums?id=906F00000008pUeIAI
L
All Answers
You should change the trigger as well it's test class to resolve this issue.
Please use the below code.
Trigger (chatter_answers_question_escalation_to_case_trigger):
Apex Class(ChatterAnswersEscalationTriggerTest):
Please mark as best answer if it solves your problem.
Regards,
Grazitti Team,
www.grazitti.com
Your dev team or person should be able to fix this problem by deleting all the classes and trigger in one fell swoop: http://salesforce.stackexchange.com/questions/14559/disabling-chatter-answers/15529#15529
My issue is that I can't access a trigger (that needs to be deleted) and so my two options are 1) fix the whole thing with code 2) figure out why I can't access the trigger even though my permissions seem fine.
Let me know if the above link is helpful.
Here is a similar thread too that might give some background: https://developer.salesforce.com/forums?id=906F00000008pUeIAI
L
System.QueryException: List has no rows for assignment to SObject
Stack Trace: Class.ChatterAnswersEscalationTriggerTest.validateQuestionEscalation: line 25, column 1
Any ideas on what I am doing wrong?