Problem
You are receiving a License Error Code: -40 error when using the IMAGINiT Utilities for Revit.
Solution
According to RLM documentation, the License Error Code: -40 error is caused by a clock setback detected on your machine.
This doesn't always mean that your clock was set back manually, so below are some items to look at.
- Verify and Sync the Clock
- Open Windows Settings > Time & Language > Date & Time.
- Turn on Set time zone automatically.
- Under additional settings, select Sync Now.
- Find and Fix Future Dated Files
- Open a Windows Command Prompt window.
- Run the following three commands:Â
Command 1:
dir /od /ta C:\Windows > "%TEMP%\RLM-Clock-Check.txt"
Command 2:
dir /od /tw C:\Windows >> "%TEMP%\RLM-Clock-Check.txt"
Command 3:
notepad "%TEMP%\RLM-Clock-Check.txt" - After running the third command, a Notepad window should automatically open displaying the results.
- Check the Notepad output file for any files or folders that are dated in the future. For example, these folders are dated with the year 2064:

- You will need to change these files/folders to correct their dates. To change the date of Files do the following:
1. Open the file in Notepad.
2. Make a minor, harmless change—such as adding a space at the bottom or pressing Enter to add a blank line.
3. Save the file. This forces Windows to immediately rewrite the file metadata, pulling its "Last Modified" timestamp to right now.
(It is recommended to backup these files before making any changes.) - To change the date of Folders do the following:Â
1. Create a text file in the folder.
2. Delete the text file.
3. Creating the text file within the folder should update the folder's timestamp.
About the Author
Follow on Linkedin More Content by Derek Piccininni















