Experience Analytics · Sitecore · Sitecore 9 · xConnect

Solved: Failed to synchronize segments. Message: Ensure definition type did not complete successfully. StatusCode: 500

I recently started working on setting up Lists in my Sitecore 9 (Update 1) site locally and ran into logs filled with this exception –


Since the error was a 500 status code, I switched to xConnect logs under my xConnect site and found out that I was missing an active license.

The logs for xConnect sites are under the xConnect site folder > App_Data > logs.

I updated the license and SOLVED!!! The errors disappeared and the communication between my Sitecore Site instance and the xConnect instance was restored in no time!

What a SAVE!

Thought it might help someone else!

 

093018_2004_SettingupCD1.png

Advertisements
Commerce · Sitecore · Sitecore 9 · Sitecore Commerce

Sitecore commerce 9.0.2 Install – Operation timed out while rebuilding indexes

Hopefully, this will help whoever runs into this issue. While I was installing Sitecore Commerce 9.0.2, I ran into an error. At the last couple task while rebuilding the master index the server timed out.

I looked for the error message in the Json file the error came from. It was the SitecoreUtilityTasks.psm1 file. For me the file was under : C:\SitecoreXCSetup9.2\SIF.Sitecore.Commerce.1.2.14\Modules\SitecoreUtilityTasks folder.

I updated the timeout limits to almost 10 times more.

Just to avoid such time outs during any tasks while the install script is running, just increase the timeout. Look for “Invoke-RestMethod” in the above mentioned file and update the values of time out.

Below is my file. You can compare it with original Sitecore commerce install file to see what was changed. This did the trick for me. I just changed most of them to : 7200.

Function Invoke-InstallModuleTask {
[CmdletBinding()]
param(
[Parameter(Mandatory=$true)]
[string]$ModuleFullPath,
[Parameter(Mandatory=$true)]
[string]$ModulesDirDst,
[Parameter(Mandatory=$true)]
[string]$BaseUrl
)

Copy-Item $ModuleFullPath -destination $ModulesDirDst -force

$moduleToInstall = Split-Path -Path $ModuleFullPath -Leaf -Resolve


Write-Host "Installing module: " $moduleToInstall -ForegroundColor Green ; 
$urlInstallModules = $BaseUrl + "/InstallModules.aspx?modules=" + $moduleToInstall
Write-Host $urlInstallModules
Invoke-RestMethod $urlInstallModules -TimeoutSec 7200
}

Function Invoke-InstallPackageTask {
[CmdletBinding()]
param(
[Parameter(Mandatory=$true)]
[string]$PackageFullPath,
[Parameter(Mandatory=$true)]
[string]$PackagesDirDst,
[Parameter(Mandatory=$true)]
[string]$BaseUrl
)

Copy-Item $PackageFullPath -destination $PackagesDirDst -force

$packageToInstall = Split-Path -Path $PackageFullPath -Leaf -Resolve

Write-Host "Installing package: " $packageToInstall -ForegroundColor Green ; 
$urlInstallPackages = $BaseUrl + "/InstallPackages.aspx?package=" + $packageToInstall
Write-Host $urlInstallPackages
Invoke-RestMethod $urlInstallPackages -TimeoutSec 7200
}

Function Invoke-PublishToWebTask {
[CmdletBinding()]
param( 
[Parameter(Mandatory=$true)]
[string]$BaseUrl
)

Write-Host "Publishing to web..." -ForegroundColor Green ; 
Start-Sleep -Seconds 60
$urlPublish = $BaseUrl + "/Publish.aspx"
Invoke-RestMethod $urlPublish -TimeoutSec 7200
Write-Host "Publishing to web complete..." -ForegroundColor Green ; 
}

