Database replication module does not create new objects

0
After upgrading to Mendix 5.12 and Database replication module 4.3 we do not get any new tables in the database after the button "Sync the database". We connect to a SQL Server database. Result is: Statistics - FINAL statistics, Objects of type 'DatabaseReplication.Table' Created: 0 Synchronized: 131 Not found: 8 Skipped: 0 We have 8 new tables in the source database, but they are not inserted into the Mendix database. That means we are not able to create new table mappings for these tables. It looks the setting is: SynchronizeOnlyExisting, when a database sync is executed. Is there any setting that can be set that also non existing tables are synchronized?
asked
3 answers
0

This is an issue with the latest version of the module, we'll try and release a new version as soon as possible.

To continue working, what you could do is add the line of code that is written below.

settings.getMainObjectConfig().setObjectSearchAction(ObjectSearchAction.FindCreate);

If can add this line of code anywhere between lines 46-49 and between lines 90-95 in the file: javasource\databasereplication\implementation\DbReader \ "SQLServerReader.java"

If you make sure that the line of code is added on both places the table action for SQL server has been fixed again. If you need to sync with oracle or postgresql or any other database, this temp fix has to be done in those actions as well.

The actual data synchronization will still work without any problems, this problem does not influence that behavior.

answered
0

I have the same problem, and I tried adding the line of code but then the file can't be compiled. It is looking for the variable ObjectSearchAction, which it cannot find.

answered
0

Adding the code in the two places did not fix the problem unfortunately. Still no error and still no tables. Any other possible solution?

answered