cancel
Showing results for 
Search instead for 
Did you mean: 

Content type with multiple option removed problem

unknown-user
Champ on-the-rise
Champ on-the-rise
I have a property defined in my content model as a text. The declaration is as below.

<property name="custom:pn">
   <type>d:text</type>
   <multiple>true</multiple>
</property>

actually all nodes has only one value for customSmiley Tonguen property, so I remove multiple option and after full index rebuild, query use web service, get following error:
   {http://www.alfresco.org/ws/service/repository/1.0}RepositoryFault:<ns1:errorCode>0</ns1:errorCode><ns1:message>org.alfresco.service.cmr.repository.datatype.TypeConversionException: There is no conversion registered for the value:
   value class: java.util.ArrayList
   to class: java.lang.String
   value: [TEST01]</ns1:message>

If I search In Alfresco Node Browser, the result value still marked with –collection– in red color , I do rebuild full index again, same result,
what should I do to convert the value list to string or anything else convenient way to achieve ?
2 REPLIES 2

jpfi
Champ in-the-making
Champ in-the-making
Hi,
I guess you'll to create a new single value property & implement a patch that migrates your document props.
Cheers, jan

unknown-user
Champ on-the-rise
Champ on-the-rise
Hi,
I guess you'll to create a new single value property & implement a patch that migrates your document props.
Cheers, jan

yeah, thanks for you advice.