• Michal
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 4
    Replies

Hello,
I have problem with third party unmanaged package(s) pkb_* - Public Knowledge Base. It contains errors in test classes: pkb_Test and pkb_mobile_Test - their unit tests fail. In both the cases (classes) problem seems to be with method:
populatePKB2Environment() and code:
String q = 'select ' +pkb_Controller.join(pkb_Controller.kavFields, ',')+ ' from KnowledgeArticleVersion where Id = \'' +kavObj.get('Id')+ '\' and PublishStatus = :publishStatus';
kavObj = (KnowledgeArticleVersion)Database.query(q);
The error message is "System.QueryException: List has no rows for assignment to SObject"
I tried to fix them but seems that they are non-writeable. Additionally the package lowers overall coverage to 58% so I'm not able to deploy any chnages e.g. to my. triggers which are correct and have coverage about 90%.
As far as I know Public Knowledge Base is in use and this time cannot be just uninstalled.
How can I make any changes to my triggers and test classes in such situation? (I tried Force.com eclipse plugin, developers console as well as incoming/outgoing packages method)
BTW, how was it possible to install the package if its unit tests failed?
Regards,
Michal

  • September 09, 2013
  • Like
  • 0

Hello,
I have problem with third party unmanaged package(s) pkb_* - Public Knowledge Base. It contains errors in test classes: pkb_Test and pkb_mobile_Test - their unit tests fail. In both the cases (classes) problem seems to be with method:
populatePKB2Environment() and code:
String q = 'select ' +pkb_Controller.join(pkb_Controller.kavFields, ',')+ ' from KnowledgeArticleVersion where Id = \'' +kavObj.get('Id')+ '\' and PublishStatus = :publishStatus';
kavObj = (KnowledgeArticleVersion)Database.query(q);
The error message is "System.QueryException: List has no rows for assignment to SObject"
I tried to fix them but seems that they are non-writeable. Additionally the package lowers overall coverage to 58% so I'm not able to deploy any chnages e.g. to my. triggers which are correct and have coverage about 90%.
As far as I know Public Knowledge Base is in use and this time cannot be just uninstalled.
How can I make any changes to my triggers and test classes in such situation? (I tried Force.com eclipse plugin, developers console as well as incoming/outgoing packages method)
BTW, how was it possible to install the package if its unit tests failed?
Regards,
Michal

  • September 09, 2013
  • Like
  • 0

Hi..

Need some help here...Im using API to insert Task. But every time I create task using API the email notification will not be send to the Owner of the TASK. Even I set send email notification as default in UI, when I try to load using API its still not work...

 

Appreciate if anyone can give me an advise or guideline regarding this issue.

 

Thank you in advance!

Message Edited by Ninie on 07-09-2009 02:34 AM
  • July 09, 2009
  • Like
  • 0