Azure Data Explorer: delta-kusto error in parsing update policy

Elisa Piccin 0 Reputation points


I'm trying to follow this tutorial

and at this step

delta-kusto -p download-dev.yaml -o tokenProvider.login.tenantId=$tenantId tokenProvider.login.clientId=$clientId tokenProvider.login.secret=$secret$clusterUri)

I'm getting an error "Error: Issue parsing script Exception encountered: System.InvalidOperationException ; Function body was expected to be surrounded by curly brace but isn't: {..."

My update policy is something like this:

.create-or-alter function with (docstring = "Ingest raw telemetry data",folder = "ingestprojection") ParseTelemetry() {
let JobNumbers = 
   .... ;

| mv-expand values
| extend convertedTimestamp = tolong(timestamp) * 1ms
| project ....

Did anyone experience a similar issue and/or know how to solve it?



Azure Data Explorer
Azure Data Explorer
An Azure data analytics service for real-time analysis on large volumes of data streaming from sources including applications, websites, and internet of things devices.
367 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Elisa Piccin 0 Reputation points

    The issue was the blank line after the let; command. After removing the blank line, everything is working properly. 😅