microsoft / Dual-write-automations

MIT License
27 stars 5 forks source link

Cannot configure same map multiple times with different versions #21

Open markduk opened 11 months ago

markduk commented 11 months ago

There are times when you need to configure the same map multiple times with different versions and run initial sync. This might be to overcome a circular reference issue or to handle over 10 lookups.

I'd like to configure <Map master="FO" mapName="xxx_salesordertypes - XXX Sales order types" version="1.0.0.1" group="RunWithSync" authors="XXX" keys="xxx_salesordertypeid,xxx_company.cdm_companycode" /> <Map master="FO" mapName="xxx_salesordertypes - XXX Sales order types" version="1.0.0.4" group="RunWithSync" authors="XXX" keys="xxx_salesordertypeid,xxx_company.cdm_companycode" />

Many Thanks

Hax1337 commented 11 months ago

Hey,

I think I know where you want to go and know the issue you will be facing.

I can suggest a workaround on this, as this requires some larger changes on the structure.

  1. Create multiple config files each time with different map version you want to sync
  2. Create a .bat file where you execute based on the commandline script DWHelperCMD.exe -c "your config"
  3. Change the config file for each line you want to execute.

The above would then give you a similar result where it applies different map versions and run initial sync