Forum Discussion

team_aras_meupe_com's avatar
2 years ago

Error uploading a document. file name too long.

Hello, we have problems when uploading documents, as we have discovered if the file name is greater than 150 characters, the program enters an infinite loop.

I have looked in the code and in the CORE and I don't see anything anywhere that limits it to 150 characters.

Any suggestions where to look?

Too many thanks!!!

6 Replies

  • Let´s game it out - PLM edition! [emoticon:0e469978eb8947d18b9c41123db3725a] I love when people try stuff that has the potential to break the software.

    Do you get an error message? Maybe in the server log files?

    It´s unlikely that Innovator restricts the length of the files. I assume it´s more an Windows issue. Maybe the file path in the File Vault get´s too long which throws a error on server side that is not passed to the client.

    Typically, paths can be about 260 (?) characters long. The file vault structure itself already adds a few characters. I made a quick tests and had no problem uploading these kind of files, but I use MS Server 2022, which seems to allow longer paths. 

    You maybe can change the windows registry to allow longer file names. But I wouldn't change this unless it's really necessary.

    Angela

    • team_aras_meupe_com's avatar
      team_aras_meupe_com
      Creator III
      [quote userid="4412" url="~/f/development/55269/error-uploading-a-document-file-name-too-long/10420"]Me encanta cuando la gente prueba cosas que tienen el potencial de romper el software.

      Lol. hehehe. I look, but I don't touch!!

      Look, curiosity!!, I'm giving you a series of screenshots of the debugger, in case you see something "strange", you who have an expert eye on ARAS, :)

      ARAS has given the id, the full file name is in the variable, but when trying to upload it to the server, it fails. Enter an infinite loop.

      I tried to copy that same file to the server with the explorer and without problem.

      Thanks!!

      • alaxala's avatar
        alaxala
        Creator III

        I agree with Angela. You've most likely exceeded the max path length limit 260 chars. What the path to vault on your server? If something like "C:\Program Files (x86)\Aras\Innovator\VaultServer\Vault\InnovatorSolutions", the path length for vaulted file without filename will be exactly 110 symbols. So you have only 150 for file name.