Function Invoke-CreateDefaultStorefrontTask {
[CmdletBinding()]
param( 
[Parameter(Mandatory=$true)]
[string]$BaseUrl,
[Parameter(Mandatory=$false)]
[string]$scriptName = "CreateDefaultStorefrontTenantAndSite",
[Parameter(Mandatory=$false)]
[string]$siteName = "",
[Parameter(Mandatory=$true)]
[string]$sitecoreUsername,
[Parameter(Mandatory=$true)]
[string]$sitecoreUserPassword
)

if($siteName -ne "")
{
Write-Host "Restarting the website and application pool for $($siteName)..." -ForegroundColor Green ; 
Import-Module WebAdministration

Stop-WebSite $siteName

if((Get-WebAppPoolState $siteName).Value -ne 'Stopped')
{
Stop-WebAppPool -Name $siteName
}

Start-WebAppPool -Name $siteName
Start-WebSite $siteName
Write-Host "Restarting the website and application pool for $($siteName) complete..." -ForegroundColor Green ; 
}

Write-Host "Creating the default storefront..." -ForegroundColor Green ;

#Added Try catch to avoid deployment failure due to an issue in SPE 4.7.1 - Once fixed, we can remove this
Try
{
$urlPowerShellScript = $BaseUrl + "/-/script/v2/master/$($scriptName)?user=$($sitecoreUsername)&password=$($sitecoreUserPassword)"
Invoke-RestMethod $urlPowerShellScript -TimeoutSec 7200
}
Catch
{
$errorMessage = $_.Exception.Message
Write-Host "Error occured: $errorMessage..." -ForegroundColor Red; 
}

Write-Host "Creating the default storefront complete..." -ForegroundColor Green; 
}

Function Invoke-RebuildIndexesTask {
[CmdletBinding()]
param( 
[Parameter(Mandatory=$true)]
[string]$BaseUrl
)

Write-Host "Rebuilding index 'sitecore_core_index' ..." -ForegroundColor Green ; 
$urlRebuildIndex = $BaseUrl + "/RebuildIndex.aspx?index=sitecore_core_index"
Invoke-RestMethod $urlRebuildIndex -TimeoutSec 7200
Write-Host "Rebuilding index 'sitecore_core_index' completed." -ForegroundColor Green ;

Write-Host "Rebuilding index 'sitecore_master_index' ..." -ForegroundColor Green ; 
$urlRebuildIndex = $BaseUrl + "/RebuildIndex.aspx?index=sitecore_master_index"
Invoke-RestMethod $urlRebuildIndex -TimeoutSec 7200
Write-Host "Rebuilding index 'sitecore_master_index' completed." -ForegroundColor Green ;

Write-Host "Rebuilding index 'sitecore_web_index' ..." -ForegroundColor Green ; 
$urlRebuildIndex = $BaseUrl + "/RebuildIndex.aspx?index=sitecore_web_index"
Invoke-RestMethod $urlRebuildIndex -TimeoutSec 7200
Write-Host "Rebuilding index 'sitecore_web_index' completed." -ForegroundColor Green ; 
}

Function Invoke-GenerateCatalogTemplatesTask {
[CmdletBinding()]
param( 
[Parameter(Mandatory=$true)]
[string]$BaseUrl
)

Write-Host "Generating Catalog Templates ..." -ForegroundColor Green ; 
$urlGenerate = $BaseUrl + "/GenerateCatalogTemplates.aspx"
Invoke-RestMethod $urlGenerate -TimeoutSec 1800
Write-Host "Generating Catalog Templates completed." -ForegroundColor Green ;
}

Function Invoke-DisableConfigFilesTask {
[CmdletBinding()]
param( 
[Parameter(Mandatory=$true)]
[string]$ConfigDir,
[parameter(Mandatory=$true)]
[string[]]$ConfigFileList
)

foreach ($configFileName in $ConfigFileList) {
Write-Host "Disabling config file: $configFileName" -ForegroundColor Green;
$configFilePath = Join-Path $ConfigDir -ChildPath $configFileName
$disabledFilePath = "$configFilePath.disabled";

if (Test-Path $configFilePath) {
Rename-Item -Path $configFilePath -NewName $disabledFilePath;
Write-Host " successfully disabled $configFilePath";
} else {
Write-Host " configuration file not found." -ForegroundColor Red;
}
}
}
Function Invoke-EnableConfigFilesTask {
[CmdletBinding()]
param( 
[Parameter(Mandatory=$true)]
[string]$ConfigDir,
[parameter(Mandatory=$true)]
[string[]]$ConfigFileList
)

foreach ($configFileName in $ConfigFileList) {
Write-Host "Enabling config file: $configFileName" -ForegroundColor Green;
$configFilePath = Join-Path $ConfigDir -ChildPath $configFileName
$disabledFilePath = "$configFilePath.disabled";
$exampleFilePath = "$configFilePath.example";

if (Test-Path $configFilePath) {
Write-Host " config file is already enabled...";
} elseif (Test-Path $disabledFilePath) {
Rename-Item -Path $disabledFilePath -NewName $configFileName;
Write-Host " successfully enabled $disabledFilePath";
} elseif (Test-Path $exampleFilePath) {
Rename-Item -Path $exampleFilePath -NewName $configFileName;
Write-Host " successfully enabled $exampleFilePath";
} else {
Write-Host " configuration file not found." -ForegroundColor Red;
}
}
}

