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
    what are you trying to achieve? – Vlad Iobagiu Nov 12 '17 at 5:13
  • @SitecoreClimber for example patch sc.Xdb.Collection.IndexerSettings.xml to set IndexAnonymousContactData=true – lebeg Nov 12 '17 at 14:10
8

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.
  • 1
    Finally had a chance to test it. Confirm it works as described. Thanks @grg – lebeg Nov 21 '17 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 at 19:36
  • 1
    @TxRegex seems like it has to be the exact same name – Chris Auer Oct 6 at 23:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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