# \[BUG\] Plex duplicated files within the library

**URL:** <https://forums.plex.tv/t/bug-plex-duplicated-files-within-the-library/872545>\
**Category:** General Discussions\
**Tags:** library-management\
**Created:** [March 18, 2024, 5:37pm UTC](https://forums.plex.tv/t/bug-plex-duplicated-files-within-the-library/872545 "2024-03-18T17:37:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![x1ao4](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/x1ao4/32/298402_2.png) [@x1ao4](https://forums.plex.tv/u/x1ao4)\
**Post date:** [March 18, 2024, 5:37pm UTC](https://forums.plex.tv/t/bug-plex-duplicated-files-within-the-library/872545/1 "2024-03-18T17:37:16Z")

</div>

I recently noticed that Plex has generated duplicates of some files that don’t exist. As shown in the screenshot, there’s only one file with this title in my folder, but Plex shows three identical directories and filenames. However, there’s only one delete button. It’s impossible to have three files with the same name in the same folder, and indeed, I only have one file in my folder.

 ![重复文件](https://global.discourse-cdn.com/plex/original/4X/3/e/d/3edec20dfa832e479860ca2be56759c048a1dd37.png)

This issue causes Plex to perceive this item as consisting of three parts. The duration of this item has tripled, and during playback, it repeats twice after playing through once before being considered completed. Additionally, clicking the “Mark as Watched” button while continuing to watch doesn’t mark it as watched. However, you can mark it as watched from the show’s page.

I’ve tried emptying the trash, scanning the library files, and refreshing metadata, but none of these solutions have resolved the issue. Optimize Database and Clean Bundles didn’t help either. This issue isn’t limited to just one file. There are 10 episodes in this show that are experiencing the same problem, while the others seem unaffected.

Is there any way to resolve this issue, or is it a bug? I originally had server version 1.32, and I encountered this issue, but it wasn’t resolved. So I upgraded to 1.40, but the problem still persists.

---

<div class="post-metadata">

**Author:** ![Divideby0](https://avatars.discourse-cdn.com/v4/letter/d/74df32/32.png) [@Divideby0](https://forums.plex.tv/u/Divideby0)\
**Post date:** [March 18, 2024, 6:55pm UTC](https://forums.plex.tv/t/bug-plex-duplicated-files-within-the-library/872545/2 "2024-03-18T18:55:03Z")

</div>

Wow, that is strange. All I could think of is that you might have this folder location as a source for your library 3 times, causing it to see each file 3 times. Does this triplicate bug happen with any other file or show within the same library as this one?

If not, then my guess is wrong, and you can ignore me.

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [March 18, 2024, 7:30pm UTC](https://forums.plex.tv/t/bug-plex-duplicated-files-within-the-library/872545/3 "2024-03-18T19:30:51Z")

</div>

It happens when several scans are running at once.  
For instance automatically and periodically, or manually.

---

<div class="post-metadata">

**Author:** ![x1ao4](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/x1ao4/32/298402_2.png) [@x1ao4](https://forums.plex.tv/u/x1ao4)\
**Post date:** [March 19, 2024, 11:52am UTC](https://forums.plex.tv/t/bug-plex-duplicated-files-within-the-library/872545/4 "2024-03-19T11:52:07Z")

</div>

The duplication was solved by moving those 10 episodes to another location, removing them from the library and then re-scanning them into the library, but I still think it’s a bug that needs to be fixed, and this time I only found 10 files, and if there are a lot of files and they are scattered across different directories it’s still a pain in the ass to manipulate all of them, and this duplication shouldn’t be happening.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [June 17, 2024, 11:52am UTC](https://forums.plex.tv/t/bug-plex-duplicated-files-within-the-library/872545/5 "2024-06-17T11:52:50Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
