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

[BUG] ... npm run crm-sync:sf:org:deploy #206

Closed Verwest89 closed 1 year ago

Verwest89 commented 1 year ago

Describe the bug When running the line npm run crm-sync:sf:org:deploy (Deploy the b2c-crm-sync Application Code to Your Salesforce Org Stage), i'm getting an error message: [ { "stack": "DeployFailed: Deploy failed.\n at DeployResultFormatter.display (...\Desktop\VS Projects\b2c-crm-sync\node_modules\@salesforce\plugin-source\lib\formatters\deployResultFormatter.js:68:19)\n at Deploy.formatResult (...\Desktop\VS Projects\b2c-crm-sync\node_modules\@salesforce\plugin-source\lib\commands\force\source\deploy.js:150:23)\n at Deploy.run (...\Desktop\VS Projects\b2c-crm-sync\node_modules\@salesforce\plugin-source\lib\commands\force\source\deploy.js:35:21)\n at runMicrotasks ()\n at processTicksAndRejections (node:internal/process/task_queues:93:5)\n at async Deploy._run (..\Desktop\VS Projects\b2c-crm-sync\node_modules\@salesforce\command\lib\sfdxCommand.js:102:40)", "message": "Deploy failed.", "name": "DeployFailed", "exitCode": 1, "context": "Deploy" } ]

My .env file config seems fine. When running the commend lines npm run crm-sync:b2c:verify i'm getting success message and when I run npm run crm-sync:sf:auth:usercreds i'm getting Auth token.

To Reproduce Steps to reproduce the behavior: run the line npm run crm-sync:sf:org:deplo

Expected behavior Metadata components should be deployed the SF and CC orgs.

Screenshots

Error

Your local environment details:

Your remote environment details:

Verwest89 commented 1 year ago

The error was due to the following: Your org doesn't have access to component runtime_sales_social:socialPanel.

to solve: Salesforce -> Setup > "Social Accounts and Contacts Settings" = Enable