Loading

First-generation (1GP) managed package upload/creation fails with 'Contact email needs to be in a valid email format' error

Date de publication: Sep 8, 2026
Description

When you try to upload or create a first-generation (1GP) managed package in Salesforce, it fails with the following error:

Contact email needs to be in a valid email format

This error message may not always be displayed to the customer. In that case, an error code in the following format may be shown when the package upload or creation fails:

XXXXXXXX-XXXXXX (-153744788)

The "Contact Email" field on the connected apps included in the package may appear to contain a valid email address, but it can become internally invalid, often as a result of an org migration or similar event. Validation then rejects it during package upload or creation.

Résolution

This article explains how to fix the Salesforce error "Contact email needs to be in a valid email format" that blocks a 1GP managed package upload or creation, by re-saving the Contact Email on every connected app included in the package.

How to Reset the Contact Email on a Connected App

Perform the following steps for every connected app included in the package.

  1. Go to Setup and open App Manager.
  2. Click the dropdown arrow next to the target connected app and select Edit.
  3. Change the "Contact Email" value to a different, valid email address, then click Save.
  4. Open Edit again, change the "Contact Email" value back to the original email address, then click Save.

Why This Fixes the Error

This resets the field's internal state so that it passes validation successfully. If the package contains multiple connected apps, repeat these steps for each one.

Numéro d’article de la base de connaissances

005459318

 
Chargement
Salesforce Help | Article