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] Validation of new site fails - during deployments #190

Closed gintoMathew closed 1 year ago

gintoMathew commented 1 year ago

Describe the bug Deployment fails for a new site and code version. Specifically when a new site is added to SFCC and a re-deployment is performed

To Reproduce Steps to reproduce the behavior:

  1. Deploy a new 'site' to SFCC. (this will be a new entry with the existing 'RefArch' and 'RefArchGlobal' sites)
  2. Perform all configuration steps on SFCC as given in the documentation
  3. Update the .env file accordingly with new B2C_SITEIDS and B2C_CODEVERSION values
  4. As part of re-deployment, deploy components to Salesforce with 'npm run crm-sync:sf:org:deploy' command.
  5. Once the components are deployed to Salesforce, deploy the connect app (for the new site)
  6. Execute the 'npm run crm-sync:sf:connectedapps'.
  7. 'All sites failed validation; please check your environment definition' error is thrown

Expected behavior The connected apps for the new site should be created and deployed to Salesforce

Screenshots image

Your local environment details:

Your remote environment details:

gintoMathew commented 1 year ago

[Fix] - Reconfigured OCAPI Data API Permissions