The DIM Rotate Database Tool prevents Companies from encountering Sent Form processing delays and possible stoppage issues in the Data Integration Module (DIM) due to large histories of processed Sent Forms. This tool fixes or prevents issues by renaming and archiving the DIM's old database file and creates a new one that only downloads data from the current date forward. This keeps the DIM running smoothly with minimal downtime and prevents any unexpected stoppages.
Step-by-Step Guide
Download the Rotate Database Tool
The Rotate Database Tool is also available in the file share:
Copy the RotateDatabase_X.exe (where X is the x86 for 32-Bit and x64 is for 64-Bit) into the DIM installation directory.
This may prompt before Administrator access since the DIM is typically installed in a protected Program Files folder.
Choosing the Correct Version to download the Rotate Database Tool There are two versions of the tool: RotateDatabase_x86.exe and RotateDatabase_x64.exe.
If you installed the 32-bit version of the DIM, use RotateDatabase_x86.exe (even if your server is 64-bit).
If you installed the 64-bit version of the DIM, use RotateDatabase_x64.exe.
If you run the wrong version, the tool will simply result in outputting an error.
Stop the DIM Service
The DIM service must be stopped while the tool runs. It runs quickly, so downtime will be minimal.
The DIM Service can be stopped using the DIM Admin Utility or using Windows Services. If the DIM Admin Utility is used, close that application after stopping the service.
Make sure all pending work in the DIM is completed before running the tool. Any queued dispatches will be dropped and skipped after running the tool.
Deploy and Run the Tool
Open an elevated command prompt and navigate to the DIM installation directory.
This is necessary because the DIM is typically installed in a protected Program Files folder.
Run RotateDatabase_X.exe (where X is the x86 for 32-Bit and x64 is for 64-Bit).
The tool will display informational messages in the command window and print ‘Done’ when complete.
Verify and Restart
After the tool runs successfully, use the File Explorer to confirm the old Transformer.sdf file will be renamed with a timestamp (e.g., Transformer.20220315T143212.sdf).
A new Transformer.sdf file will be created with empty dispatch queues.
Restart the DIM service and verify that it resumes downloading and processing data from where it left off.
If the DIM service account has custom permissions, you may need to update permissions on the new Transformer.sdf file.
Handling Errors
If there are any errors, the old Transformer.sdf file will remain intact, and error information will be written to the console.
You can resume the DIM with the old database file and send the error information to the Technical Support Team for further debugging.
Side Note: If you're upgrading the DIM and have a large database, use the Rotate Database Tool to archive the Transformer.sdf file. This will help ensure a smooth upgrade. If the old Transformer file has been archived, previously used minRFITimestamps in project files will no longer limit jobs by date, and the DIM will remember where it left off and continue from there. Downloading previously sent forms post-rotation is not recommended.
By following these steps, you can ensure that your DIM continues to process forms efficiently, even with high traffic. If you encounter any issues, please reach out to our Support Team, email us at F2BSupport@field2base.com.