b2c-crm-sync
b2c-crm-sync copied to clipboard
[BUG] ...Could not create the Create the Order of Behalf Of Anonymous B2C Commerce Customer Profiles.. throwing error.
Hi Team,
We almost completed the b2c crmsyn, but failed at the last step, we are running in our non prod staging instance.
PS C:\Users\svanukuru\Desktop\CRM Sync\b2c-crm-sync-1.4.1> npm run crm-sync:oobo:customers:create
[email protected] crm-sync:oobo:customers:create node cli.js crm-sync:oobo:customers:create
CRM-SYNC | v0.9.0 | crm-sync:oobo:customers:create: START
-- Attempting to register the OOBO Customer Profiles for each storefront
┌──────────────────────────────┬──────────┬─────────────────────────────────────────────────────────────────────────────┐
│ Env. Property Name │ Is Valid │ Configured Property Value │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ b2cHostName │ true │ -na01-.demandware.net │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ b2cClientId │ true │ b6befbf3-d7d9-44a3-82f5-95aa7db16e5e │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ b2cClientSecret │ true │ ************ │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ b2cSiteIds │ true │ ************************ │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ sfHostName │ true │********************* │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ sfLoginUrl │ true │************************ │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ sfUsername │ true │ ************************ │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ sfPassword │ true │ ************************ │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ sfSecurityToken │ true │ ************************ │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ b2cInstanceName │ true │ ************************ ** │
├──────────────────────────────┼──────────┼─────────────────────────────────────────────────────────────────────────────┤
│ sfHostNameAlt │ true │ ************************ │
└──────────────────────────────┴──────────┴─────────────────────────────────────────────────────────────────────────────┘
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ B2C Commerce Authentication Token │
├───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ gIzlqH_3clCH9vneERk6dURl8Q4 │
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
-- Successfully verified the following B2C Commerce Storefronts
┌─────────────────────────┬──────────┬────────────────────┬─────────────────────────────────────────────────────────────┐
│ Site Identifier │ Status │ Storefront │ Site URL │
├─────────────────────────┼──────────┼────────────────────┼─────────────────────────────────────────────────────────────┤
│ jennycraig-us │ 200 │ online │ /s/-/dw/data/v21_3/sites/jennycraig-us │
├─────────────────────────┼──────────┼────────────────────┼─────────────────────────────────────────────────────────────┤
│ jennycraig-ca │ 200 │ online │ /s/-/dw/data/v21_3/sites/jennycraig-ca │
├─────────────────────────┼──────────┼────────────────────┼─────────────────────────────────────────────────────────────┤
│ jennycraig-nz │ 200 │ online │ /s/-/dw/data/v21_3/sites/jennycraig-nz │
├─────────────────────────┼──────────┼────────────────────┼─────────────────────────────────────────────────────────────┤
│ jennycraig-au │ 200 │ online │ /s/-/dw/data/v21_3/sites/jennycraig-au │
└─────────────────────────┴──────────┴────────────────────┴─────────────────────────────────────────────────────────────┘
-- Verifying / creating the OOBO Anonymous Customer records for these B2C Storefronts
C:\Users\svanukuru\Desktop\CRM Sync\b2c-crm-sync-1.4.1\lib\cli-api_common_createOOBOCustomerDisplayOutput.js:36
['login', customerProfile.credentials.login],
^
TypeError: Cannot read properties of undefined (reading 'login') at module.exports (C:\Users\svanukuru\Desktop\CRM Sync\b2c-crm-sync-1.4.1\lib\cli-api_common_createOOBOCustomerDisplayOutput.js:36:47) at C:\Users\svanukuru\Desktop\CRM Sync\b2c-crm-sync-1.4.1\lib\cli-api_b2cOOBOCustomerCreate.js:221:44 at processTicksAndRejections (node:internal/process/task_queues:96:5) PS C:\Users\svanukuru\Desktop\CRM Sync\b2c-crm-sync-1.4.1>
Thanks, Ashok