2016-07-12 100 views
0

嘗試傳輸數據時出現此錯誤。我是SSIS的新手,但是如果你能幫上忙,那就太好了。SSIS - 將數據從Sharepoint源傳輸到OLDB目標時出錯

[OLE DB Destination 1 [2]] Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E21. 
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80040E21 Description: "Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.". 

[OLE DB Destination 1 [2]] Error: An error occurred while setting up a binding for the "Comments" column. The binding status was "DT_NTEXT". The data flow column type is "DBBINDSTATUS_UNSUPPORTEDCONVERSION". The conversion from the OLE DB type of "DBTYPE_IUNKNOWN" to the destination column type of "DBTYPE_WVARCHAR" might not be supported by this provider. 

[OLE DB Destination 1 [2]] Error: Cannot create an OLE DB accessor. Verify that the column metadata is valid. 

[SSIS.Pipeline] Error: OLE DB Destination 1 failed the pre-execute phase and returned error code 0xC0202025. 

Task Get Merchant Data failed 
+0

您能告訴我們源列是什麼嗎? – Mike

+0

呀SureSELECT [ID] ,[狀態] ,[Store_No(LinkTitle)] ,[Merchant_No] ,[註釋] ,[創建] ,[Third_Party_Introduced_Customer] FROM [DBO]。[tmp_Merchant GO – Gomes1985

回答

0

OK所以錯誤的關鍵部分是

"Comments" column. The binding status was "DT_NTEXT". The data flow column type is "DBBINDSTATUS_UNSUPPORTEDCONVERSION". The conversion from the OLE DB type of "DBTYPE_IUNKNOWN" to the destination column type of "DBTYPE_WVARCHAR" might not be supported by this provider. 

所以你試圖寫一個文本列(NTEXT因爲這是Unicode數據)。 您的意見的來源有DBTYPE_IUNKNOWN,它說它不知道如何轉換爲NTEXT導致您的錯誤。

此修復程序是編輯源連接並聲明可以轉換的數據類型,因爲它當前設置爲未知,我猜你已經沒有這樣做了。

因此打開源連接並編輯註釋列的數據類型並選擇適當的結果。它可能是某種形式的NTEXT或WTEXT,它將在進口時轉換爲NTEXT

+0

謝謝邁克。我起初不知道該怎麼做,但我玩過一個轉換器,然後我採取了你的建議,並做了它,它的工作 – Gomes1985

+0

太棒了。如果我的回答幫助他們,您可以接受它,以便您的問題被標記爲已回答。這將有助於其他人搜索類似的問題 – Mike

相關問題