Forum Discussion

Suleyman Ali's avatar
Suleyman Ali
Iron Contributor
Jun 13, 2022

onedrive: The data area passed to a system call is too small

hi,

 

We are getting some odd errors in onedrive for business where files/paths seems longer that 255.  one issue is the error when opening

 

The data area passed to a system call is too small

 

if we rename it will popup saying 'the filename is either invalid or too long'

 

now we have long files enable via the registry.  at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem

 

is there anything else we need to do so windows can accept long file names in explorer

3 Replies

  • MikeWWW's avatar
    MikeWWW
    Iron Contributor
    Don't even try. You're just moving the point of failure to somewhere else in the OneDrive ecosystem e.g. a user tries to sync on another device with a regular path length tolerance. Data corruption/loss will follow.
    • Suleyman Ali's avatar
      Suleyman Ali
      Iron Contributor
      I do understand that and will get the user to shorten. so we dont have to end up with other devices that cant open it.

      however, is there no fix to this or is it AS IS
      • MikeWWW's avatar
        MikeWWW
        Iron Contributor

        Suleyman Ali you need to work within the published limits. Cloud storage may sync with a variety of devices and browser/operating system platforms, so there are many constraints on what will work reliably.