Joost
  • Member for 3 years, 11 months
  • Last seen more than a month ago
How to avoid logging an error when aborting a pipeline
Accepted answer
19 votes

Add a magic "Ok|" string to the abort message, e.g: context.Abort("Ok|Abort pipeline", context); It turns out that the implementation of Abort checks for the magic "Ok|" string: public override ...

View answer
access to the registry key 'Global' is denied
Accepted answer
18 votes

Add the IIS app pool user to the "Performance Monitor Users" & "Performance Log Users" groups, e.g: CMD> net localgroup "Performance Monitor Users" "IIS APPPOOL\sitecore" /add CMD> net ...

View answer
Commerce Engine 9.3 does not start: failed to listen on port
Accepted answer
6 votes

After debugging the SQL connection, it turns out that the Commerce Engine makes a database call in the application startup. This first call can take quite some time, and sometimes even more than 2 ...

View answer
Content Items are not cached (using XC9 update-1)
Accepted answer
4 votes

ContentItem are apparently not cached by the Content-Item cache, but by the ManagementCachePolicy. I added the following cache policy: { "$type": "Sitecore.Commerce.Plugin.Management....

View answer
Why Content Delivery in Sitecore 9.3 is treating users as editors?
3 votes

Sitecore support has registered this a bug with reference number 366550, and there is a hotfix available for 9.2 and 9.3 here.

View answer
How to have control over the section names in the SXA Toolbox?
3 votes

You could override and change the GetOrderedRenderings method in Sitecore.XA.Foundation.Editing.Service.AvailableRenderingsOrderingService to calculate the SectionName differently. In the ...

View answer
Scoping validation checks in Sitecore Commerce
3 votes

Best way is to use a new CommerceContext for each call. If that isn’t feasible you can use the clear methods, e.g: context.CommerceContext.ClearEntities(); context.CommerceContext.ClearModels(); ...

View answer
XC9 entity composer templates: circular template inheritance
Accepted answer
3 votes

This is registered by Sitecore as bug #276414. The workaround is to have different Name values for the ComposerTemplate and the EntityView that it contains.

View answer
How to sync content items in XC9?
Accepted answer
3 votes

I got the following answer from Sitecore Support: EnsureSyncDefaultContentPaths should be run only once when the environment is just set-up. For the subsequent configuration updates you should use ...

View answer
EnvironmentName setting in config.json
3 votes

The EnvironmentName setting is used to identify which environment should be StartedUp on application startup. The OOTB example wrongly has the HabitatMinions set as EnvironmentName for all roles. If ...

View answer
XC9 Entity Composer: child-views and tagged templates not shown in Sitecore Content Editor
Accepted answer
3 votes

After contacting Sitecore support, it turns out that with Sitecore XC9 update-2 the child-views and tagged templates do not work with the current Sitecore Dataprovider. This will be fixed in a later ...

View answer
Using the Layoutservice with a virtualFolder setup
Accepted answer
2 votes

Solved by adding sc_site: config.jssAppName to the RouteHandler.js query string parameters. Edit RouteHandler.js: ... function getRouteData(route, language) { const fetchOptions = { ...

View answer
Cannot run OData Connected Service tool and compatiblity errors
Accepted answer
2 votes

Check that you are using a OData Connected Service version that is compatible with OData Client version 6.19.0. The OData Connected Service tool is (automatically in VS) upgraded to v0.7.1 and this ...

View answer
How to programmatically update commerce data templates
Accepted answer
2 votes

Use the CatalogTemplateGenerator class to perform the desired actions, e.g. to delete and build: var master = Sitecore.Configuration.Factory.GetDatabase("master"); var generator = new Sitecore....

View answer
What enables the SXA style and behavior editing of a component?
Accepted answer
2 votes

Turned out that the template used as Parameters Template should have the /sitecore/templates/Foundation/Experience Accelerator/Grid/Rendering Parameters/Grid Parameters template associated.

View answer
XC9 Sales Activity definiton
Accepted answer
2 votes

I got a quick and elaborate answer from Rob Earlam on Slack: "I asked the same question to the Product team a while back and got this response.......": A SalesActivity represents an instance of a ...

View answer
Hard-coded payment option types
Accepted answer
2 votes

Solved it by overriding the base method; public class TranslateItemsToPaymentMethodsBlock : Sitecore.Commerce.Plugin.Management.TranslateItemsToPaymentMethodsBlock { public ...

View answer
Identity Server behind reverse proxy not reachable by CM
Accepted answer
1 votes

Turns out Sitecore Identity Server 9.1 does not support reverse-proxies. I created a small plugin to enable reverse-proxy support for it: https://github.com/joostmeijles/Sitecore.Identity....

View answer
Editable sections disappear Experience Editor
1 votes

Solved by removing Preview.DefaultSite from: <settings>    <setting name="Preview.DefaultSite">        <patch:attribute name="value" value="..." />    </setting> </settings&...

View answer
Log file not updated
Accepted answer
1 votes

Solved by adding: <param name="ImmediateFlush" value="true" /> to the configuration, as mentioned here: https://stackoverflow.com/questions/14963735/log4net-rollingfileappender-not-flushing-io-...

View answer
EnvironmentName setting in config.json
Accepted answer
1 votes

Update from Sitecore Support this has been fixed in SIF: SIF.Sitecore.Commerce.1.2.14.zip\Modules\DeployCommerceContent\DeployCommerceContent.psm1 ... # Set the proper environment ...

View answer
XC9 Entity Composer: error when RawValue is not present
Accepted answer
1 votes

This line in the ReadOnlyCatalogDataProvider causes it: fieldList1.Add(templateField.ID, property[(object) "Value"].Value<string>()); When changing it to: var val = property[(object)"Value"]....

View answer
JSS Tracking API example fetch errors
Accepted answer
0 votes

Turns out that the client-side CORS error is a false-positive. The actual problem is that the fetcher is performing a GET iso a POST. My fix for it: import fetch from 'node-fetch'; async function ...

View answer
Should I harden Commerce Engine ApiSecret?
Accepted answer
0 votes

Turns out the ApiSecret is actually unused as the Commerce Engine uses JWT and not Reference tokens. See Identity Server documentation: http://docs.identityserver.io/en/latest/topics/apis.html#...

View answer
Solr cores are not switched when putting SXA 1.7 in live-mode
Accepted answer
0 votes

Turns out that Solr cores are not properly switched using SXA 1.7. Upgrading SXA to 1.8.1 solves the issue. Workaround, when upgrading to SXA 1.8.1 is not an option, could be to fix the IndexResolver ...

View answer
SXA multiple matching controllers
Accepted answer
0 votes

Based on above code, I managed to solve it by adding proper (Commerce SXA only) namespaces to the MapRoute calls in the Sitecore.Commerce.XA.Foundation.Common.Pipelines.Initialize....

View answer
Catalog Item of the Storefront catalog Configuration cannot be found
Accepted answer
0 votes

Solved it by selecting the proper catalog under: /sitecore/content/New tenant/test/Settings/Commerce/Catalog Configuration It seemed to be put at a, in my installation, non-existing Habitat Catalog ...

View answer
How to setup a simple standalone XC9 instance?
0 votes

If you are into Docker, you could give https://github.com/avivasolutionsnl/sitecore-commerce-docker a try. In addition, you could use it (the Dockerfiles) as reference of how to get a minimal setup.

View answer