Skip to main content
Participant
February 16, 2022
Answered

Generate Assets: Asset path is too long

  • February 16, 2022
  • 9 replies
  • 4310 views

Hey, i can´t generate my PS assets since the last update. The reasen in the error.txt show that the "Asset path is too long" - WHY??

I need this option in my workflow!

Correct answer ICF München23188292a37a

I found out that the error is with Onedrive

9 replies

Participant
August 21, 2024

After Goggling "Asset path is too long" I came upon this question. Didn't really see the answer here. But after a few minutes, I discovered this doesn't always mean the name of the asset you're creating is too long, but the name of the PSD itself or even the folder it is in is too long. 

Known Participant
August 21, 2024

I have managed to shorten up the file name or folder name to get it to work, but overall I believe it is the PATH name that is the issue. You could have a short folder/file name, but be buried in a folder file structure that is over a certain length (256 characters?) total and then it doesn't work.

Participant
April 6, 2024

Make your life easier and download Long Path Tool to tackle these problems. 

Known Participant
April 8, 2024

Another new account with zero history promoting software.

Known Participant
April 2, 2024

I'd like to know more about this. 

Is it this you're reffering to? https://longpathtool.com/
I'd like to use it but it looks like it's an 'unidentified developer' on macOS. The paid version is $60 personal / $120 commercial, so I'd have to be really using this to make it worth it. So, it's interesting, and would like to hear more from those that have used it.

Participating Frequently
April 3, 2024

Yeah exactly, I am talking about it. I am always here to help, tell me what do you want to know? It is easy to use. The website has everything you want to know. But you still need help, I am always here.

Whit_Serenity
Inspiring
September 20, 2023

Wow, what a dumb and probably easily fixable bug. 😕😕 The path to the file should be pretty much irrelevant here since the PSD and exports are relatively right beside one another. I realize that Adobe has kind of "moved on" from this feature, but it's a great feature that doesn't have a better equivalent in some contexts. Come on, Adobe, fix this!

Inspiring
March 16, 2023

I'm still seeing this in 2023. It's puzzling because I have multiple PSD in the same location and some give me the error while others don't. So while it might be an issue with file system depth, there's still some weirdness going on. For the record the output/export asset file names are only 16 characters in my case. I agree that this needs to be resolved as cloud-based directories are integral to many if not most workflows these days. 

 

Workaround: Use the manual method of right-click asset > Quick Export as [type]

 

The workaround handles multiple asset selection at once, which is handy and quick. And of course it doesn't bark about the asset path length. 

Known Participant
March 17, 2023

Good to know there's a quickworkaround. I often setup photoshop documents with many Generate-exportable layers, so it's impractical for me, but good to use in a pinch. I hope Adobe keeps inproving Generate. It often gets stuck, doesn't export certain layers, and/or throws errors until Photoshop is completely restarted.

LeoGra
Participant
June 22, 2023

So; I had the same issue and it was related to the parent folder name containing the PSD file was too long. As soon as I moved the PSD file out of the parent folder and tried again generating assets worked as expected. Hope this helps. 

Known Participant
July 13, 2022

I've been having this issue as well, opening a Photoshop document from Google Drive Desktop. It's 227 characters in the path with the filename and extension -- I assume that regardless of if it's on a server or a local drive a long path over a certain amount will cause this. Seems like it could be easily fixed. It'd be LOVELY if it could be fixed, because working from Google Drive remotely has become part of our workflow, and this really throws a monkey wrench into it.

ICF München23188292a37aAuthorCorrect answer
Participant
February 16, 2022

I found out that the error is with Onedrive

Participant
April 5, 2024

This is not technically the correct answer though it's being indicated as such. The correct answer would be related to fact that Adobe Photoshop's Image Generator conforms to an arguably outdated max asset path of 255 characters and the author's OneDrive path (visible via right-click "Get Info" [MacOS] or "Properties" [Windows]) likely caused the destination to exceed that limit. OneDrive would not be in error or at fault for Adobe's plugin character limit.

Whit_Serenity
Inspiring
April 5, 2024

Funny, I hadn't looked at the O.G. ticket closely enough to notice that, you're 100% right. In my case, I'm using Google Drive, not OneDrive. The error is Adobe's outdated limitation.

Participant
February 16, 2022

So why is there a limit for the characters in the path? My shortest path is 36 characters long (path + filename + extension). What is the reason behind to limit it?

Stephen Marsh
Community Expert
Community Expert
February 16, 2022

So, how many characters in the path + filename + extension?