6

Is there a way to patch xConnect, AutomationEngine, IndexWorker configuration in a way we do it for sitecore instance?

I.e. configuration that resides in xConnect instance folders:

  • \App_data\config\sitecore

  • \App_data\jobs\continuous\AutomationEngine\App_Data\Config\sitecore

  • \App_data\jobs\continuous\IndexWorker\App_data\Config\Sitecore

where configuration is xml based rather then .config

1
  • @SitecoreClimber for example patch sc.Xdb.Collection.IndexerSettings.xml to set IndexAnonymousContactData=true
    – lebeg
    Nov 12, 2017 at 14:10

1 Answer 1

11

You should be able to patch xml configuration files in the following way:

  1. Create patch config file with the name: sc.(patch name).xml
  2. Add the actual settings to patch:

e.g. patch IndexAnonymousContactData setting

<Settings>
  <Sitecore>
    <XConnect>
        <SearchIndexer>
            <Services>
                <IndexerSettings>
                    <Options>
                        <IndexAnonymousContactData>true</IndexAnonymousContactData>
                    </Options>
                </IndexerSettings>
            </Services>
        </SearchIndexer>
    </XConnect>
  </Sitecore>
</Settings>
  1. Patches are applied in alphabetical order, so the patch file has to reside in a folder that goes after the folder which is being patched, i.e. after SearchIndexer folder, for example you could use folder called SearchIndexer_patch.
3
  • 1
    Finally had a chance to test it. Confirm it works as described. Thanks @grg
    – lebeg
    Nov 21, 2017 at 10:37
  • Can you elaborate on sc.(patch name).xml? Should (patch name) match the file you are patching exactly or can it be a custom value?
    – TxRegex
    May 31, 2019 at 19:36
  • 1
    @TxRegex seems like it has to be the exact same name
    – Chris Auer
    Oct 6, 2019 at 23:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.