我收到的錯誤與我在查詢中發送的內容不匹配。流分析到CosmosDB總是失敗
我的查詢:
SELECT
udf.CreateGuid('') AS [id],
udf.CreateGuid('') AS [DocumentId],
BlobName,
BlobLastModifiedUtcTime,
[telmetry].[event_type] as PartitionKey,
-- webhook
[telmetry].[id] AS [hook_id],
[telmetry].[event_version],
[telmetry].[create_time],
[telmetry].[resource_type],
[telmetry].[event_type],
[telmetry].[summary],
[telmetry].[resource],
[telmetry].[links]
INTO
[cosmosdb2]
FROM
[telemetrydepot] AS [telmetry]
TIMESTAMP BY [telmetry].[create_time]
這裏的出口配置:
我已經嘗試設置DocumentId屬性DocumentId
或id
沒有成功。我甚至會在結果中添加額外的ID,DocumentId和PartitionKey字段,只是爲了獲得保存的成功而沒有成功(也嘗試單獨運行將id或DocumentId放入CosmosDB Document Id屬性中。無法獲取任何內容以保存...
我恢復的錯誤說:
An error occurred while preparing data for DocumentDB. The output record does not contain the column DocumentId to use as the partition key property by DocumentDB