... a contemporary perspective on how to integrate B2C Commerce and the Salesforce Customer 360 Platform to power frictionless customer experiences in the B2C domain.
Describe the bug
The deploy to the Trial Org (login.salesforce.com) failed with the following message.
To Reproduce
Steps to reproduce the behavior:
Initial Error by running the comand: [rmaity@rmaity-ltm2 02/23/22 11:18:58 ~/sfcc/projects/b2c-crm-sync/b2c-crm-sync-1.3.0] # npm run crm-sync:sf:org:deploy
[
{
"stack": "DeployFailed: Deploy failed.\n
at DeployResultFormatter.display (/Users/rmaity/sfcc/projects/b2c-crm-sync/b2c-crm-sync-1.3.0/node_modules/@salesforce/plugin-source/lib/formatters/deployResultFormatter.js:62:19)\n
at Deploy.formatResult (/Users/rmaity/sfcc/projects/b2c-crm-sync/b2c-crm-sync-1.3.0/node_modules/@salesforce/plugin-source/lib/commands/force/source/deploy.js:102:23)\n
at Deploy.run (/Users/rmaity/sfcc/projects/b2c-crm-sync/b2c-crm-sync-1.3.0/node_modules/@salesforce/plugin-source/lib/commands/force/source/deploy.js:32:21)\n
at processTicksAndRejections (node:internal/process/task_queues:96:5)\n
at async Deploy._run (/Users/rmaity/sfcc/projects/b2c-crm-sync/b2c-crm-sync-1.3.0/node_modules/@salesforce/command/lib/sfdxCommand.js:81:40)",
"message": "Deploy failed.",
"name": "DeployFailed",
"exitCode": 1,
"commandName": "Deploy",
"code": "Error"
}
]
Execute the command: sfdx force:source:deploy -p src/sfdc/base
See error (below):
*** Deploying v52.0 metadata with SOAP API v53.0 connection ***
Deploy ID: 0AfB000000dUwvJKAS
DEPLOY PROGRESS | ████████████████████████████████████████ | 572/572 Components
=== Component Failures [7]
Type Name Problem
Error TestDataFactory_Test Variable does not exist: Campaign.fields.IsActive (1078:165)
Error TestDataFactory_Test Variable does not exist: Campaign.SObjectType (1078:130)
Error TestDataFactory_Test Variable does not exist: Campaign.fields.IsActive (1020:91)
Error TestDataFactory_Test Variable does not exist: Campaign.SObjectType (1020:56)
Error zzcu117 Use one of these domain formats: example.com, *.example.com, or http://example.com
Error B2C_CRM_JWT In field: apexClass - no ApexClass named TestDataFactory_Test found
Error B2C_CRM_SYNC In field: apexClass - no ApexClass named TestDataFactory_Test found
ERROR running force:source:deploy: Deploy failed.
Expected behavior
Would succeed deployment stages.
Screenshots
N/A
Your local environment details:
Node version (node -v): 15.2.1
NPM version (npm -v): 7.0.8
SFDX version (sfdx -v) sfdx-cli/7.138.1 darwin-x64 node-v16.14.0
Your remote environment details:
Salesforce B2C Commerce version: 21.2
Salesforce Core version: Spring 22
Additional context
Trying CRM Sync setup using default Sandbox with RefArch and RefArchGlobal and SF Trial Org.
Describe the bug The deploy to the Trial Org (login.salesforce.com) failed with the following message.
To Reproduce Steps to reproduce the behavior:
[rmaity@rmaity-ltm2 02/23/22 11:18:58 ~/sfcc/projects/b2c-crm-sync/b2c-crm-sync-1.3.0] # npm run crm-sync:sf:org:deploy
Execute the command:
sfdx force:source:deploy -p src/sfdc/base
See error (below):
Expected behavior Would succeed deployment stages.
Screenshots N/A
Your local environment details:
node -v
):15.2.1
npm -v
):7.0.8
sfdx -v
)sfdx-cli/7.138.1 darwin-x64 node-v16.14.0
Your remote environment details:
Additional context Trying CRM Sync setup using default Sandbox with RefArch and RefArchGlobal and SF Trial Org.
Visit Slack Thread: https://salesforce-internal.slack.com/archives/C01M8DY6DAL/p1645634190002749