メインコンテンツにスキップ

指定されたファイル名/フォルダー名/項目名が長すぎます

症状

ShareGate Migrate は、次のいずれかのエラーメッセージを表示します。

  • The specified file or folder name is too long. The URL path for all files and folders must be 260 characters or less (and no more than 128 characters for any single file or folder name in the URL).

  • The specified item name is too long. The name of the item cannot exceed the limit of 128 characters.

  • The specified folder name is too long. The name of the folder cannot exceed the limit of 128 characters.

  • The specified item name is too long. The name of the item cannot exceed the limit of 256 characters.

  • The specified folder name is too long. The name of the folder cannot exceed the limit of 255 characters.

  • The specified item name is too long. The server relative path of the item's parent folder cannot exceed the limit of 256 characters.

  • The specified folder name is too long. The server relative path of the folder's parent folder cannot exceed the limit of 256 characters.

  • The specified item name is too long. The server relative path of the item's parent folder cannot exceed the limit of 400 characters.

  • The specified folder name is too long. The server relative path of the folder's parent folder cannot exceed the limit of 400 characters.

  • The specified item name is too long. The server relative path of the item cannot exceed the limit of 260 characters.

  • The specified folder name is too long. The server relative path of the folder cannot exceed the limit of 260 characters.

  • The specified item name is too long. The server relative path of the item cannot exceed the limit of 255 characters.

  • The specified folder name is too long. The server relative path of the folder cannot exceed the limit of 253 characters.

または、次のいずれかの警告メッセージが表示されます。

  • The server relative path of the item exceeds 255 characters. The item will be copied, but you might experience unexpected behavior.

  • The server relative path of the folder exceeds 255 characters. The folder will be copied, but you might experience unexpected behavior.

エラーコード

  • IN-011-035

  • IN-013-035

  • IN-019-035

  • IN-019-056

  • IN-026-035

  • AN-067-035

  • IN-033-035

  • IN-072-035

  • IN-073-035

  • IN-077-035

  • IN-791-035

  • IN-026-000

  • IN-088-035

  • IN-098-035

  • IN-093-035

  • IN-105-035

  • AN-066-035

詳細

SharePoint では、ファイルまたはフォルダーのパスに使用できる文字数に上限が設けられています。制限は次のとおりです。

検証対象のパス

SharePoint 環境

最大文字数

項目名またはファイル名

オンプレミス

128

項目名またはファイル名

Microsoft 365/SharePoint 2019 (Insane Mode)

400

項目名またはファイル名

Microsoft 365/SharePoint 2019 (Normal Mode)

400

フォルダー名

オンプレミス

128

フォルダー名

Microsoft 365/SharePoint 2019 (Insane Mode)

400

フォルダー名

Microsoft 365/SharePoint 2019 (Normal Mode)

400

ドキュメントセット名

オンプレミス

128

ドキュメントセット名 - Content Type Folder ではない場合

Microsoft 365

255

ディスカッションボードのタイトル - Content Type Folder ではない場合

Microsoft 365

255

親フォルダーのパス

オンプレミス

256

親フォルダーのパス

Microsoft 365/SharePoint 2019 (Insane Mode)

400

親フォルダーのパス

Microsoft 365/SharePoint 2019 (Normal Mode)

400

項目のフルパス

オンプレミス

260

項目のフルパス

Microsoft 365/SharePoint 2019 (Insane Mode)

400

項目のフルパス

Microsoft 365/SharePoint 2019 (Normal Mode)

400

フォルダーのフルパス

Microsoft 365 (Insane Mode)(作成時のみ)

255

ファイル、リスト項目、またはフォルダーをコピーする際にこの上限を超える場合、ShareGate Migrate はパスが長すぎるため、この要素を移行先の SharePoint に作成できないことを示すエラーを表示します。

たとえば、次の URL を持つ SharePoint 環境のライブラリにファイルがアップロードされたとします。

そして、次の値が検証されることになります。

  • ファイル名: myFile.txt

    • 注: アップロードされた項目がフォルダーであった場合は、代わりにフォルダーに関する制限が適用されます。

  • 親フォルダーのパス: sites/mySite/mySubsite/myLibrary/myFolder/myParentFolder

  • 項目のフルパス: sites/mySite/mySubsite/myLibrary/myFolder/myParentFolder/myFile.txt

予期しない動作の可能性

特定の場合、SharePoint オンプレミスにおいて項目のフルパスの長さが255文字を超えると、予期しない動作の可能性を示す警告が表示されます。項目自体はコピーされますが、SharePoint でファイルを開く際や、項目やフォルダーを削除しようとする際に問題が発生する可能性があります。

解決策

問題がファイルパス全体の長さである場合:

フォルダー構造のより浅い階層にコピーしてください。

たとえば、MyLibrary/SubFolder1/SubFolder2/... のように多くの階層のサブフォルダーにファイルをコピーしている場合は、MyLibrary の直下に新しいフォルダーを作成し、その中にファイルをコピーしてください。

問題がファイル名の長さである場合:

移行元のファイル名を短い名前に変更してください。

Microsoft 365 の移行先にコピーする際に項目でエラーが発生する場合:

移行元のファイル名を短い名前に変更するか、フォルダー構造のより浅い階層にコピーしてください。

URL の全体の長さは、プロトコル名、サーバー名、フォルダーまたはファイルのパス、フォルダーまたはファイル名、および URL の一部として含まれるパラメーターを含めた、フォルダーまたはファイルパスの長さと等しくなることに注意してください。

したがって、URL の全体 = プロトコル + サーバー名 + フォルダーまたはファイルのパス + フォルダーまたはファイル名 + パラメーター となります。

詳細については、Microsoft のドキュメント「Naming Files, Paths, and Namespaces」を参照してください。

移行先で項目を開けない、または削除できず、コピー中に予期しない動作の可能性を示す警告を受け取った場合:

項目またはフォルダーの名前を短くし、フルパスが255文字を超えないようにしてください。

パスがこの長さを超えなくなれば、項目やフォルダーを通常どおり使用できるようになるはずです。

この記事はAIによって翻訳されています。ご不明な点がある場合は、英語の原文をご確認ください。

こちらの回答で解決しましたか?