Corrupted LZ1 Encoded Data

We have an antiquated local archive process for one of our applications. It uses a local database to “opendocumentasurl” and save the mime’ed attachment in a document.

It has worked for years but it no longer works on our R8.5.1 client machine. Everything looks like it worked but the attachment cannot be opened on the web. It opens in Notes.

Error message (as shown to the browser):Error 200. HTTP Web Server: Lotus Notes Exception - Corrupted LZ1 Encoded Data

Error message (in the log): HTTP Web Server: Lotus Notes Exception - Corrupted LZ1 Encoded Data

I’ve unchecked “Use Lz1 compression” on all of the databases involved in the archive process.

It’s the oddest thing. Notes can open the file in the browser but the Domino rendering dies. If I try to right click and save the web/domino attachment I still get a 200 error.

Any ideas?

Subject: Check for LZ1 port compression

Check (in 8.5.1 std) for port compression, which is also LZ1 I believe, is one thing to rule out. File>>Preferences>>Notes ports

Hope it helps.

Subject: LZ1 compression is default?

It wasn’t the port settings… compression was already turned off.

I’m guessing this has something to do with the embedObject function in Lotusscript.

R6.5 clients that run the exact same process with the exact databases have their files compressed with Hoffman1.

R8.5.1 is compressing these files with LZ1 2. How can I get R8.5.1 to compress the files with Hoffman (or just skip the compression)?

Subject: try this

Resolving http error: Corrupted LZ1 Encoded DataTo resolve you need to run compact twice with switches. Use this procedure.

If you want to see the compact progress on the console as it processes each document you first need to add the following dynamic INI parameter: DEBUG_TRACE_LZ1=1 - be sure to remove this when complete.

issue the following console commands (NOTE: quotes around db filepath only required if there are spaces present in the path):

drop “<database>.nsf”

dbcache flush

load compact “<database>.nsf” -C -ZD

load compact “<database>.nsf” -C -ZU

ZD will downgrade the compression of files from LZ1 to Huffmann

ZU will recompress files back to LZ1

Subject: i will try it

Give me a couple of days to get my busy admins to help.

Thanks!