Open neeraj-jain01 opened 2 years ago
Neeraj, were you able to get any solution? I am facing the same error.
Hi @ashusapient - No. Not yet.
Hello @neeraj-jain01 ,
Thank you for opening an issue here.
Can you please provide more context?
Would you be able ot run sfdx force:source:deploy -p "src/sfdc/base"
and give the error output?
Thanks
If I run the comand you mentioned. here is the output
On trying to deploy manually using command: sfdx force:source:deploy -p src/sfdc/base I get following error
Deploying v52.0 metadata with SOAP API v53.0 connection Deploy ID: 0Af5G00001PcnIoSAJ DEPLOY PROGRESS | ████████████████████████████████████████ | 600/600 Components
=== Component Failures [4] Type Name Problem ───── ────────────────────────────────────── ─────────────────────────────────────────────────────────────────────────────────────────────── Error Account.B2C_Commerce_Customer_Profiles In field: RecordType - no RecordType named Account.B2CBusinessAccount found (277:18) Error B2C_CRM_SYNC In field: recordType - no RecordType named Account.B2CBusinessAccount found (1229:29) Error Account.B2CBusinessAccount The label:B2C Business Account on record type:Account.B2CBusinessAccount is not unique (284:18) Error Case ReadWriteTransfer is not a valid sharing model for Case when Account sharing model is Private
Having similar issue:
Not sure whether it is right solution or not, but when I was running sfdx force:source:deploy -p "./src/sfdc/base"
command it showed me exact issue, I removed those fields in the Objects and it worked.
Removed fields:
ACCOUNT.PHONE1
from \src\sfdc\base\main\default\objects\Contact\Contact.object-meta.xml
ACCOUNT.RECORDTYPE
, ACCOUNT.TYPE
from \src\sfdc\base\main\default\objects\Contact\listViews\Non_B2C_Commerce_Customer_Profiles.listView-meta.xml
-- deploying the base meta-data to the specified Salesforce Org; please standby deployArguments { _rejectOnError: true, sourcepath: './src/sfdc/base' }
`----------------------------------------------------------------------'
[ { "stack": "DeployFailed: Deploy failed.\n at DeployResultFormatter.display (/Users/neeraj.jain/b2c-crm-sync-master/node_modules/@salesforce/plugin-source/lib/formatters/deployResultFormatter.js:61:19)\n at Deploy.formatResult (/Users/neeraj.jain/b2c-crm-sync-master/node_modules/@salesforce/plugin-source/lib/commands/force/source/deploy.js:127:23)\n at Deploy.run (/Users/neeraj.jain/b2c-crm-sync-master/node_modules/@salesforce/plugin-source/lib/commands/force/source/deploy.js:40:21)\n at processTicksAndRejections (node:internal/process/task_queues:93:5)\n at async Deploy._run (/Users/neeraj.jain/b2c-crm-sync-master/node_modules/@salesforce/command/lib/sfdxCommand.js:81:40)", "message": "Deploy failed.", "name": "DeployFailed", "exitCode": 1, "commandName": "Deploy", "code": "Error" } ]
CRM-SYNC | v0.9.0 | crm-sync:sf:deploy: END