SaaS CMS has officially launched! Learn more now.

Issue with fetching SKU's


Hi Team,

I am facing issues in fetching the catalog sku's.

Please find the code below

private static IContentLoader contentLoader = ServiceLocator.Current.GetInstance();
var catalogRoot = contentLoader.Get(Guid.Parse(catalogReference.CatalogContentReferenceId));
var currencySKUs = contentLoader.GetChildren(catalogRoot );

The above code is returning the sku's.

But if I remove any sku relation from the catalog, then its is not reflected in the results until I recycle my apppool.

Can you let me if I need to do any configurtaion for this.

CMS version - 7.11
Commerce 7.5

Thanks in advance.

Thanks & Regards,
Manjeera T

Aug 31, 2016 12:59


How do you "remove any sku relation from the catalog" - if I understand correctly so you mean if you "remove/detach" a sku from a category? Do you do it in Catalog UI or Commerce Manager?

The issue sounds like a caching problem to me - so if you remove the relation in one site and the code runs in another site - check if the configuration for events broadcasting is correct.



Aug 31, 2016 13:07

Hi Quan,

If I am trying to remove the relation in commerce manager and try to verify in my application(different app where sku’s will be shown in dropdown), it is not reflecting. Still I am able to see the sku.

Manjeera T

Aug 31, 2016 13:35

As I said, your application should have correct configuration for events broadcasting, so the event listeners in Commerce can listen to the events and react (clear the cached data).

As you mentioned "apppool" so I suppose it's a web application. Make sure to enable this in web.config/system.serviceModel

      <service name="EPiServer.Events.Remote.EventReplication" behaviorConfiguration="DebugServiceBehaviour">
        <endpoint name="RemoteEventServiceEndPoint" contract="EPiServer.Events.ServiceModel.IEventReplication" binding="customBinding" bindingConfiguration="RemoteEventsBinding" address="soap.udp://" />
      <endpoint name="RemoteEventServiceClientEndPoint" address="soap.udp://" binding="customBinding" bindingConfiguration="RemoteEventsBinding" contract="EPiServer.Events.ServiceModel.IEventReplication" />
Edited, Aug 31, 2016 13:39

Hi Quan,

Iam receiving error after placing this.

Please check the configuration below

<service name="EPiServer.Events.Remote.EventReplication" behaviorConfiguration="DebugServiceBehaviour">
<endpoint name="RemoteEventServiceEndPoint" contract="EPiServer.Events.ServiceModel.IEventReplication" binding="customBinding" bindingConfiguration="RemoteEventsBinding" address="soap.udp://" />
<endpoint name="RemoteEventServiceClientEndPoint" address="soap.udp://" binding="customBinding" bindingConfiguration="RemoteEventsBinding" contract="EPiServer.Events.ServiceModel.IEventReplication" />
<behavior name="DebugServiceBehaviour">
<serviceDebug includeExceptionDetailInFaults="true" />
<!--TODO: the option should be only in test environment true in the production should be false-->

<binding name="RemoteEventsBinding">
<binaryMessageEncoding />
<udpTransportCustom multicast="True" />




Manjeera T

Aug 31, 2016 14:45

I am thinking error might be because of "customBinding".

Please check the configurtaion.


Manjeera T

Aug 31, 2016 14:46

Hi Quan,

Issue is resolved.

Thanks for the help.


Manjeera T

Aug 31, 2016 15:22

Manjeera, it would be great if you also posted what fixed your problem. 

Sep 08, 2016 10:16
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.