Open 26shivani02 opened 2 years ago
Hello,
Thank you for posting an issue here. Are you sure you correctly set up your dev hub before attempting to create a scratch org? This is not related to b2c-crm-sync directly, but more on a general setup on your Salesforce Core Platform environment. Please have a look at https://help.salesforce.com/s/articleView?id=sf.sfdx_setup_enable_devhub.htm&type=5
Hello,
Thank you for posting an issue here. Are you sure you correctly set up your dev hub before attempting to create a scratch org? This is not related to b2c-crm-sync directly, but more on a general setup on your Salesforce Core Platform environment. Please have a look at https://help.salesforce.com/s/articleView?id=sf.sfdx_setup_enable_devhub.htm&type=5
Yeah! I was successfully set the defaultdevhubusername but when I used this command (npm run crm-sync:sf:org:create) the error is occured. [ { "stack": "NOT_FOUND: The requested resource does not exist\n at HttpApi.getError (C:\b2c-crm-sync\node_modules\jsforce\lib\http-api.js:250:13)\n at C:\b2c-crm-sync\node_modules\jsforce\lib\http-api.js:95:22\n at tryCallOne (C:\b2c-crm-sync\node_modules\promise\lib\core.js:37:12)\n at C:\b2c-crm-sync\node_modules\promise\lib\core.js:123:15\n at flush (C:\b2c-crm-sync\node_modules\asap\raw.js:50:29)\n at processTicksAndRejections (node:internal/process/task_queues:78:11)", "message": "The requested resource does not exist", "name": "NOT_FOUND", "errorCode": "NOT_FOUND" } ]
Can you please try to use sfdx to create the org, to see if the issue is from sfdx on your local environment or from the b2c-crm-sync CLI commands? You have examples here: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_scratch_orgs_create.htm
Can you please try to use sfdx to create the org, to see if the issue is from sfdx on your local environment or from the b2c-crm-sync CLI commands? You have examples here: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_scratch_orgs_create.htm
When I try used sfdx to create the org, I getting this error
This error message means you are not using sfdx to create the org.
What I suggested was to run the create command directly from sfdx, and not use the CLI commands from b2c-crm-sync.
Please try running sfdx force:org:create -f "./config-dx/b2c-base-scratch-def.json" -a "scratch-org-name" --setdefaultusername
Your local environment details:
Node version (node -v): [v16.13.1] NPM version (npm -v) [8.3.0] SFDX version (sfdx -v) [sfdx-cli/7.132.0 win32-x64 ] Your remote environment details:
Salesforce B2C Commerce versi on: [ 21.3 ]