Function Invoke-ExpandArchive {
[CmdletBinding()]
param( 
[Parameter(Mandatory=$true)]
[string]$SourceZip,
[parameter(Mandatory=$true)]
[string]$DestinationPath
)

Expand-Archive $SourceZip -DestinationPath $DestinationPath -Force
}

Register-SitecoreInstallExtension -Command Invoke-InstallModuleTask -As InstallModule -Type Task -Force

Register-SitecoreInstallExtension -Command Invoke-InstallPackageTask -As InstallPackage -Type Task -Force

Register-SitecoreInstallExtension -Command Invoke-PublishToWebTask -As PublishToWeb -Type Task -Force

Register-SitecoreInstallExtension -Command Invoke-RebuildIndexesTask -As RebuildIndexes -Type Task -Force

Register-SitecoreInstallExtension -Command Invoke-GenerateCatalogTemplatesTask -As GenerateCatalogTemplates -Type Task -Force

Register-SitecoreInstallExtension -Command Invoke-EnableConfigFilesTask -As EnableConfigFiles -Type Task -Force

Register-SitecoreInstallExtension -Command Invoke-DisableConfigFilesTask -As DisableConfigFiles -Type Task -Force

Register-SitecoreInstallExtension -Command Invoke-CreateDefaultStorefrontTask -As CreateDefaultStorefront -Type Task -Force

Register-SitecoreInstallExtension -Command Invoke-ExpandArchive -As ExpandArchive -Type Task -Force
# SIG # Begin signature block
# MIIXwQYJKoZIhvcNAQcCoIIXsjCCF64CAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR
# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQU+FR/hgxi0AVt7DHIHEd4HOwr
# 3s+gghL8MIID7jCCA1egAwIBAgIQfpPr+3zGTlnqS5p31Ab8OzANBgkqhkiG9w0B
# AQUFADCBizELMAkGA1UEBhMCWkExFTATBgNVBAgTDFdlc3Rlcm4gQ2FwZTEUMBIG
# A1UEBxMLRHVyYmFudmlsbGUxDzANBgNVBAoTBlRoYXd0ZTEdMBsGA1UECxMUVGhh
# d3RlIENlcnRpZmljYXRpb24xHzAdBgNVBAMTFlRoYXd0ZSBUaW1lc3RhbXBpbmcg
# Q0EwHhcNMTIxMjIxMDAwMDAwWhcNMjAxMjMwMjM1OTU5WjBeMQswCQYDVQQGEwJV
# UzEdMBsGA1UEChMUU3ltYW50ZWMgQ29ycG9yYXRpb24xMDAuBgNVBAMTJ1N5bWFu
# dGVjIFRpbWUgU3RhbXBpbmcgU2VydmljZXMgQ0EgLSBHMjCCASIwDQYJKoZIhvcN
# AQEBBQADggEPADCCAQoCggEBALGss0lUS5ccEgrYJXmRIlcqb9y4JsRDc2vCvy5Q
# WvsUwnaOQwElQ7Sh4kX06Ld7w3TMIte0lAAC903tv7S3RCRrzV9FO9FEzkMScxeC
# i2m0K8uZHqxyGyZNcR+xMd37UWECU6aq9UksBXhFpS+JzueZ5/6M4lc/PcaS3Er4
# ezPkeQr78HWIQZz/xQNRmarXbJ+TaYdlKYOFwmAUxMjJOxTawIHwHw103pIiq8r3
# +3R8J+b3Sht/p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MFOQDGEZmmlU0V98frgh2oDB+Sli6zZfWESnYcqKa77A==
# SIG # End signature block

 

