You need to sign in to do that
Don't have an account?
Kim Foster 4
installation error on trailhead module 'build your first unlocked package'
I am experiencing an installation error on step#2 of the 'Install the package version in an org' section of the 'build your first unlocked package' modeule. Up to this point I have completed all steps successfully.
ERROR: Encountered errors installing the package!,Installation errors:
1) (Advertise_New_Property-2) Invalid field name Owner:User for object Property__c, Details: Advertise_New_Property-2: Invalid field name Owner:User for object Property__c
2) Permission Create Property__c depends on permission(s): Read Castle__c, Details: dreamhouse: Permission Create Property__c depends on permission(s): Read Castle__c
ERROR: Installation errors:
1) (Advertise_New_Property-2) Invalid field name Owner:User for object Property__c, Details: Advertise_New_Property-2: Invalid field name Owner:User for object Property__c
2) Permission Create Property__c depends on permission(s): Read Castle__c, Details: dreamhouse: Permission Create Property__c depends on permission(s): Read Castle__c
- I loged into my TP as instructed: sfdx force:auth:web:login -a MyTP
- then I closed the browser
- when I enter this command: sfdx force:package:install -i 04tf40000034hKaAAI -u MyTP -w 10 -p 10
ERROR: Encountered errors installing the package!,Installation errors:
1) (Advertise_New_Property-2) Invalid field name Owner:User for object Property__c, Details: Advertise_New_Property-2: Invalid field name Owner:User for object Property__c
2) Permission Create Property__c depends on permission(s): Read Castle__c, Details: dreamhouse: Permission Create Property__c depends on permission(s): Read Castle__c
ERROR: Installation errors:
1) (Advertise_New_Property-2) Invalid field name Owner:User for object Property__c, Details: Advertise_New_Property-2: Invalid field name Owner:User for object Property__c
2) Permission Create Property__c depends on permission(s): Read Castle__c, Details: dreamhouse: Permission Create Property__c depends on permission(s): Read Castle__c
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 tried the web url installation too same errors, I see you were able to install at the end, what you had to do?