Episerver Commerce [13.15] - Exclude Markets not working when importing XML using the Service API

Vote:
 

We are having troubles with the XML importer to Commerce V13.15. In general everything works as expected but setting the excluded markets for a variant does not seem to have any effect.

We are using the syntax we could find in multiple blog posts and community posts:

<MetaField>
<Name>_ExcludedCatalogEntryMarkets</Name>
<Type>EnumMultiValue</Type>
<Data language="en">
<Item value="115" />
</Data>
</MetaField>

When the catalog is imported, no markets are excluded. If we set the excluded markets directly in the Commerce UI and do an Export using the commerce manager, the above XML is outputtet.

#218078
Mar 05, 2020 16:32
Vote:
 

I have asked our QA to test this on Commerce 13.16 and ServiceAPI 5.4.2 and it is working fine. What is ServiceAPI version you are using? Can you upgrade to 5.4.2?

#218106
Mar 06, 2020 7:49
Vote:
 

Hi Quan.

My collegue just found out that we had written "Value" with a capital "V" in the Item element. After correcting it to a lovercase character it worked.

#218107
Mar 06, 2020 7:56
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.