Problem Creation Tasks Influxdb 2.0


I tried to create a task in influxdb 2.0 UI but every time I had the same problem below.

Failed to create new task: invalid options; Err: @8:1-13:2: option "task" reassigned: @8:1-13:2: option "task" reassigned
My Task is a basic one, I will put it below too.
// Task options
option task = {
name: “Task1”,
every: 1h,
offset: 0m,
concurrency: 1,

// Data source
data = from(bucket: “POC”)
|> range(start: -task.every)
|> filter(fn: ® => == “boujemaa-Lenovo-ideapad-320-15IKB”

//Show data
// Data transformation
|> aggregateWindow(
every: 5m,
fn: last
// Data destination
|> to(bucket: “Test”)

@Anis when adding tasks through the UI, leave out the option task assignment. The UI does this for you when you save the task.