SalesforceCommerceCloud / b2c-crm-sync

... a contemporary perspective on how to integrate B2C Commerce and the Salesforce Customer 360 Platform to power frictionless customer experiences in the B2C domain.
https://salesforcecommercecloud.github.io/b2c-crm-sync/
BSD 3-Clause "New" or "Revised" License
65 stars 45 forks source link

npm run crm-sync:sf:org:deploy is failing #136

Open neeraj-jain01 opened 2 years ago

neeraj-jain01 commented 2 years ago

-- deploying the base meta-data to the specified Salesforce Org; please standby deployArguments { _rejectOnError: true, sourcepath: './src/sfdc/base' }

,----------------------------------------------------------------------.
88888888888 88
88 88
88 88
88aaaaa 8b,dPPYba, 8b,dPPYba, ,adPPYba, 8b,dPPYba, 88
88""""" 88P' "Y8 88P' "Y8 a8" "8a 88P' "Y8 88
88 88 88 8b d8 88 ""
88 88 88 "8a, ,a8" 88 aa
88888888888 88 88 `"YbbdP"' 88 88
Oh no! Not one of these :(
It looks like you've run into an error or exception.
Please log an issue via
https://github.com/SalesforceCommerceCloud/b2c-crm-sync/issues.
That's the best way to engage us. Thank you for your support!

`----------------------------------------------------------------------'

[ { "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

ashumahajan-ceo commented 2 years ago

Neeraj, were you able to get any solution? I am facing the same error.

neeraj-jain01 commented 2 years ago

Hi @ashusapient - No. Not yet.

jbachelet commented 2 years ago

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

ashumahajan-ceo commented 2 years ago

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

Ivan-Melnyk commented 1 year ago

Having similar issue:

[ { "stack": "DeployFailed: Deploy failed.\n at C:\Users\Ivan\Documents\BitBucket\Astound\b2c-crm-sync\node_modules\salesforce-alm\dist\lib\source\sourceApiCommand.js:71:31\n at async SourceDeployCommand.execLegacyCommand (C:\Users\Ivan\Documents\BitBucket\Astound\b2c-crm-sync\node_modules\salesforce-alm\dist\ToolbeltCommand.js:149:29)\n at async SourceDeployCommand.run (C:\Users\Ivan\Documents\BitBucket\Astound\b2c-crm-sync\node_modules\salesforce-alm\dist\commands\force\source\deploy.js:32:16)\n at async SourceDeployCommand._run (C:\Users\Ivan\Documents\BitBucket\Astound\b2c-crm-sync\node_modules\@salesforce\command\lib\sfdxCommand.js:81:40)", "message": "Deploy failed.", "name": "DeployFailed", "actions": [ "Check the order of your dependencies and ensure all metadata is included." ], "exitCode": 1, "columns": [ { "key": "problemType", "label": "TYPE" }, { "key": "filePath", "label": "PROJECT PATH" }, { "key": "error", "label": "PROBLEM" } ], "data": [ { "columnNumber": "16", "lineNumber": "770", "error": "Could not resolve list view column: ACCOUNT.RECORDTYPE (770:16)", "fullName": "Contact.Non_B2C_Commerce_Customer_Profiles", "type": "ListView", "filePath": "src\sfdc\base\main\default\objects\Contact\listViews\Non_B2C_Commerce_Customer_Profiles.listView-meta.xml", "problemType": "Error", "height": 1 }, { "error": "lookupPhoneDialogsAdditionalFields ACCOUNT.PHONE1 not found", "fullName": "Contact", "type": "CustomObject", "filePath": "src\sfdc\base\main\default\objects\Contact\Contact.object-meta.xml", "problemType": "Error", "height": 1 } ], "commandName": "SourceDeployCommand", "code": "Error" } ]

CRM-SYNC | v0.9.0 | crm-sync:sf:deploy: END

Ivan-Melnyk commented 1 year ago

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