093018_1957_SettingupCD1.png

Commerce · Sitecore · Sitecore 9 · Sitecore Commerce

Sitecore Commerce 9.0.2: Setting up Postman Samples Collection

Sitecore Commerce comes with excellent API samples that you can check out in Postman. There are a few easy steps to follow to set up this samples API calls in Postman. If you still need to install Sitecore Commerce, checkout my post for the same: https://davehetal.wordpress.com/2018/11/05/sc_xc_9-0-2/

Then proceed with the following easy steps to set up the cool Postman API samples.

Step 1: Navigate to your Sitecore Commerce install folder. For me it was : C:\SitecoreXCSetup9.2.

Step 2: Find and extract the zip file: Sitecore.Commerce.Engine.SDK.2.2.72.zip. In the extracted folder, you will see postman folder and inside that folder are the API samples.

Step 3: If you do not have already, download and install Postman app.: https://www.getpostman.com/apps

Step 4: Open Postman app and navigate to Settings to turn off SSL. Remember, this is only for your development environment.

Sitecore recommends strongly to keep the SSL on for Production environments.

Step 5: Import the DevOps and Shops folder into Postman. Follow the screenshots below.

Step 6: Import the environments. Follow the screen shots.

Step 7: Turn off the flag “EnableAntiForgery” in your Sitecore Commerce Install. Navigate to the config.json file of the CommerceAuthoring install for your Sitecore Commerce instance. For me it was C:\inetpub\wwwroot\CommerceAuthoring_ XcStoreFront_902\wwwroot\config.json. Find the “AntiForgeryEnabled” flag and set it to false.

You must do this in development environment only.

Step 8: After all is done, you will see all the API samples in the left panel in Postman.

Step 9: To start exercising these sample API calls you would need to get an auth token first. To do so, select the “Habitat Environment” in Postman.

Step 10: Select the Authentican > Sitecore > GetToken call and click on send.

Hopefully, all is well and you should see the following response –

Commerce · Sitecore · Sitecore 9 · Sitecore Commerce

Installing Sitecore Commerce 9.0.2 – easy steps!

