function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
tcsellstcsells 

Package Visibility Error

I have a call to a class in a managed package that seems to have stopped working either due to an upgrade from the vendor, or the upgraded SF API.  The error is “Package Visibility: Type is not visible: …”

 

The version settings on my class says it is using SF API 27.0.  The version settings on the vendor’s class says SF API version 24.0.  Is this causing my error?  If so, what do I need to do to my class to get it to use the older API version?

 

Thanks for any help you can give.

 

Todd

Sridhar BonagiriSridhar Bonagiri

Hi,

 

I think it is not with the API Version, it is with the class declaration. If the class has been declared public it will not be visible out side the package, the class will be visible outside the package when it is declared as global only.

 

Regards,

Sridhar Bonagiri

If this post is your solution, kindly mark this as the solution and give Kudos.

 

tcsellstcsells

Thanks for your reply, Sridhar.  The class is definitely a global class, so I don't think that is the issue.  I have tried every different kind of declaration in my code that I can think of, and I still get the error.