Share via


ICEM05

ICEM05 會確認合併模組與模組中的元件正確相關聯。 不正確地將元件與模組產生關聯,會導致元件與目標資料庫不正確地產生關聯。

合併模組 ICE 會儲存在名為 Mergemod.cub 的合併模組 .cub 檔案中,而不是儲存在包含用於封裝驗證之 ICE 的 .cub 檔案中。

結果

如果模組資料庫不正確地關聯元件和模組,ICEM05 就會張貼錯誤。

範例

ICEM05 會針對包含下列資料庫專案的模組張貼下列錯誤訊息,如下所示。

The component Component2.OtherModule.GUID2.1033 in the 
ModuleComponents table does not belong to this Merge Module.
The component Component1.MyModule.GUID1.1033 in the ModuleComponents 
table is not listed in the Component table.
The component 'Component3' in the Component table is not listed in the 
ModuleComponents table.

ModuleSignature 資料表

ModuleID 語言 版本
MyModule。GUID1 1033 1.0

 

ModuleComponents 資料表

元件 ModuleID 語言
Component1 MyModule。GUID1 1033
Component2 OtherModule。GUID2 1033

 

元件資料表 (部分)

元件 ComponentID
Component3 GUID4
Component2 GUID5

 

合併模組 ICE 會報告第一個錯誤,因為 ModuleComponents 資料表會嘗試將元件與另一個模組產生關聯,而該模組不是 ModuleSignature 資料表中指定的目前模組。 若要修正此問題,請將 Component2 之 ModuleComponents 記錄的 ModuleID 和 Language 資料行變更為目前模組 MyModule 的記錄。GUID1

合併模組 ICE 會報告第二個錯誤,因為 ModuleComponents 資料表中的第一筆記錄會嘗試將 Component1 與模組產生關聯。 此元件不存在於合併模組的元件資料表中。 模組只能與存在於模組中的元件相關聯。 若要修正此問題,請移除不存在元件的記錄。

合併模組 ICE 會報告第三個錯誤,因為模組會嘗試將 Component3 新增至目標資料庫。 此元件尚未與 ModuleComponents 資料表中的模組相關聯。 若要修正此錯誤,請將 Component3 的記錄新增至 ModuleComponents 資料表。

合併模組 ICE 參考