-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Step "Deploy the b2c-crm-sync Application Code to Your Salesforce Org" Failing with TypeError "Cannot read property 'prototype' of undefined" for Non-Scratch Org Config #192
Comments
same problem here |
Anyone found a solution to this? I'm still stuck. |
Having the same problem, have anyone solved it? |
Not yet, trying to get to the bottom of it. |
Hi radupopescu1, Still not solved the problem, I think the main issue is a connecting one related to the proxy set in the connection.js file:
However, found a workaround to deploy via sfdx: And then deploy manually the connectedApps that you can find in: Hope it works also for you. Cheers, |
I faced the same issue, will test the approach above. |
Greate, the deploy step pass as well with the workaround, but I face the same error on the next step: https://github.com/SalesforceCommerceCloud/b2c-crm-sync#create-and-deploy-your-duplicate-rules Error Message: StackTrace: STARTTypeError: Cannot read property 'prototype' of undefined
|
Hi all, For connectedApps, duplicateRules, remoteSiteSettings I had to deploy them "manually". You can find the data you have to deploy in the specific directories in your local env. I had also to modify the Field-Level_Security for all the deployed custom fields. After that it seems to work propertly. Best, |
Thanks, Greta! That solved it for me as well. |
Hi all, Create Account records using the values that are stored in {!Account}. Can anyone give me a hand in solving the issue? Thanks |
Hi Greta, I made the manual deploys - about the Field-Level_Security - where can I see for field needed security level? Also I had an error for step 32 - but after manual check The profile was created in both systems. C:\Users\tg\osho\b2c-crm-sync>npm run crm-sync:test:use-cases
Authenticating a B2C Customer Profile via the OCAPI Shop API Registering a new B2C Customer Profile via the OCAPI Shop API Progressive resolution B2C Commerce Customer creation scenarios via the B2CContactProcess API Progressive resolution of a B2C Commerce Customer error scenarios via the B2CContactProcess API Progressive resolution of a B2C Commerce Customer via the B2CContactProcess API Progressive resolution of a B2C Commerce Customer update scenarios via the B2CContactProcess API Updating an SFDC Contact representing a B2C Commerce Customer Profile from within SFDC 11 passing (10m)
When we could expect smooth running instalation process? |
Hi @tgatev, |
Hi @radupopescu1, |
Hi @tgatev, |
I am at step 14 - "Deploy the b2c-crm-sync Application Code to Your Salesforce Org" in the process.
All is good until this point. Checked all configuration, credentials, the '.env' configuration.
I'm using a non-scratch org setup.
I am running the command: npm run crm-sync:sf:org:deploy.
The result is:
CRM-SYNC | v0.9.0 | crm-sync:sf:deploy: START
-- Attempting to deploy b2c-crm-sync using the following environment details
┌──────────────────────────────┬──────────┬─────────────────────────────────────────────────────────────────────────────┐
│ Env. Property Name │ Is Valid │ Configured Property Value │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ b2cInstanceName │ true │ **** │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ b2cHostName │ true │ ****
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ b2cSiteIds │ true │ RefArch,RefArchGlobal │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ b2cClientId │ true │ ****
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ b2cClientSecret │ true │ ****
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ b2cUsername │ true │ ****
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ b2cAccessKey │ true │ ****
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ sfLoginUrl │ true │ test.salesforce.com │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ sfScratchOrgProfile │ ---- │ base │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ sfScratchOrgForceOverwrite │ ---- │ true │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ sfScratchOrgSetDefault │ ---- │ false │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ sfScratchOrgAlias │ ---- │ b2ccrmsync │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ sfScratchOrgDurationDays │ ---- │ │
└──────────────────────────────┴──────────┴─────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────┬──────────┬─────────────────────────────────────────────────────────────────────────────┐
│ Env. Property Name │ Is Valid │ Configured Property Value │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ b2cInstanceName │ true │ **** │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ b2cHostName │ true │ ****
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ b2cSiteIds │ true │ RefArch,RefArchGlobal │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ b2cClientId │ true │ ****
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ b2cClientSecret │ true │ **** │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ b2cUsername │ true │ **** │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ b2cAccessKey │ true │ **** │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ sfLoginUrl │ true │ test.salesforce.com │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ sfScratchOrgProfile │ ---- │ base │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ sfScratchOrgForceOverwrite │ ---- │ true │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ sfScratchOrgSetDefault │ ---- │ false │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ sfScratchOrgAlias │ ---- │ b2ccrmsync │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ sfScratchOrgDurationDays │ ---- │ │
└──────────────────────────────┴──────────┴─────────────────────────────────────────────────────────────────────────────┘
-- verifying / creating the certificates directory
CRM-SYNC | v0.9.0 | crm-sync:sf:deploy: START
-- Attempting to deploy b2c-crm-sync to the Salesforce Org using the following environment details
┌──────────────────────────────┬──────────┬─────────────────────────────────────────────────────────────────────────────┐
│ Env. Property Name │ Is Valid │ Configured Property Value │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ b2cInstanceName │ true │ **** │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ b2cHostName │ true │ **** │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ b2cSiteIds │ true │ RefArch,RefArchGlobal │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ b2cClientId │ true │ **** │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ b2cClientSecret │ true │ **** │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ b2cUsername │ true │ **** │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ b2cAccessKey │ true │ **** │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ sfLoginUrl │ true │ test.salesforce.com │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ sfScratchOrgProfile │ ---- │ base │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ sfScratchOrgForceOverwrite │ ---- │ true │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ sfScratchOrgSetDefault │ ---- │ false │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ sfScratchOrgAlias │ ---- │ b2ccrmsync │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ sfScratchOrgDurationDays │ ---- │ │
└──────────────────────────────┴──────────┴─────────────────────────────────────────────────────────────────────────────┘
,----------------------------------------------------------------------.
| |
| |
| 88888888888 88 |
| 88 88 |
| 88 88 |
| 88aaaaa 8b,dPPYba, 8b,dPPYba, ,adPPYba, 8b,dPPYba, 88 |
| 88""""" 88P' "Y8 88P' "Y8 a8" "8a 88P' "Y8 88 |
| 88 88 88 8b d8 88 "" |
| 88 88 88 "8a, ,a8" 88 aa |
| 88888888888 88 88
"YbbdP"' 88 88 | | | | | | Oh no! Not one of these :( | | | | It looks like you've run into an error or exception. | | Please log an issue via | | https://github.com/SalesforceCommerceCloud/b2c-crm-sync/issues. | | That's the best way to engage us. Thank you for your support! | | |
----------------------------------------------------------------------'[
{
"stack": "TypeError: Cannot read property 'prototype' of undefined\n at Object. (C:\Users\vladimir.popescu\WebstormProjects\b2c-crm-sync\node_modules\@salesforce\core\lib\org\connection.js:386:19)\n at Module._compile (node:internal/modules/cjs/loader:1102:14)\n at Object.Modul
e._extensions..js (node:internal/modules/cjs/loader:1131:10)\n at Module.load (node:internal/modules/cjs/loader:967:32)\n at Function.Module._load (node:internal/modules/cjs/loader:807:14)\n at Module.require (node:internal/modules/cjs/loader:991:19)\n at require (node:internal/modules/cjs/helpers:9
2:18)\n at Object. (C:\Users\vladimir.popescu\WebstormProjects\b2c-crm-sync\node_modules\@salesforce\core\lib\org\authInfo.js:27:22)\n at Module._compile (node:internal/modules/cjs/loader:1102:14)\n at Object.Module._extensions..js (node:internal/modules/cjs/loader:1131:10)\n at
Module.load (node:internal/modules/cjs/loader:967:32)\n at Function.Module._load (node:internal/modules/cjs/loader:807:14)\n at Module.require (node:internal/modules/cjs/loader:991:19)\n at require (node:internal/modules/cjs/helpers:92:18)\n at Object. (C:\Users\vladimir.popescu\Webst
ormProjects\b2c-crm-sync\node_modules\@salesforce\core\lib\org\index.js:19:14)\n at Module._compile (node:internal/modules/cjs/loader:1102:14)",
"message": "Cannot read property 'prototype' of undefined",
"name": "TypeError"
}
]
CRM-SYNC | v0.9.0 | crm-sync:sf:deploy: END
Node version: 15.2.1
NPM version: 7.0.8
SFDX version: sfdx-cli/7.164.2 win32-x64 node-v16.17.0
Salesforce B2C Commerce version: 22.7
Any help will be most welcomed!
The text was updated successfully, but these errors were encountered: