Differences

This shows you the differences between two versions of the page.

Link to this comparison view

control_error_-_invalid_tlv_record [2019/01/27 11:28] (current)
Line 1: Line 1:
 +====== Control Error - Invalid TLV Record ======
 +
 +
 +
 +===== Error Message =====
 +
 +
 +
 +Invalid TLV Record
 +
 +
 +
 +===== Explanation of Error =====
 +
 +
 +
 +Unfortunately, this message only means that Crystal Reports hit an unexpected error in the opening of the report.
 +
 +
 +
 +When a report is printed, the system report is extracted to your temp folder. (For custom reports, it is copied there anyway so that multiple people accessing the report don't cause problems with Crystal - which it does.) One situation we've come across is that when you print out of Control it creates a temp file under the current user logged into Windows. Folder in Windows have a maximum number of files (depending on the version of Windows and disk file format). If the folder reaches its maximum file count or the harddrive is full, Crystal will bomb and return this error.
 +
 +
 +
 +The knowledge base entries on SAP/Business Objects website point to lots of problems that are related to DLLs not being installed or the DLLs that are installed being for a different version of Crystal Reports.
 +
 +
 +
 +===== Severity =====
 +
 +**Normal**. User is not down but can't print anything.
 +
 +
 +
 +===== Possible Root Cause(s) =====
 +  * The customers Windows temporary folder has too many .tmp files in it and can't create any more.
 +  * The drive the temporary folder is on is out of space.
 +
 +
 +
 +===== Resolution #1 =====
 +  - Open the Control_Options.txt file and insert the following switch: **CacheCrystalReports=0**
 +  - Delete the Windows Temp files located under:
 +    * For Windows 2000 and XP
 +      * C:\Documents and Settings\"Current User"\Local Settings\Temp
 +    * For Vista and Windows 7 this is under
 +      * C:\Users\"Current User"\AppData\Local\Temp
 +    * Alternatively, click on **Start** | **Run** and type in **%temp%** to be brought directly to the temp folder.
 +    * If have trouble deleting the files directly from the Explorer window you can delete them using a command prompt more effectively.
 +      * Open a command prompt.
 +      * Type in this command **CD %temp%** and press Enter.
 +      * You will be brought to the Windows Temp folder, now type **Del *.***
 +      * Type **Y** to confirm the deletion of the temp files.
 +  - Try reprinting the report. If you can preview it, you can print.
 +  - If not, check that there is reasonable free space on the C: drive.
 +  - Reboot. Repeat the deleting of any temp files that could not be deleted.
 +  - If still a problem and the report is a custom report, open it in Crystal Reports, run a Verify Report, and resave it. Then try again.
 +  - If still a problem, Reinstall and Re-register the Crystal DLLs.
 +
 +
 +
 +=====   =====
 +
 +
 +
 +===== Resolution #2 =====
 +  - Delete the files using the supplied batch file listed below, this file is compatible with Windows Vista and Windows 7.
 +
 +
 +
 +<html><div style="margin-left: 20px;"> Caution: This will remove the temporary files that are not in use from your system, it is recommended that you close any open programs and save your work prior to executing this file. </div></html>
 +  - Download this file to the desktop of the computer experiencing the error then rename it to Delete Temp Files.bat, click Yes when prompted to change the file extension.
 +
 +
 +
 +<html><div style="margin-left: 20px;"> {{ :delete_temp_files.bat.txt|}} </div></html>
 +
 +
 +
 +=====   =====
 +
 +
 +
 +===== Resolution #3 =====
 +  - Look in Add / Remove Programs in the Control Panel.
 +  - If there is a entry for Control Setup, un-install it. This is an older version of the Crystal Reports installer. This will not uninstall Control.
 +  - Install the latest version of [[http://private.cyrioussoftware.com/support/downloader.aspx?file=download_250|Crystal Reports XI]].
 +
 +
 +
 +===== Resolution #4 =====
 +  - Delete the logo (and any other images) from the report or replace the logo with a 50kb or smaller logo.
 +  - Test the report in Control.
 +  - If that resolves the problem, then scale down your original logo until the problem stops occurring to determine the maximum filesize you can have without getting the issue.
 +
 +
 +
 +===== Version Information =====
 +  * Reported : 7/1/09
 +  * Version(s): Control 4.3
 +
 +
 +