Skip to content

Commit 5d854b0

Browse files
authored
Merge pull request #6569 from Abdjulaziz/patch-1
Update path-too-long-exception.md
2 parents d9dfc25 + 7788798 commit 5d854b0

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

umbraco-cloud/troubleshooting/deployments/path-too-long-exception.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,18 @@ In order to fix this error, you will need to connect to the Live Environments pr
5555

5656

5757
```sql
58-
SELECT TOP (2000) [id]
59-
,[path],
60-
Len(path) As valueLength
58+
SELECT TOP (2000) [id],
59+
[path],
60+
LEN(path) AS valueLength
6161
FROM [dbo].[umbracoMediaVersion]
62-
WHERE path IS NOT null
63-
ORDER BY Len(path) DESC
62+
WHERE LEN(path) > 80
63+
AND path IS NOT NULL
64+
ORDER BY LEN(path) DESC;
6465
```
65-
3. Identify the files with a path longer than 80 characters.
66-
4. Find the files in the Media section in the Umbraco backoffice.
67-
5. Remove the media files from the backoffice.
66+
3. Find the files in the Media section in the Umbraco backoffice.
67+
4. Remove the media files from the backoffice.
6868
* Make sure to note down where the media item is being used in the content
69-
6. Change the names of the media files giving them shorter names.
69+
6. Change the names of the media files giving them a name shorter than 80 characters.
7070
7. Re-upload the renamed file to the Media section in the backoffice.
7171

7272
Once re-added in the backoffice, make sure to add the media back in the content where it was used.

0 commit comments

Comments
 (0)