# OnConflict

NOTE: This parameter description applies only to the CategoryImportFromXML action.

The method to use to handle categories in the XML that have the same name and hierarchy position as existing categories. Use one of the following options:

- `KeepExisting`. Keep the existing category and discard the new category.

- `Overwrite`. Overwrite the existing category with the new category.

- `Merge`. Merge the new category with the existing category. In this case, IDOL Category Component:

  - keeps old and new child categories.

  - keeps new training text and overwrites the old training text. All other old and new training items are kept.

  - keeps old and new terms. Where old and new terms match, the weight of the new terms overwrites that of the old terms if it is different. QueryAgent terms and weights are always overwritten.

  - keeps old and new detail fields (`numresults`, `threshold`, `databases`, `FieldText`, and user-defined fields), unless their values clash, in which case the new field value overwrites the old one.

Actions: | CategoryImportFromXML
Type: | String
Default: | `KeepExisting`
Example: | `OnConflict=Overwrite`
See Also: |

© Copyright 2019 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm