In the target entity query I have several data sources. Three of them point to the same database table but with different ranges.
The ranges have 2 fields, ModuleType (base enum ModuleInventPurchSales) and a custom base enum field. When I copy from staging to target I never get the correct values for ModuleType (always zero), only the custom field gets the correct value.
The standard product entity also has range for ModuleType and I have not found any difference between that query and mine.
Any ideas why the ModuleType never gets written to database table? Are there any other ways to specify default values for a target field (e.g. if datasource A set ModuleType = Sales order, if datasource B set ModuleType = Purchase order)?