Open ashumahajan-ceo opened 2 years ago
On checking sfdx.log, I found following error log:
{"name":"sfdx","hostname":"WKMIN9447721","pid":76185,"log":"SfdxProjectJson","level":40,"msg":"The config file: /Users/ashmahaj/.sfdx/sfdx-project.json is not schema valid\nDue to: Validation errors:\nshould have required property 'packageDirectories'","time":"2022-03-26T15:25:52.581Z","v":0}
I observed that it was looking for file sfdx-project.json from .sfdx folder and not from the project folder where I am running the command from. To overcome this, I copied the sfdx-project.json to .sfdx folder and ran "npm run crm-sync:sf:org:deploy" again. Command failed again but the error in the log was different now as:
"name":"sfdx","hostname":"WKMIN9447721","pid":79571,"log":"MetadataApiDeploy","level":50,"errno":-60,"code":"ETIMEDOUT","syscall":"connect","address":"13.110.56.158","port":443,"msg":"","time":"2022-03-27T06:36:33.537Z","v":0}
13.110.56.158 is the ip address of my domain entered in .env file for SF_LOGINUR =spde12-dev-ed.my.salesforce.com
What could be wrong as I can access the IP or domain in my browser fine?
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
Discussed in https://github.com/SalesforceCommerceCloud/b2c-crm-sync/discussions/144