Fixup purged corrupt document issue

Hi,

I have the following issue in one of my users mail archive databases:

22/07/2020 15:29:51 Warning: Fixup purged corrupt document UNID (86AA86A6:B9731533:EF061702:1820DA0B) from D:\IBM\Domino\data\TEST\a_TEST.tmp
22/07/2020 15:29:51 Warning: Fixup purged corrupt document UNID (77B74F4B:BCDED099:43253450:CD955A6D) from D:\IBM\Domino\data\TEST\a_TEST.tmp

The above can be seen in the log whenever a Compact -C (or DBMT) runs against the database. I have tried everything I can think of to try and get rid of these errors but nothing seems to work. I have tried a new replica, new db copy, Fixup -F -J, Compact -C -D, Updall -R. Whatever I have tried the errors will not go away.

If I try and find the documents via the UNID I just get a "Server Error: Entry not found in Index".

Is there anything I have missed to try and fix this?

Many thanks for any assistance...

Hello

You can run fixup offline databases. For example, if you wanted to run fixup offline only on mailfiles (Mail1, Mail2, and so on), do the following

IF transaction logging is on; database is not FT indexed

Running Maintenance on the Database via Command Prompt
1) Shut down your Domino Server. On your server console type: quit
2) Open a command prompt. Start --> Run --> cmd
3) On the Command Prompt, type in the path of your Domino PROGRAM directory. On the command prompt type: cd [program dir]
4) Now you can issue the commands for maintenance. Start with fixup.
on the command prompt type: nfixup.exe -J -F [databasename]
5) When the fix up completes run the compact.
on the command prompt type: ncompact.exe -c -i -d [databasename]
6) After the Compact completes, run the updall -R
on the command prompt type: nupdall.exe -R [database name]

IF transaction logging is not enabled; database FT indexed

Running Maintenance on the Database via Command Prompt
1) Shut down your Domino Server
on your server console type: quit
2) Open a command prompt.
Start --> Run --> cmd
3)On the Command Prompt, type in the path of your Domino PROGRAM directory.
on the command prompt type: cd [program dir]
4)Now you can issue the commands for maintenance. Start with fixup.
on the command prompt type: nfixup.exe -F [databasename]
5) When the fix up completes run the compact.
on the command prompt type: ncompact.exe -c -i -d [databasename]
6)After the Compact completes, run the updall
on the command prompt type: nupdall.exe -R -X [database name]

Hope this would help you

Thanks,

Sujit

Shaun,

Just to complement the info provided by Sujit, the message on the Domino console is stating that the fixup command has purged that corrupted documents from the DB, which means that the docs were deleted...
so it is expected that you won't be able to find those specific docs on the DB via UNID anymore.

Best Regards,

Wiliam

Hi William,

The problem is that everytime a compact -C is run (or DBMT) against this database the same 2 UNID's are shown as puged every single time. If compact did purge the documents I would not expect it to be reported again and again.

Many thanks,

Shaun

Thanks Sujit, thanks for the reminder about running offline, unfortunately I get exactly the same result.

So I shutdown Domino and ran all Fixup, Compact and Updall commands via cmd prompt. Same result...

When I run Compact -C again after the server is restarted I get the same two documents showing as purged, but clearly they are not as they keep alerting every time.

Is there anything else I can try to fix this?

Just to be sure: You get these messages again and again, always indicating the same documents (UNIDs)?

Yep, same two UNID's everytime.

I would try a compact -replica, what will create a new ID table.

Tried compact -REPLICA with the same result. The same two UNID's are reported as purged. But then when I run a Compact -C, they are reported as purged again.

This problem originated on a Domino 9.0.1 FP10 server. I have since moved the problem database to a Domino 11.0.1 server with exactly the same results.

Any further ideas would be greatly appreciated.

Sorry, I didn't see this earlier.

You mentioned compact -c and compact -c -d. What I'd propose is compact -c -i.

-i is for ignore notes with errors. This way, all valid notes should be copied, but the defect ones not.

Hi Thomas,

Many thanks for the input. However, I have tried Compact -C -D -i and the results were the same.

Hi ,

If DAOS is not enable on the database then please check below settings.
Please make sure you DO NOT have DEBUG_REPL_PIRC set. Take this out of your notes.ini's

Also, you can try setting DISABLE_FIXUP_PURGE_INDEX=1 to see if that helps.

You could also try turning off PIRC on selected databases to see if that narrows down the issue.

fixup considers a document with a missing attachment a corrupt note, and will try to purge it. There is no way to tell it not to purge a corrupt note.

Please run maintenance again and see if that works.

Thank you.

Regards
Praveen

Hi Praveen,

Many thanks for the information. After setting DISABLE_FIXUP_PURGE_INDEX=1 and running the Compact -C again there was no further warnings logged. I have also set this value back to 0 and run it again and all looks good. So this appears to have fixed this issue.

Do you have any further info on what DISABLE_FIXUP_PURGE_INDEX does as I could not find any documentation when I searched.

Many thanks again for your help.

Shaun

Hi Shaun,

Please find below the information on "DISABLE_FIXUP_PURGE_INDEX" in below URL-->

https://support.hcl-software.com/csm?id=kb_article&sysparm_article=KB0081342

Hope this could be of some help.

Regards,

Amit Sharma

Hi Shaun.

I am wondering if you have one or more response documents in the database whose parent document is one of the two UNIDs that keep getting mentioned.

Try creating a view in the database.

- View selection formula: SELECT @All

- Column 1 formula: @Text ( $REF; "*" )

- Column 2 formula: @Text ( @DocumentUniqueID )

- Make the first column sorted

- Enable "click on column header to sort" on column 2

- Make sure view option "show response documents in hierarchy" is not selected

Once done, save and then open the view. Check to see if you find a match for either UNID in column 1 first, then sort based on column 2 and try again.

Let us know what you find.

Regards.

Simon

Hi Simon,

Many thanks for taking the time to reply. I created the view, but unfortunately none of the UNID's mentioned in the Warnings displayed in the view.

I then tried Praveen's solution of adding DISABLE_FIXUP_PURGE_INDEX=1 and running the compact again. This has worked as the warnings are no longer displayed.

Many thanks again,

Shaun