SUMMARY
This issue has been classified as a defect by Strategy. A workaround is available in the current document. A solution/code fix for this issue is not available in current releases but is being reviewed for a future Strategy release.
SYMPTOM
In Strategy 10.0 - 10.1 Secure Enterprise Platform, error "Table 'MSI_STATS_LOG' does not exist" is seen in DSSErrors.log during Enterprise Manager data load.
Below error is caught in the DSSErrors.log:
[Database Classes][Error] Execute Query failed. Error type: Odbc error. Odbc operation attempted: SQLExecDirect. [42S02:2706: on SQLHANDLE] [Strategy][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]Table 'MSI_STATS_LOG' does not exist. Connection String: DSN=XXX;UID=XXX;DB=XXX;PORT=1433;HOST=XXX;. SQL Statement: UPDATE STATISTICS MSI_STATS_LOG WITH FULLSCAN.
<log4j:event logger="MAEntMgr" timestamp="1442613613121" level="DEBUG" thread="pool-1-thread-3"> <log4j:message type ="DEFAULT"><![CDATA[Executing: Executing script: C:\Program Files (x86)\MicroStrategy\Enterprise Manager\Scripts\Upd_Fact_Table_Stats_SQL.sql on XXX]]></log4j:message> </log4j:event> <log4j:event logger="MAEntMgr" timestamp="1442613613433" level="INFO" thread="pool-1-thread-1"> <log4j:message type ="DEFAULT"><![CDATA[Executing SP_IS_SESSION]]></log4j:message> </log4j:event> <log4j:event logger="MAEntMgr" timestamp="1442616568722" level="ERROR" thread="pool-1-thread-2"> <log4j:message><![CDATA[UPDATE STATISTICS MSI_STATS_LOG WITH FULLSCAN]]></log4j:message> </log4j:event> <log4j:event logger="MAEntMgr" timestamp="1442616568722" level="ERROR" thread="pool-1-thread-2"> <log4j:message type ="DEFAULT"><![CDATA[Error executing: UPDATE STATISTICS MSI_STATS_LOG WITH FULLSCAN]]></log4j:message> </log4j:event> <log4j:event logger="MAEntMgr" timestamp="1442616568878" level="ERROR" thread="pool-1-thread-2"> <log4j:message><![CDATA[java.sql.SQLException: Execute Query failed. Error type: Odbc error. Odbc operation attempted: SQLExecDirect. [42S02:2706: on SQLHANDLE] [Strategy][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]Table 'MSI_STATS_LOG' does not exist.]]></log4j:message> <log4j:throwable><![CDATA[com.Strategy.maem.exceptions.EMException: java.sql.SQLException: Execute Query failed. Error type: Odbc error. Odbc operation attempted: SQLExecDirect. [42S02:2706: on SQLHANDLE] [Strategy][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]Table 'MSI_STATS_LOG' does not exist. at com.Strategy.maem.connections.database.DatabaseConnection.executeStatement(Unknown Source) at com.Strategy.maem.dataload.admin.ScriptBasedCommand.executeCommand(Unknown Source) at com.Strategy.maem.dispatcher.command.BaseCommand.execute(Unknown Source) at com.Strategy.maem.dispatcher.command.BaseCommand.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.sql.SQLException: Execute Query failed. Error type: Odbc error. Odbc operation attempted: SQLExecDirect. [42S02:2706: on SQLHANDLE] [Strategy][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]Table 'MSI_STATS_LOG' does not exist. at com.Strategy.tools.MADbJniDriver.MADbJniStatement.nativeExecute(Native Method) at com.Strategy.tools.MADbJniDriver.MADbJniStatement.execute(Unknown Source) at com.Strategy.tools.MADbJniDriver.MADbJniStatement.execute(Unknown Source) ... 7 more ]]></log4j:throwable> </log4j:event>
UPDATE STATISTICS MSI_STATS_LOG WITH FULLSCAN
/*UPDATE STATISTICS MSI_STATS_LOG WITH FULLSCAN;*/