Expand my Community achievements bar.

SOLVED

mode="merge" in filter.xml not working for ACS Common Generic List

Avatar

Level 4

Hi, I am trying to use "merge" mode in filter.xml for acs common generic list. When I am adding a new entry, its not getting updated.

<filter root="/etc/acs-commons/lists" mode="merge"/>

Anyone has any context on this one?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@Shivam153  It worked for me with below code. Can you provide the specific list in filter as shown below

 

<filter root="/etc/acs-commons/lists/xxxx/comparison_table_values" mode="merge"/>

 

View solution in original post

10 Replies

Avatar

Correct answer by
Community Advisor

@Shivam153  It worked for me with below code. Can you provide the specific list in filter as shown below

 

<filter root="/etc/acs-commons/lists/xxxx/comparison_table_values" mode="merge"/>

 

Avatar

Community Advisor

Can you share the acs commons version please.

Himanshu Jain

Avatar

Community Advisor

Try mode="merge_properties"

Himanshu Jain

Avatar

Level 4

I am getting following error @Himanshu_Jain 

Failed to execute goal org.apache.jackrabbit:filevault-package-maven-plugin:1.1.6:generate-metadata (default-generate-metadata) on project single-app.ui.content: java.io.IOException: org.apache.jackrabbit.vault.fs.config.ConfigurationException: Invalid value given for attribute 'mode': No enum constant org.apache.jackrabbit.vault.fs.api.ImportMode.MERGE_PROPERTIES

 

 

Avatar

Community Advisor

@Shivam153 

try using 'merge_properties' in the filter xml.

merge has been Deprecated, as not handled consistently, use merge_properties instead, based on the doc below.

https://jackrabbit.apache.org/filevault/filter.html#:~:text=update_properties%3A%20Existing%20conten...

Avatar

Level 4

I am getting following error when used this:

Failed to execute goal org.apache.jackrabbit:filevault-package-maven-plugin:1.1.6:generate-metadata (default-generate-metadata) on project single-app.ui.content: java.io.IOException: org.apache.jackrabbit.vault.fs.config.ConfigurationException: Invalid value given for attribute 'mode': No enum constant org.apache.jackrabbit.vault.fs.api.ImportMode.MERGE_PROPERTIES

Avatar

Level 6

@Shivam153 

 

Try using mode="update". It should fix your issue

Avatar

Level 1

@Shivam153  Did you find any solution to this issue?

 

Even the new variant mode="merge_properties" is throwing an error.

 

@AMANATH_ULLAH Mode=update will override all the changed value on the console.