You need to sign in to do that
Don't have an account?
J C 36
Error Step 5 when trying to create unmanaged package v. 1.0 in Trailhead Unlocked Packages for customers/build your first unlocked package
Create the package version - Step 5
Following Error:
ERROR: An unexpected error occurred. Please contact Salesforce Support and provide the following error code: 1394095453-59495 (-1373703285).
Anyone know what this is?
DevHub set up; Packaging2 Beta enabled in DevHub; and I have an active GitHub account.
Following Error:
ERROR: An unexpected error occurred. Please contact Salesforce Support and provide the following error code: 1394095453-59495 (-1373703285).
Anyone know what this is?
DevHub set up; Packaging2 Beta enabled in DevHub; and I have an active GitHub account.
ERROR: An unexpected error occurred. Please contact Salesforce Support and provide the following error code: 521499568-435486 (-1373703285).
i tried it multiple times and all the attempts resulted in the same error. I understand that the 2nd gen packages are in Beta version, but how can i resolve this? Below is the command line history
$ git clone https://github.com/dreamhouseapp/dreamhouse-sfdx.git
$ cd dreamhouse-sfdx/
$ sfdx force:org:list
$ sfdx force:org:create --definitionfile config/project-scratch-def.json --durationdays 30 --setalias MyScratchOrg
$ sfdx force:package2:create --name th-dreamhouse --description "My DreamHouse Package" --containeroptions Unlocked --nonamespace --targetdevhubusername DevHub
$ vi sfdx-project.json
$ sfdx force:package2:version:create --directory force-app --wait 10
https://success.salesforce.com/_ui/core/chatter/groups/GroupProfilePage?g=0F9300000009NekCAE&fId=0D53A00003cPaZkSAK
MacBook-Pro-3:dreamhouse-sfdx admin$ sfdx force:package2:create --name th-dreamhouse --description "My DreamHouse Package" --containeroptions Unlocked --nonamespace --targetdevhubusername DevHub
WARNING: The command "force:package2:create" has been deprecated and will be removed in v43.01.0 or later. Use "force:package:create" instead.
ERROR: The package name must be unique for the namespace.
I've tried to install this thing so many times! if the command explicity states not using a namespace, what does this error mean?
I created the unmanaged package for the dreamhouse app in my Developer ORG
sfdx force:package:version:create -p th-dreamhouse -d force-app -k test1234 --wait 10 -v mytrailheadorg
Successfully created the package version [08c41000000XZAMAA4]. Subscriber Package Version Id: 04t41000002eb4TAAQ.
Package Installation URL: https://login.salesforce.com/packaging/installPackage.apexp?p0=04t41000002eb4TAAQ
But when I tried to install
sfdx force:package:install --wait 10 --publishwait 10 --package th-dreamhouse@1.0.0-1 -k test1234 -r -u mytrailheadorg
Got these errors:
ERROR: Encountered errors installing the package!,Installation errors:
1) An object 'Advertise_New_Property-2' of type Flow was named in package.xml, but was not found in zipped directory, Details: Advertise_New_Property-2: An object 'Advertise_New_Property-2' of type Flow was named in package.xml, but was not found in zipped directory
2) An object 'Opportunity_Status_Change-1' of type Flow was named in package.xml, but was not found in zipped directory, Details: Opportunity_Status_Change-1: An object 'Opportunity_Status_Change-1' of type Flow was named in package.xml, but was not found in zipped directory
ERROR: Installation errors:
1) An object 'Advertise_New_Property-2' of type Flow was named in package.xml, but was not found in zipped directory, Details: Advertise_New_Property-2: An object 'Advertise_New_Property-2' of type Flow was named in package.xml, but was not found in zipped directory
2) An object 'Opportunity_Status_Change-1' of type Flow was named in package.xml, but was not found in zipped directory, Details: Opportunity_Status_Change-1: An object 'Opportunity_Status_Change-1' of type Flow was named in package.xml, but was not found in zipped directory.
I'm not sure how to proceed now, I found that is not possible to remove a package from a DevHub, so I can not create the package again
sfdx force:package:create --name th-dreamhouse --description "My DreamHouse Package" --packagetype Unlocked --path force-app --nonamespace --targetdevhubusername mytrailheadorg
ERROR: The package name must be unique for the namespace.
So the other option I'm thinking about is create a new Developer Org, do the whole auth dance again, but then, should I use the spring18 branch of the dreamhouse repo? my current playgrounds and developer orgs are in Winter 19.
Thank you!
BTW, Orlando - if you change the package name in Step 1 of Create the Package - it avoids the error for the name can't be repeated
Martina
- Install the Command Line Interface (CLI)
- Enable Dev Hub (Developer/Trailhead PlayGround) (Setup -> Dev Hub)
- Git Clone the app repository (git clone https://github.com/dreamhouseapp/dreamhouse-sfdx.git)
- Login Your Developer/Trailhead Org (sfdx force:auth:web:login -d -a DevHub)
- Create Package (sfdx force:package:create –name th-dreamhouse –description “My DreamHouse Package” –packagetype Unlocked –path force-app –targetdevhubusername DevHub)
- Create ScratchOrg from Developer/Trailhead Org (sfdx force:org:create –definitionfile config/project-scratch-def.json –durationdays 30 –setalias MyScratchOrg -v DevHub)
- Create Package Version (sfdx force:package:version:create -p th-dreamhouse -d force-app -k test1234 –wait 10 -v DevHub)
- Install the Package to ScratchOrg (sfdx force:package:install –wait 10 –publishwait 10 –package th-dreamhouse@1.0.0-1 -k test1234 -r -u MyScratchOrg)
- Release the Package Version to Developer/Trailhead Org (sfdx force:package:version:promote -p th-dreamhouse@1.0.0-1 -v DevHub)
- Install the Package to Developer/Trailhead Org (sfdx force:package:install –wait 10 –publishwait 10 –package th-dreamhouse@1.0.0-1 -k test1234 -r -u DevHub)
Notes:DevHub – Developer Org Alias Name
MyScratchOrg – Scratch org of DevHub
For More Details:
http://theblogreaders.com/use-salesforce-cli-create-install-package-trailhead-challenge/
Thanks & Regards,
Sakthivel Madesh
Copy the th-dreamhouse ID in your sfdx-project.json file. Should be something like this:
{
"packageDirectories": [
{
"path": "force-app",
"default": true,
"package": "th-dreamhouse",
"versionName": "ver 1.0",
"versionNumber": "1.0.0.NEXT"
}
],
"namespace": "",
"sfdcLoginUrl": "https://login.salesforce.com",
"sourceApiVersion": "44.0",
"packageAliases": {
"th-dreamhouse": "0Ho......",
}
}
Run the following script to create version 1.0.1: sfdx force:package:version:create -p "th-dreamhouse" -d force-app --wait 10 -v your_dev_hub
Once the version is ready you can install it in your trailhead playground.
Hope this helps.
Hi all,
I attempted the work arounds/fixes noted above and get this error when attempting to push a permission set ->
Trailhead url:
Create and Test Scratch Org (https://trailhead.salesforce.com/content/learn/projects/quick-start-salesforce-dx/create-and-test-our-scratch-org)
Command:
What's infuriating is this "15 minute" exercise as taken well over 5x that amount out of my day.Error:
Thanks,M
F/up to my earlier comments.
The step name is:
The error from the CLI:Assign a Permission Set to the DreamHouse App
The Dreamhouse app uses a permission set to provide access. Before you test the app, you need the permission set assigned. With Salesforce DX CLI, you have the ability to assign permission sets remotely.
Assign the permission set by running the command:
I think either the code for the app or for this module is broken as should be inestigated by the appropriate team.