After coming back from Sitecore Symposium, I started working on something I hadn’t had time all year. Getting Sitecore Commerce certified. Before I could start studying up, I needed a refresher installing Sitecore Commerce – now the release 9.0 Update 2. So I got started and here are the steps I captured of the latest Sitecore Commerce 9.0.2 installation.

  1. Set up solr windows service.

    Create a folder named Projects under c:\ drive. Create a new folder under Projects folder named XcStoreFront_902. Create a new folder under XcStoreFront_902 named “Solr”. Download and extract Solr 6.6.2 and NSSM files under the “Solr” folder.

    Solr 6.6.2: https://archive.apache.org/dist/lucene/solr/6.6.2/solr-6.6.2.zip

    NSSM: https://nssm.cc/release/nssm-2.24.zip

    So, you will now the folder structure as below –

  2. Set up the Sitecore XP install folder. Create a new folder named SitecoreSetUp9.2 under c:\.
  3. Set up the Sitecore XC install folder. Create a new folder named SitecoreXCSetup9.2 under c:\.
  4. Download and extract Sitecore Install packages for Sitecore 9.0.2 for XP and XC.

    Sitecore XP: https://dev.sitecore.net/Downloads/Sitecore_Experience_Platform/90/Sitecore_Experience_Platform_90_Update2.aspx.

    Extract and copy the content to the folder you created in Step 1.

    2018-11-04_15-53-45

  5. Siteocre XC: https://dev.sitecore.net/Downloads/Sitecore_Commerce/90/Sitecore_Experience_Commerce_90_Update2.aspx

    Extract and copy the content to the folder you created in Step 2.      2018-11-04_15-56-13

  6. Copy the Sitecore license file into the folder you created in Step 2.

    SOLR

    Install Solr as windows service. Run command prompt as admin. You can choose whatever name and port you wish for the name of the Solr service and the port you want it to run on.

    cd C:\Projects\XcStoreFront_902\Solr\nssm-2.24\win64

    NSSM Install solr-6.6.2_XcStoreFront_902

    SolrService

  7. Next, download and copy SolrSSL.ps1 from Kamsar’s Git to the folder you created in Step 3. That script is a life saver. : https://gist.github.com/kamsar/c3c8322c1ec40eac64c7dd546e5124de#file-solrssl-ps1
  8. Run PowerShell command window as admin and –

    cd C:\SitecoreSetUp9.2

    Run the command below in Admin Powershell command window –

    .\solrssl.ps1 -KeystoreFile C:\<location of your solr directory from step 1>\server\etc\solr-ssl.keystore.jks

  9. Copy following files if they are not already dropped in your solr directory at C:\<location of your solr directory from step 1>\server\etc

    C:\SitecoreSetUp9.2\solr-ssl.keystore.jks

    C:\SitecoreSetUp9.2\solr-ssl.keystore.p12

  10. Add following to your solr.in.cmd file located at C:\<location of your solr directory from step 1>\bin folder.

    set SOLR_SSL_KEY_STORE=etc/solr-ssl.keystore.jks

    set SOLR_SSL_KEY_STORE_PASSWORD=secret

    set SOLR_SSL_TRUST_STORE=etc/solr-ssl.keystore.jks

    set SOLR_SSL_TRUST_STORE_PASSWORD=secret

  11. Test your solr service with SSL : https://localhost:8983/solr

    Install Sitecore XP

  12. Checkout my Sitecore XP install prep post and make sure you have everything you need.: https://davehetal.wordpress.com/2017/11/01/sitecore-9-fun-1-getting-ready/
  13. Open PowerShell ISE as admin. In the window underneath, run the following commands –

    cd C:\SitecoreSetUp9.2

    Import-Module SitecoreFundamentals

    Import-Module SitecoreInstallFramework

  14. Download the Sitecore Install script from here and make necessary changes as per your environment.: https://github.com/hetaldave/Siteocre9.0.2_InstallFiles/blob/master/SitecoreSetUp902.ps1
  15. Copy the install script into the folder: C:\SitecoreSetUp9.2.
  16. Open the install script in the PowerShell ISE and run it. This will install the Sitecore XP instance.
  17. Follow the post install steps – for all post installation steps refer to installation guide.: https://dev.sitecore.net/~/media/F97AEBC82D2A4EFFBED9C95EC5E9DC31.ashx

    Rebuild the Search Indexes and the Link Databases.

    Deploy Marketing Definitions from Control panel.

     

    Install Sitecore Commerce (Sitecore XC)

  18. Run command prompt as admin and run the following commands –

    New-SelfSignedCertificate -certstorelocation cert:\localmachine\my -dnsname “storefront.local”

    Export-Certificate -Cert cert:\localMachine\my\<Thumbprint-of-cert> -FilePath C:\SitecoreXCSetup9.2\storefront.local.cer

  19. Navigate to C:\SitecoreXCSetup9.2 and extract the zip file SIF.Sitecore.Commerce.1.2.14.zip in its own folder named SIF.Sitecore.Commerce.1.2.14
  20. Download the Sitecore XC install file into the SIF.Sitecore.Commerce.1.2.14 folder from: https://github.com/hetaldave/Siteocre9.0.2_InstallFiles/blob/master/SitecoreXCSetup902.ps1
  21. In the Powershell ISE window run the following command –

    cd C:\SitecoreXCSetup9.2\SIF.Sitecore.Commerce.1.2.14

  22. Go to IIS manager and make sure that the XP site and app_pool are running.
  23. Open the file C:\SitecoreXCSetup9.2\SIF.Sitecore.Commerce.1.2.14\SitecoreXCSetup902.ps1 in ISE. Make necessary changes to match your environment and run it. This will take several minutes.
  24. Follow the post install steps – for all post installation steps refer to installation guide.: http://commercesdn.sitecore.net/SitecoreXC_9.0/Installation-Guide/9.0.2/SitecoreXC-9.0_Installation_Guide(On-Prem).pdf

    I followed the following and some more –

    Open Sitecore admin.

    Update the Storefront theme: Navigate to /sitecore/content/Sitecore/Storefront/Presentation/Page Designs. Switch to Content tab for the item and and set the theme of your choosing in the field “Theme” under Styling section.

    Update the storefront target: Navigate to /sitecore/content/Sitecore/Storefront/Settings/Site Grouping/Storefront and update the hostname to match the hostname for your site.

    Smart Publish the site will all languages.

    Clean all DBs – one at a time.

    Rebuild link databases. – one at a time.

    Rebuild all indexes. – one at a time.

    Redeploy marketing definitions.

