Azure
帶有文件夾的 Azure 數據工廠“驗證失敗”不存在
我在我的 Blob 儲存中上傳了整套
.txt
文件,文件夾結構為年/月/日。然後在管道中,我創建了以下數據集。
"type": "AzureBlob", "linkedServiceName": "blob-store", "typeProperties": { "fileName": "{Day}.csv", "folderPath": "adf-data/sales/{Year}/{Month}", "format": { "type": "TextFormat", "columnDelimiter": "\t", "firstRowAsHeader": true }, "partitionedBy": [ { "name": "Year", "value": { "type": "DateTime", "date": "SliceStart", "format": "yyyy" } }, { "name": "Month", "value": { "type": "DateTime", "date": "SliceStart", "format": "MM" } }, { "name": "Day", "value": { "type": "DateTime", "date": "SliceStart", "format": "dd" } } ] }, "availability": { "frequency": "Day", "interval": 1 }, "external": true, "policy": {} }
問題: 我可以做些什麼來進一步解決或修復此問題?
我有錯誤的文件副檔名。錯誤資訊具有誤導性。而不是找不到文件,我認為錯誤是關於缺少文件夾。
我不得不改變這個
"typeProperties": { "fileName": "{Day}.csv", "folderPath": "adf-data/sales/{Year}/{Month}", "format": { "type": "TextFormat", "columnDelimiter": "\t", "firstRowAsHeader": true },
To(將文件副檔名從 csv 更改為 txt)
"typeProperties": { "fileName": "{Day}.txt", "folderPath": "adf-data/sales/{Year}/{Month}", "format": { "type": "TextFormat", "columnDelimiter": "\t", "firstRowAsHeader": true },