---
title: "Configure the maximum relative item path length"
slug: "configure-the-maximum-relative-item-path-length"
abstract: "How to configure the maximum relative item path length of the Sitecore Content Serialization (SCS) system."
---
# 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 New Technology File System (NTFS), the maximum length is 240.

To configure the maximum relative item path length:

1. Go to your project folder.
2. Open the `sitecore.json` file.
3. Locate the `defaultMaxRelativeItemPathLength` property:

    ```csharp
    "serialization": {
      "defaultMaxRelativeItemPathLength": 120,
      "defaultModuleRelativeSerializationPath": "serialization"
    }
    ```

4. 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](https://doc.sitecore.com/xp/en/developers/103/developer-tools/relative-serialization-path-hashing-and-aliasing.html "Relative serialization path hashing and aliasing"))*.

    > [!important]
    > You 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.