And……browse the beautiful Sitecore Commerce site.

Uncategorized

My Symposium 2018 Takeaways and Sketchnotes

soyouwannasitecore

This symposium was a different one for me.  The sessions dedicated to women and the session LED by women were truly inspiring.  Also, I tried a different note-taking technique this year, sketchnoting.  See my previous post.  Here are my sketchnotes and some quick takeaways from each session:

The Cortex Engine:  Process at Scale

“Cortex is to Sitecore processing like xConnect is to xDB.”

Cortex is a set of components used to gather large amounts of data and process it via machine learning into marketing-ready information.  It uses tasks (distributed tasks and deferred actions–lower priority) to do the processing that is normally done manually by a marketing team.

A big takeaway from this session is that you’ll need a data scientist to provide direction to the developer to fine tune the Cortex model and then to be able to consume the processed data. Cortex will be available in Sitecore…

View original post 423 more words

Uncategorized

Sitecore Symposium 2018 – 3 Opening Keynotes

Awesome thoughts shared during Sitecore Symposium 2018 Opening Keynote Sessions!

soyouwannasitecore

So you didn’t attend Symposium but wanna find out about the Keynotes?

I tried my hand at sketchnoting for the conference and below I’ve included three notes:  Mark Frost CEO Sitecore, Paige O’Neill, CMO Sitecore, and Deane Barker, author of ‘Web Content Management: Systems, Features, and Best Practices’

Mark Frost CEO Sitecore – Opening Keynote

Main takeaways:

  • “Elevate the Experience”
  • Acquisition of StyleLabs – asset management tools
  • Integration with Salesforce Marketing Cloud
  • Advanced personalization with Cortex
  • Use JSS (Sitecore JavaScript Services) for faster time to market
  • Sitecore to adopt a public charity each year; this year, Canada’s SickKids
  • Women In Technology was a big theme for the year; stay tuned for a separate post on the topic

Mark Frost keynote

Paige O’Neill – CMO Sitecore, Opening Keynote

