File deletion when running the app

0
Seeing lots of these in the console when running the app   Prevented deletion of one or more files that are still in use. Please contact Mendix Support to prevent this from happening in the future. (UUIDs: <<looong list of UUIDs>)   Team mates don't seem to see the same logs:    Any ideas ? I can still run the app - but maybe something sub-optimal is happening ?
asked
1 answers
1

Hi Matt,

This log typically indicates that file documents (or temporary files) that should have been deleted are still referenced or in use somewhere in the runtime. Mendix is preventing deletion to avoid data loss or corruption.

 

Clean Deployment Directory: In Mendix Studio Pro, go to App-> Clean deployment directory. Then re-run the app to see if the logs persist.

 

Check File Handling Logic: Review microflows or Java actions that deal with File document or image entities. Ensure you’re closing all file input/output streams and deleting unused file objects correctly.

 

  • Reset Your Local File Data:

    • Stop the app and manually delete the contents of these folders:

      • <your-project>/deployment/data/files

      • <your-project>/deployment/tmp

Then restart the app.

 

Compare Logging Configuration:

Check logging settings in Studio Pro to ensure everyone is using the same configuration.

 

I hope this one helps you! :)

answered