# Consistent Unexpected difference in fileset version

**URL:** <https://forum.duplicati.com/t/consistent-unexpected-difference-in-fileset-version/7101>\
**Category:** Support\
**Created:** [May 21, 2019, 8:45am UTC](https://forum.duplicati.com/t/consistent-unexpected-difference-in-fileset-version/7101 "2019-05-21T08:45:54Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)\
**Post date:** [June 18, 2019, 11:41pm UTC](https://forum.duplicati.com/t/consistent-unexpected-difference-in-fileset-version/7101/7 "2019-06-18T23:41:49Z")

</div>

Could you look at your job logs at the last log before this failure, and see if it ran a compact? I’m currently looking at a problem where the newest fileset (0) gets this problem, but while looking I saw some suspect code that possibly could do damage to the File table which might cause a problem in some older filesets.

For any developers who know the database, does it seem right to delete a File row based on MetadataID? Maybe code meant to map MetadataID to a BlocksetID, then use BlocksetID for cleanup (like other lines)? Different handling of different table deletions might cause the unexpected difference (haven’t proven it yet).

> <https://github.com/duplicati/duplicati/blob/79d839546b238be79967bf8532267bfab2b08aa6/Duplicati/Library/Main/Database/LocalDatabase.cs#L407-L424>

Introduction of the MetadataID code was done [here](https://github.com/duplicati/duplicati/commit/3bcf7cf695b186e5c7465638b07f62a68afa3387) as part of a fix, but was it right? Note I’m not an expert.

---

_[View the full topic](https://forum.duplicati.com/t/consistent-unexpected-difference-in-fileset-version/7101)._
