我收到的错误与我在查询中发送的内容不匹配。流分析到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