cancel
Showing results for 
Search instead for 
Did you mean: 

Error when adding a collection attribute to a CMS Component

Former Member
0 Kudos

Dear experts, et al.,

I created a collection of countries:

 <collectiontype code="RestrictedCountries" elementtype="Country" type="set"/>

And then I modified an OOTB CMS component called CMSNavigationNode in the following way:

     <itemtype code="CMSNavigationNode" generate="false" autocreate="false">
         <attributes>
             <attribute type="RestrictedCountries" qualifier="restrictedCountries">
                 <persistence type="property" />
             </attribute>
         </attributes>
     </itemtype>

I also modified editorArea_CMSNavigationNode.xml to ensure my new attribute shows up.

 ...
         <property qualifier="cmsnavigationnode.restrictedCountries">
             <parameter>
                 <name>predefinedValuesStrategy</name>
                 <value>cmsItemPredefinedValuesStrategy</value>
             </parameter>
         </property>
 ...

The Problem that I have is when I try to use it, it gives me the following error message:

 Caused by: de.hybris.platform.jalo.flexiblesearch.FlexibleSearchException: cannot search unknown field 'TableField(name='uid',langPK='null',
 type=Country)' within type Country unless you disable checking , infoMap=TypeInfoMap for type = 8796101869650
    code = Country


I am attaching the whole error message (link text) in case that you would be so kind to look into it.

Any help will be greatly appreciated!

Kind regards,

L

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi luis,

From the error message, I would like to check if the country item type contains the field uid ? And how the simple and advanced search for country implemented

Regards

Nan

Former Member
0 Kudos

Hi Nan,

Thank you for replying. You are absolutely right, Country does not have a uid attribute and cmsItemPredefinedValuesStrategy adds that to the query. I removed that and now it works like a charm.

Best regards,

Luis

Answers (0)