リストの添付ファイルの並び順

みなさんこんにちは。
SharePoint サポートチームの荒川です。

今回はリストの添付ファイルの並び順に関する既知の問題についてお知らせします。

[現象]
MOSS 2007 から SharePoint 2010 にアップグレードしたら、リストの添付ファイルの並び順がランダムに変わってしまった。

 

 

 
[原因]
この問題は SharePoint 2010 の既知の問題です。

[解説]
この問題は、SharePoint 2010 の内部動作において添付ファイルの一覧を取得するための SQL クエリで並び順を明示的に指定していないために発生します。
SharePoint 2010 では、添付ファイルの情報が保存されるコンテンツ データベース内で、添付ファイルごとに内部的な ID を付与して管理しています。この ID はランダムな要素を含んでいて、アイテムの作成順序によりシーケンシャルな値が発行されません。
ユーザーが SharePoint サイトで添付ファイルの一覧を表示する際には、内部的に proc_GetAllAttachmentsInfo ストアドプロシージャが呼び出されますが、このストアドプロシージャ内において、添付ファイルの ID を元にソートを行っているため、結果的に添付ファイルの並び順がランダムに返されます。

[対処方法]
2012 年の 12 月 (SP1 以降) にリリースされた修正プログラム (CU) において、proc_GetAllAttachmentsInfo ストアドプロシージャが改良され、結果セットをファイル名順にソートするようになりました。本動作を修正するには、お使いの環境に 2012 年の 12 月以降の CU を適用してください。
 
<2012 年 12 月 CU の入手先>
SharePoint Server 2010
タイトル:Description of the SharePoint Server 2010 cumulative update package (SharePoint server-package): December 22, 2012
URL     :https://support.microsoft.com/kb/2596955

SharePoint Foundation 2010
タイトル:Description of the SharePoint Foundation 2010 cumulative update package (SharePoint Foundation server-package): December 11, 2012
URL     :https://support.microsoft.com/kb/2596957

<参考情報>
2012 年 12 月 CU に含まれる個別の修正 (KB2589331) において、該当の修正に関する情報が公開されています。

タイトル:Description of the SharePoint Foundation 2010 hotfix package (Wssmui-nl-nl.msp, Wss-x-none.msp): December 11, 2012
URL     :https://support.microsoft.com/kb/2589331

--- 抜粋 ---
Assume that you add multiple attachments to a list item in SharePoint Foundation 2010. In this situation, the attachments are not displayed in alphabetical order in the list item.
------------