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
Mansa Systems 5Mansa Systems 5 

Package Upload Failed


We are trying to build a package and it is showing Package Upload Failed even after having overall Coverage 80% which is greater than the required 75%.
Error Message : Average test coverage across all Apex Classes and Triggers is 74%, at least 75% test coverage is required.

Org ID: 00D90000000KenM ( Salesforce Support Reference)
Swagato RaySwagato Ray
Hi ,
Please check if you have any uncovered (0%) class or trigger are still there or not.
Juan SpagnoliJuan Spagnoli
Check if you added all your test in to the package. They are not automatically added because they are not referenced by components.
Mansa Systems 5Mansa Systems 5
Thanks for the suggestion

All my classes are having a good Coverage and i am adding all the test classes but i am still getting the same error.
Juan SpagnoliJuan Spagnoli
Do you have classes with "SeeAllData" turned on?
Mansa Systems 5Mansa Systems 5
We do not have any seeAllData=true in our test classes and for the update we have increased the test coverage to 85%.

We are still getting the same error.