If you have your Quicken file open when you experience this error, try these steps first:
To run the Validate & Repair tool on the data file from the File menu > File Operations > Validate & Repair option.
In the Validate File window that opens, click the top box to "validate file" and then click OK.