Configure the maximum relative item path length
A correctly configured maximum relative item path length ensures that the Sitecore Content Serialization (SCS) system does not violate the maximum path and file name lengths of your file system. For Microsoft NTFS, the maximum length is 240.
To configure the maximum relative item path length:
-
Go to your project folder.
-
Open the
sitecore.json
file. -
Locate the
defaultMaxRelativeItemPathLength
property:RequestResponse"serialization": { "defaultMaxRelativeItemPathLength": 120, "defaultModuleRelativeSerializationPath": "serialization" }
-
Change the value to the maximum relative item path length calculated with this formula: The maximum relative item path length = the file system maximum path and file name length - (the base path length + the serialization path length).
ImportantYou must include path separators such as
/
and\
when counting path lengths.A maximum relative item path length of 100-200 is a reasonable choice for maximum compatibility.