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
David Tissen 7David Tissen 7 

Packaging a connected App

Hi everybody,

I'm trying to package a connected app using SFDX. I'm aware that connected apps are only allowed for managed Packages.
The issue: I have a managed Package! 
 
PS C:\Users\XXX\Documents\GIT\sf.XXXX> sfdx force:package:version:create --package "XXXXX" -x --definitionfile config/project-scratch-def.json --wait 10 -v dldcDevHub 
Request in progress. Sleeping 30 seconds. Will wait a total of 600 more seconds before timing out. Current Status='Queued' 
Request in progress. Sleeping 30 seconds. Will wait a total of 570 more seconds before timing out. Current Status='Initializing' 
Request in progress. Sleeping 30 seconds. Will wait a total of 540 more seconds before timing out. Current Status='Verifying features and settings' 
ERROR running force:package:version:create: XXX: Installing an app (XXX) that has been deleted.



I've searched for hours, no solution. What could be the reason?
Best Answer chosen by David Tissen 7
David Tissen 7David Tissen 7
The Solution is to utilize the Salesforce UI and a First generation Package. Seems not to be possible with second generation packages.