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
JPClarkJPClark 

Package Upload Error

All the Unit Tests pass, but ... 

I'm attempting to upload an UNMANAGED package from a development ORG and I get this message each time for a unit test class:

 

Package Upload Error

There are problems that prevent this package from being uploaded.

  

Component Type      NameProblem
Apex Class                            <Name of test class>                  line -1, column -1 

 

I remove the test class from the package and try to upload and it fails on another test class.

This wasn't a problem until we built a managed package. Now it seems impossible to get a package to upload.

This occurs after the propmt to enter the version number and description (which occurs after the unit testing).

 

Can making a managed package stop you from creating unmanaged packages?

JPClarkJPClark
p.s - I was just able to upload the Managed package without a problem
shillyershillyer

You should be able to upload managed and unmanaged packages from your DE org. Since the managed package works, I'm wondering if you've added all the same components to the unmanaged package.

 

Best,

Sati

JPClarkJPClark

Sati, thanks for the reply.

 

 

Ok, I went back and forth between the packages

Managed - Successfully uploads

Unmanaged - Fails every time I try to upload.

 

There were a few extra small items in the Unmanaged package, which were not in the Managed Package (a VF page used for testing a component), and I removed them. Added back in the test programs that I removed before. So, as far as I could tell the package definitions match.

 

(What I wouldn't give for a CLONE button on the package)

 

 

Retested the unmanaged upload.    FAILED again.