App Insights BLOB的流分析无法运行:GetArrayElement“不支持表达式”

问题描述 投票:0回答:1

上下文:我基本上是想将数据从Application Insights中提取到Power BI中。这需要包括长期趋势分析,所以我(根据指示)尝试设置“连续导出”并使用Stream Analytics将其导出到Power BI数据集。

我的第一个(极其基础的)测试成功了,但是现在我尝试通过提取一些自定义维度(一个称为“ SP_Page_Topic”的方式)来稍微提高复杂性,并且不断出现以下错误:

“流作业失败:流分析作业具有验证错误:查询编译错误:不支持表达式:'GetArrayElement(context.custom.dimensions,0).SP_Page_Topic'..”]]

这在查询生成器的“测试”功能中完全可以正常工作,我可以看到输出的预览,并且看起来一切正确而且不错。

但是当Stream Analytics作业运行时,我只是一遍又一遍地收到此错误。

注意-这是我在Stream Analytics中的查询:

WITH Step1 AS (
SELECT
      context.operation.name as PageUrl,
      context.data.eventTime as EventTime,
      context.device.type as DeviceType,
      context.device.osVersion as OSVersion,
      context.device.browser as Browser,
      context.device.browserVersion as BrowserVersion,
      context.location.continent as Region,
      context.location.country as Country,
      GetArrayElement(context.custom.dimensions, 0).SP_Page_Topic as Topic
FROM
[AllInput]
)

SELECT * INTO [PageViewOutput]
FROM Step1

上下文:我基本上是想将数据从Application Insights中提取到Power BI中。这需要包括长期趋势分析,所以我(根据指示)尝试设置“连续导出”并使用...

azure-application-insights azure-stream-analytics
1个回答
0
投票

您必须再增加一个步骤,以避免引用GetArrayElement结果的属性。

© www.soinside.com 2019 - 2024. All rights reserved.