Skip to main content

Module : https://trailhead.salesforce.com/content/learn/modules/unlocked-packages-for-customers/build-your-first-unlocked-package?trail_id=sfdx_get_started

 

I did all the step (with success) before trying to create the package version with the module command :

sfdx force:package:version:create -p dreamhouse -d force-app -k test1234 --wait 10 -v DevHub

 

But i have this error :

 

ERROR running force:package:version:create:  Multiple errors occurred: (1) Property__c-Property Layout: In field: field - no CustomField named Property__c.Address__c found (2) Broker__c-Broker Layout: In field: field - no CustomField named Broker__c.Picture_IMG__c found (3) TestPropertyController: Field does not exist: Beds__c on Property__c (4) TestPropertyController: Field does not exist: Price__c on Property__c (5) SampleDataController: Variable does not exist: Date_Listed__c (6) PropertyController: Address__c,                 ^ ERROR at Row:4:Column:17 No such column 'Address__c' on entity 'Property__c'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names. (7) TestPropertyController: Field does not exist: Baths__c on Property__c (8) TestSampleDataController: Dependent class is invalid and needs recompilation:  Class SampleDataController : Variable does not exist: Date_Listed__c (9) PropertyController: OR City__c LIKE :searchPattern                    ^ ERROR at Row:6:Column:20 No such column 'City__c' on entity 'Property__c'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names. (10) dreamhouse: In field: field - no CustomField named Broker__c.Broker_Id__c found (11) daysOnMarket: Référence non valide Property__c.Date_Listed__c de type sobjectField dans le fichier daysOnMarket.js Référence non valide Property__c.Days_On_Market__c de type sobjectField dans le fichier daysOnMarket.js (12) daysOnMarket: Référence non valide Property__c.Date_Listed__c de type sobjectField dans le fichier daysOnMarket.js Référence non valide Property__c.Days_On_Market__c de type sobjectField dans le fichier daysOnMarket.js (13) auraPropertyListMap: Invalid definition for PropertyController: ApexService.getType() return null with currentNamespace: c, namespace: null, name: PropertyController (14) Broker__c: In field: defaultCompactLayoutAssignment - no CompactLayout named Broker__c.Broker_Compact found (15) Property__c: In field: defaultCompactLayoutAssignment - no CompactLayout named Property__c.Property_Compact_Layout found (16) Broker_Record_Page: Component [force:relatedListSingleContainer] attribute [relatedListApiName]: Could not find related list [Properties__r] for entity [Broker__c] (17) Property_Record_Page: Le champ Days_On_Market__c n'existe pas. Vérifiez l'orthographe. (18) Create_property: create_property (Créer des enregistrements) - Le champ "Address__c" de l'objet "Property__c" n'existe pas.

 

I don't understand because these metadata are in "force-app" folder, that is referenced in sfdx-project.json for the package :

 

{

    "packageDirectories": [

        {

            "path": "force-app",

            "default": true,

            "package": "dreamhouse",

            "versionName": "Version 1.0",

            "versionNumber": "1.0.0.NEXT"

        }

    ],

    "namespace": "",

    "sfdcLoginUrl": "https://login.salesforce.com",

    "sourceApiVersion": "55.0",

    "packageAliases": {

        "dreamhouse": "0Ho7S000000XZB5SAO"

    }

}

12 risposte
0/9000