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] Deploy Failed to Dev Org or Trial Org #128

Open rmaity opened 2 years ago

rmaity commented 2 years ago

Describe the bug The deploy to the Trial Org (login.salesforce.com) failed with the following message.

To Reproduce Steps to reproduce the behavior:

  1. 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"
  }
]
  1. Execute the command: sfdx force:source:deploy -p src/sfdc/base

  2. 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:

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