Failed to delete large size files from Media Library

Hanh Dang asked on December 11, 2017 05:27

Hi all,

I have a website which is hosted on Azure. A timeout error showed up every time I tried to delete a large size file from Media Library (larger 20Mb). It works correctly for small size files.

I saw many errors with EventCode are: CreateVersion, DELETEMEDIAFILE in Event Log. I also saw many records store data of files which were deleted successfully in table CMS_ObjectVersionHistory (and the field VersionBinaryDataXML is not empty). It means Kentico tried to create an version of file (include covert physical file to binary data) and save to database before delete it.

The problem is, I have already turn off Object Versioning setting for Media Files.

So the question is, why does Kentico keep creating version of file while that setting has been turn off? Can we turn it off completely.

Best regards,

Hanh Dang

Correct Answer

Michal Samuhel answered on December 11, 2017 08:20

Hi Hanh,

Did you disable also recycle bin setting?

https://docs.kentico.com/k10/configuring-kentico/working-with-object-versioning/objects-recycle-bin

Objects in recycle bin are also stored within versioning tables. Also you may consider cleanup of versioning tables per Brians blog and link inside:

http://www.mcbeev.com/Blog/April-2015/11-Spring-Cleaning-Tips-for-Your-Kentico-Website-Part-2

It is possible that versioning tables are bloated and may need to be trimmed a bit as this could be causing operation to fail.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Hanh Dang answered on December 11, 2017 08:40 (last edited on December 11, 2017 08:50)

Thanks Michal,

That helps a lot!

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.