file path too long error

1
Hi  I attempted to use the Summerhill_Hospital_9_1_1_v2_Module6 app package for the training path “Crash course”. However when importing I get a “File path too long error” – so I assume that either the package contains very long names or I need to use a different local folder. So how do I change the default folder used in Studio Pro? Or is the package error prone?
asked
6 answers
4

This is common issue when using Dropbox/Box/OneDrive or another backup tool to synchronise your local folders since it prefixes large file paths.  

As Robert suggests the best solution is to store all your Mendix projects at C:\Mendix. 

Open Studio Pro > Open App > Locally from Disk > Select your .mpk > New Team Server > Specify the new project directory e.g. “C:\Mendix\Summerhill_Hospital_9_1_1_v2_Module6-main”

From this point onwards all newly created projects from v9.1.1 will default to C:\Mendix as your Mendix directory. 

answered
2

Are you attempting to use the package from within many nested folders, maybe with long filenames?

Are you able to move the package nearer the root of a drive like C: and then see if the problem still happens?
 

answered
0

I tried several options to use the package from also very short file paths

So the problem is the default Mendix folder where it unzips the package into – during this process some files cannot be extracted due to too long files paths.

Hence I assume that I need to change the Mendix folder – which I do not know how to do?

Or the package itself contains very long file paths and hence makes it difficult to unzip

answered
0

Hi,

I am too having some issues with the file path on my Windows computer. I've tried doing what Elliot has suggested but I haven't had the best of luck. Can someone who has used the 10.0.0 version help me? Also, I'm trying to do this for my module 3 app section for the "Become a Rapid Developer" lessons.

answered
0

Change the name of the folder where your app is located to make it shorter and give it a try!

It worked for me and I hope it works for you too.

answered
0

If you're encountering a 'File path too long' error, it might be worth trying LongPathTool to manage these long paths effectively. It can help resolve such issues. You might also want to check if changing the default folder in Studio Pro helps.

answered