Find your content:

Search form

You are here

Failure in pkb_Controller when running the unit tests on SalesForce

 
Share

We are attempting to deploy some code into a production SalesForce instance. But deployement fail because already installed third party packages are failing the unit test requirements. We get the following error on all existing unit tests.

line -1, column -1: Previous load of class failed: pkb_Controller: line 1, column 24: Entity is not org-accessible

Can you please advice us on how to fix this? and whats causing this error?


Attribution to: SAN

Possible Suggestion/Solution #1

We had the same issue and the root cause was that there were (3) Article Types enabled with the KB2 install and one, Error Message Article Type, was disabled. We were then using only (2) Article Types and the test case was written to address (3). Activating that unneeded type resolved the issue.

The test case just needs to be revised to provide a correct resolution.


Attribution to: cLeBlanc

Possible Suggestion/Solution #2

Please check that the knowledge is enabled in your ORG also check that you are knowledge user if you are deploying the app in production.We have used the PKB and we experienced same issues .This request is for PKB application

And by looking into issue it may be due to the name change of the class in both the instance or the method has been renamed .Please check names of all class in both the instance and also try to run the test one by one to figure out which class has been renamed .


Attribution to: Mohith Shrivastava
This content is remixed from stackoverflow or stackexchange. Please visit https://salesforce.stackexchange.com/questions/3653

My Block Status

My Block Content