I was facing issue while creating managed Package.
Where my managed package has dependecy with one more managed package called Financial Service Cloud.
While Building Package it is failing because of the Dependecy Package newly added pikclist value is not recognized.
I get below error because i have added additional picklist value to FinServ__CustomerType__c and FinServ__KYCStatus__c this field
ERROR running force:package:version:create: Multiple errors occurred:
(1) Account.Application: Picklist value: Consumer in picklist: FinServ__CustomerType__c not found
(2) AbandonedApplications: filters-criteriaItems-Value: Picklist value does not exist
(3) FinancialInstituteBoard: In field: report - no Report named ApprovedApplications found
(4) OpenApplications: filters-criteriaItems-Value: Picklist value does not exist
(5) ApplicationsUnderReview: filters-criteriaItems-Value: Picklist value does not exist
(6) ApprovedApplications: filters-criteriaItems-Value: Picklist value does not exist
(7) ApplicationRecordPage: '{!Record.FinServ__KYCStatus__c}' is a picklist field.'Passed' is an invalid field value.
Here is my sfdx-project.json configuration file, I have kept above field in unpackagedMetadata as referecnce while building but still it not recognize this addtional value while building pakcage
{
"packageDirectories": [
{
"path": "force-app",
"package": "test",
"versionName": "Version 1.0",
"versionNumber": "1.0.0.NEXT",
"default": true,
"unpackagedMetadata": {
"path": "unpackaged"
},
"dependencies": [
{
"subscriberPackageVersionId": "04t1E000001Ir0Q"
},
{
"subscriberPackageVersionId": "04t1E000001Iql5"
}
]
},
{
"path": "unpackaged",
"default": false
}
],
"namespace": "",
"sfdcLoginUrl": "https://login.salesforce.com",
"sourceApiVersion": "51.0",
"packageAliases": {
"XXX": "XXX"
}
}
ANy help should appreciated.