15.12.2007, 01:11 | #1 |
Участник
|
axStart: Synchronizing dictionary gives unclear errors
Источник: http://axstart.spaces.live.com/Blog/...C0A0!176.entry
============== <div> Sometimes synchronizing give strange unclear errors. Most of the time the issue can be solved by reindexing the database. But even that will not solve the issue sometimes. So the solution we need is a better information witch table is not synchronizing. This can be done by changing method dbSynchronize in the application class. Solution has been created by Kevin Deegens (thanks Kevin!) X++: boolean dbSynchronize(tableId tableId = 0, // 0 = all tables, non-zero is a valid table handle boolean syncAsNeeded = true, // true = objects touched in the AOT, false = unconditional synchronize boolean continueOnError = true, boolean showProgress = true ) // true = report all problems, but throw only after all tables are synchronized, false = stop synchronize after first error/problem { boolean ok; // PRO, 23.08.2007, KDE begin SysOperationProgress progressBar = new SysOperationProgress(); Dictionary dictionary = new Dictionary(); DictTable dictTable; int totalNumOfTables; TableId tableIdNum; int i; str infoLogTxt; container infoLogText; // PRO, 23.08.2007, KDE end ; setprefix("@SYS22807"); // PRO, 23.08.2007, KDE begin if (syncAsNeeded) { // PRO, 23.08.2007, KDE end ok = super(tableId, syncAsNeeded, continueOnError, showProgress); // PRO, 23.08.2007, KDE begin } else { totalNumOfTables = dictionary.tableCnt(); progressBar.setCaption("Tabel synchroniseren"); progressBar.setTotal(totalNumOfTables); .......
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|