Azure Logic App应用程序洞察电子邮件失败

时间:2017-07-13 08:16:49

标签: azure-application-insights azure-logic-apps

我正在配置Azure Logic App以从Application Insights提供每日摘要。

我正在运行的查询在Application Insights Metrics Explorer中运行良好。

我要求应用将查询结果作为Html表提供。

没有以下回复:

接头:

{
  "Pragma": "no-cache",
  "Timing-Allow-Origin": "*",
  "Cache-Control": "no-cache",
  "Date": "Thu, 13 Jul 2017 07:33:15 GMT",
  "Server": "Microsoft-IIS/8.0,Microsoft-HTTPAPI/2.0",
  "X-AspNet-Version": "4.0.30319",
  "X-Powered-By": "ASP.NET",
  "Content-Length": "2197",
  "Content-Type": "application/json",
  "Expires": "-1"
}

体:

{
  "error": {
    "code": 500,
    "message": "\"Microsoft.ApplicationInsights.DraftClient.Exceptions.FailedToParseDraftQueryResponseException: Failed to convert table (JToken) to Table object ---> System.ArgumentException: Can not convert Null to Int32.\\r\\n   at Newtonsoft.Json.Linq.JToken.op_Explicit(JToken value)\\r\\n   at Newtonsoft.Json.Linq.JToken.ToObject(Type objectType)\\r\\n   at Microsoft.ApplicationInsights.DraftClient.Helpers.DraftResponseParser.ConvertToTable(JToken token)\\r\\n   --- End of inner exception stack trace ---\\r\\n   at Microsoft.ApplicationInsights.DraftClient.Helpers.DraftResponseParser.ConvertToTable(JToken token)\\r\\n   at Microsoft.ApplicationInsights.DraftClient.Helpers.DraftResponseParser.ParseDraftQueryResponse(String draftQueryResponseInJson)\\r\\n   at Microsoft.ApplicationInsights.DraftClient.DraftApiClient.<ExecuteQueryAsync>d__10.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\\r\\n   at Microsoft.ApplicationInsights.DraftClient.DraftApiClient.<ExecuteQueryAsync>d__9.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\\r\\n   at DraftFlowConnector.VisualizeDraftResults.<RunAsync>d__6.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\\r\\n   at DraftFlowConnector.VisualizeDraftResults.<RunAsync>d__5.MoveNext()\""
  }
}

这件事我能解决的问题吗?

1 个答案:

答案 0 :(得分:1)

似乎失败与尝试将数字列(具有空值)转换为“Int”类型相关联。

我们将为此修复此问题,同时,您可以通过向查询添加“where”语句来解决此问题,该语句会过滤掉相关数字列中包含空值的行,像:

| where tostring(columnName) != ""

谢谢!