Three case studies with companies optimizing Sitecore:  Volvo (“Cars as a Service”), Cannondale (personalized bike recommendations based on habits), and SickKids (Award for best Acquisition Campaign after making…

View original post 107 more words

Commerce · Sitecore · Sitecore 9 · Sitecore Commerce

Sitecore Symposium: My Take Away…and Memories!

The Symposium syndrome started a week before the Symposium. I had just finished a release and was working through typical post-go-live issues pulling really long hours. The typical state of panic when your PM knows that you will not be available for the next week – not to mention I shared the same panic…staying away from coding for a week??? God help me!

The day of departure –The flight took off on time and by NOON I was in Orlando at the Symposium! The big Symposium balloon welcomed me and many like me to the Symposium – a week of meeting with awesome Sitecorians from around the world, a week of announcements of “What is New?”, a week of learning and absorbing as much knowledge as I could – not to mention the excitement of meeting with the 18 #womenofsitecore MVPs. We were like a gang of happy!

So…here we go –

Inspiring moments…

Not Impossible LabsGuest key note speaker Mick Ebeling introduced the way technology should be used – to bring smiles and make the world a better place. From almost suicidal travels to Sudan to help kids to a 83 years old pianist playing the piano for the first time since he was diagnosed with Parkinson’s – the journey was full of goosebumps and a tear or two at the corner of eyes with a smile on my face. People like Mick make us believe in the humanity and the fact that in the current times, there is still GOOD in the world.

#MoveTheDial – It was an inspiring presentation by Judi Kovitz and the panel of inspiring women – Francine Anthony, Paige ONeill, Rose Manjarres, Julie Koepsell, Allison Abraham Simpkins. It is amazing when you bring together a group of successful, powerful and driven women. The stage and the narrative to overcome any obstacles was owned by these fabulous women and inspiring equally for men and women. I am sure the proud men who were present in the session would agree fully.

The #womenofsitecore MVP Panel – This was my personal moment of pride and sense of how far I have come and how much I have accomplished…and how much more it yet to be done. It was truly great to meet all the 19 awesome women MVPs. We were all honored to have Paige ONeill as the moderator for our panel. Kudos to Sitecore for organizing and including the inspiring and much needed events supporting women.

The Buzzwords buzzing around…and some pictures to go with it…

Headless CMS (Revolution) – Zenith

Zenith is all you need to distribute and manage content in a Headless fashion. It was announced at the last Symposium and with Sitecore 9.1 sits at the center of Headless CMS revolution.

JSS

Sitecore JavaScript Services will be part of the platform and generally available with Sitecore 9.1. – and it will be open source.

Cortex

There is lot to learn and process before I can say more about Cortex. But here is what I think of this cool Sitecore component – The product has to have a pulse and be able to connect with customer – with Machine Learning aspects of it, Cortex helps with accomplishing just that.

Horizon

As much as I am excited about Horizon – I am also bummed by the fact that it won’t be available in Sitecore 9.1. I shall wait patiently for the seamless experience for content editing especially for field editor. Horizon aspires to be the tool that helps content authors to focus on creating experiences instead of worrying about content items. It runs on Sitecore Host and uses message bus to help you work with content.

The motto of Horizon – The editing tool has to be equally alive as the final product.

One word for Horizon: SLEEK!

Universal Tracker

Focused on engagement analytics for mobile – online and offline – the Universal Tracker is the new analytics/tracking service shipping with Sitecore 9.1. The clear message is : “If your plans don’t include mobile, your plans are not finished.”

Sitecore Omni Theme – all the coolness!

.NET Core

As the first slide of the presentation read – “Sitecore is on a journey from Monolith to NET Core based Service Architecture.”

We have already seen the start of it with the Publishing Service and Commerce services with Experience Commerce. The journey towards .NET Core continues and brings the concept of Sitecore Host – a light weight layer to hold the plugins/services components.

Experience Commerce – My personal favorite of all things Sitecore!

There were some cool Experience Commerce sessions that got to attend. While Dan Solovay and Kelly Brennan brought answers to some my core questions with their super informative sessions, Ishraq Fataftah brought an excellent overview of Omni Channel and Retail concepts.

Rob Earlam presented a great session on 7 common commerce extensions. If you are not already subscribed to Master Sitecore you must. Rob posts excellent videos about all things Experience Commerce.

Ryan Donovan brought the future of Experience Commerce – an exciting road I cannot wait to walk on!

And finally….Drum Rolls for Sitecore 9.1 that is released with all cool things mentioned above!!! More in detail in a later post once I get a chance to play with it firsthand!

P.S. It was great to see Jake yet another year! Symposium would be incomplete without his intelligent spontaneous humor!


Memories to cherish…

The Sitecore Symposium is now over and done, but I will always remember this one just the way I remember the very first “DreamCore” I attended back in the day. DreamCore was my first ever Sitecore conference I had attended. The Symposium 2018 was my very first one as a Sitecore MVP. I walked down those rows with pride to take a sit in the front. But there was another reason for the pride too – I was one of the very few #womenofsitecore MVP to walk down to front rows. All the other super-women of Sitecore that I met at the Symposium kept on adding to that pride…and in that moment I realized that I had to do more, that I could do more – to help others. And that is my biggest take away from this year’s Symposium – The Pride of being a woman, and a Sitecore MVP, and a promise to do more to help others.

The memories I will cherish…

#womenofsitecore MVP Panel

#MoveTheDial movement and the inspiring words of the inspiring women.