# Invalid: compilation failed: error at :@xx:xx-xx:xx expected comma in property list, got LPAREN

**URL:** <https://community.grafana.com/t/invalid-compilation-failed-error-at-xxxx-expected-comma-in-property-list-got-lparen/46315>\
**Category:** InfluxDB\
**Created:** [April 20, 2021, 6:20am UTC](https://community.grafana.com/t/invalid-compilation-failed-error-at-xxxx-expected-comma-in-property-list-got-lparen/46315 "2021-04-20T06:20:29Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![udayendu](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/udayendu/32/16048_2.png) [@udayendu](https://community.grafana.com/u/udayendu)\
**Post date:** [April 20, 2021, 6:20am UTC](https://community.grafana.com/t/invalid-compilation-failed-error-at-xxxx-expected-comma-in-property-list-got-lparen/46315/1 "2021-04-20T06:20:29Z")

</div>

I am trying to use grafana + influxdb + telegraf to monitor my vCenter 6.5 and 7.0 platform.  
Using the latest version of all these products:

grafana: v7.5.4  
influxdb: 2.0.4  
telegraf: 1.18.1

I can see data in the influxDB but grafana is unable to load the data and giving the following error:

```
invalid: compilation failed: error at :@xx:xx-xx:xx expected comma in property list, got LPAREN

```

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/4/d/4dab33bb35b3d9f88f2a80da580769c91b96816e.png)

This seems like a bug with grafana and its unable to query the data.  
My datasource has been configured correctly:

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/d/b/dbfbb330f0e65830ba2c48cf528888cf78910613.png)

---

<div class="post-metadata">

**Author:** ![svetb](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/svetb/32/3307_2.png) [@svetb](https://community.grafana.com/u/svetb)\
**Post date:** [April 20, 2021, 9:41am UTC](https://community.grafana.com/t/invalid-compilation-failed-error-at-xxxx-expected-comma-in-property-list-got-lparen/46315/2 "2021-04-20T09:41:15Z")

</div>

Any chance you can show us the query? Kind of hard to say much without it.

---

<div class="post-metadata">

**Author:** ![udayendu](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/udayendu/32/16048_2.png) [@udayendu](https://community.grafana.com/u/udayendu)\
**Post date:** [April 21, 2021, 7:36am UTC](https://community.grafana.com/t/invalid-compilation-failed-error-at-xxxx-expected-comma-in-property-list-got-lparen/46315/3 "2021-04-21T07:36:09Z")

</div>

Please find the query for various objects in the overview page:

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/5/0/5086d88cea9b23d5afc6aaf39870aa95d14d8593.png)

If I am trying to query the same in the influxdb, getting the same error:

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/5/1/51437e16facdc824472a60b908ec1a6db6c85f94.png)

---

<div class="post-metadata">

**Author:** ![udayendu](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/udayendu/32/16048_2.png) [@udayendu](https://community.grafana.com/u/udayendu)\
**Post date:** [April 21, 2021, 7:36am UTC](https://community.grafana.com/t/invalid-compilation-failed-error-at-xxxx-expected-comma-in-property-list-got-lparen/46315/4 "2021-04-21T07:36:43Z")

</div>

But if I am selecting the bucket, I can see the correct data in it:

 ![image](https://us1.discourse-cdn.com/grafana/original/3X/b/3/b36e03becb0fe4671e642971ab8361274754e715.png)

So not sure where its going wrong.

---

<div class="post-metadata">

**Author:** ![svetb](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/svetb/32/3307_2.png) [@svetb](https://community.grafana.com/u/svetb)\
**Post date:** [April 21, 2021, 1:01pm UTC](https://community.grafana.com/t/invalid-compilation-failed-error-at-xxxx-expected-comma-in-property-list-got-lparen/46315/5 "2021-04-21T13:01:42Z")

</div>

I’m pretty sure the issue is that you’ve selected the Flux datasource, but your query is written in “legacy” InfluxQL. You should switch to the InfluxQL datasource.

---

<div class="post-metadata">

**Author:** ![udayendu](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/udayendu/32/16048_2.png) [@udayendu](https://community.grafana.com/u/udayendu)\
**Post date:** [April 21, 2021, 1:46pm UTC](https://community.grafana.com/t/invalid-compilation-failed-error-at-xxxx-expected-comma-in-property-list-got-lparen/46315/6 "2021-04-21T13:46:43Z")

</div>

Initially I was also suspected that but its not allowing me to use InfluxQL. Its giving bad gateway error.

---

<div class="post-metadata">

**Author:** ![jorgedelacruz](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/jorgedelacruz/32/16067_2.png) [@jorgedelacruz](https://community.grafana.com/u/jorgedelacruz)\
**Post date:** [April 21, 2021, 2:11pm UTC](https://community.grafana.com/t/invalid-compilation-failed-error-at-xxxx-expected-comma-in-property-list-got-lparen/46315/7 "2021-04-21T14:11:14Z")

</div>

Hello, Jorge here / The creator of those Dashboards.  
My work has done for InfluxQL, meaning your telegraf output should save the data into that format, not buckets or anything in 2.0.

I would move all of this to the new way of doing things, but for now, use Influx 1.x and all will work as expected.

---

<div class="post-metadata">

**Author:** ![udayendu](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/udayendu/32/16048_2.png) [@udayendu](https://community.grafana.com/u/udayendu)\
**Post date:** [April 21, 2021, 3:23pm UTC](https://community.grafana.com/t/invalid-compilation-failed-error-at-xxxx-expected-comma-in-property-list-got-lparen/46315/8 "2021-04-21T15:23:12Z")

</div>

Thank you @jorgedelacruz and @svetb

After using InfluxDB 1.8, I am able to configure data source with InfluxQL language.  
Now things are working well and able to see the data.

Waiting for your update on Flux query in the near future 🙂

---

<div class="post-metadata">

**Author:** ![svetb](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/svetb/32/3307_2.png) [@svetb](https://community.grafana.com/u/svetb)\
**Post date:** [April 21, 2021, 4:00pm UTC](https://community.grafana.com/t/invalid-compilation-failed-error-at-xxxx-expected-comma-in-property-list-got-lparen/46315/9 "2021-04-21T16:00:23Z")

</div>

Ah yeah good point - I forgot that Influx 2.0 doesn’t (yet) support InfluxQL. Anyway, great to hear you got it sorted 👍

---

<div class="post-metadata">

**Author:** ![yazhdevi](https://avatars.discourse-cdn.com/v4/letter/y/65b543/32.png) [@yazhdevi](https://community.grafana.com/u/yazhdevi)\
**Post date:** [June 26, 2022, 3:13pm UTC](https://community.grafana.com/t/invalid-compilation-failed-error-at-xxxx-expected-comma-in-property-list-got-lparen/46315/10 "2022-06-26T15:13:10Z")

</div>

i have downloaded 1.8.10 version influx db . but i cant able to open through chrome.Could you guide me plz??

---

<div class="post-metadata">

**Author:** ![yosiasz](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/yosiasz/32/45847_2.png) [@yosiasz](https://community.grafana.com/u/yosiasz)\
**Post date:** [June 26, 2022, 3:19pm UTC](https://community.grafana.com/t/invalid-compilation-failed-error-at-xxxx-expected-comma-in-property-list-got-lparen/46315/11 "2022-06-26T15:19:03Z")

</div>

Welcome

What OS have you downloaded it to and have you installed it?

---

<div class="post-metadata">

**Author:** ![yazhdevi](https://avatars.discourse-cdn.com/v4/letter/y/65b543/32.png) [@yazhdevi](https://community.grafana.com/u/yazhdevi)\
**Post date:** [June 26, 2022, 3:20pm UTC](https://community.grafana.com/t/invalid-compilation-failed-error-at-xxxx-expected-comma-in-property-list-got-lparen/46315/12 "2022-06-26T15:20:11Z")

</div>

i am using Grafana \* v8.4.0 and influx db 2.2.0  
i have used flux query inside grafana.  
inside influx db ,traffic occured properly but grafana side getting 1 error:-

“invalid: compilation failed: error @1:12-1:19: string literal key count must have a value error @1:36-1:91: expected comma in property list, got REGEXEQ error @1:43-1:90: string literal key application must have a value error @1:57-1:90: invalid expression @1:89-1:90: ’ error @1:57-1:90: unexpected token for property key: REGEXEQ (=~) error @1:96-1:97: invalid statement: $ error @1:122-1:124: unexpected token for property key: DURATION (5s)”

Thanks,  
Yazhdevi S

---

<div class="post-metadata">

**Author:** ![yazhdevi](https://avatars.discourse-cdn.com/v4/letter/y/65b543/32.png) [@yazhdevi](https://community.grafana.com/u/yazhdevi)\
**Post date:** [June 26, 2022, 3:23pm UTC](https://community.grafana.com/t/invalid-compilation-failed-error-at-xxxx-expected-comma-in-property-list-got-lparen/46315/13 "2022-06-26T15:23:58Z")

</div>

> [@yosiasz](#):
>
> What OS have you downloaded it to and have you installed it?

i am using 64 bit .  
Thanks,  
Yazhdevi

---

<div class="post-metadata">

**Author:** ![yosiasz](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/yosiasz/32/45847_2.png) [@yosiasz](https://community.grafana.com/u/yosiasz)\
**Post date:** [June 26, 2022, 3:27pm UTC](https://community.grafana.com/t/invalid-compilation-failed-error-at-xxxx-expected-comma-in-property-list-got-lparen/46315/14 "2022-06-26T15:27:16Z")

</div>

what operating system are you running this in? Windows,Linux?  
Also what is the query you are using in grafana that is erroring.

We dont have access to your computer so we cannot see 😉

The more clearer details you give the easier for us to help you. Help us help you.

---

<div class="post-metadata">

**Author:** ![yazhdevi](https://avatars.discourse-cdn.com/v4/letter/y/65b543/32.png) [@yazhdevi](https://community.grafana.com/u/yazhdevi)\
**Post date:** [June 26, 2022, 4:34pm UTC](https://community.grafana.com/t/invalid-compilation-failed-error-at-xxxx-expected-comma-in-property-list-got-lparen/46315/15 "2022-06-26T16:34:12Z")

</div>

This integration new to me 😑 .

i am using Windows .

SELECT sum(“count”) FROM “jmeter” WHERE (“application” =~ /^$/ AND “transaction” = ‘all’) AND $timeFilter GROUP BY time(5s) fill(null)

Thanks,  
Yazhdevi S

---

<div class="post-metadata">

**Author:** ![yazhdevi](https://avatars.discourse-cdn.com/v4/letter/y/65b543/32.png) [@yazhdevi](https://community.grafana.com/u/yazhdevi)\
**Post date:** [June 27, 2022, 2:53am UTC](https://community.grafana.com/t/invalid-compilation-failed-error-at-xxxx-expected-comma-in-property-list-got-lparen/46315/16 "2022-06-27T02:53:45Z")

</div>

Hi Yosiasz,  
which query exactly u want ?? i already posted query ,if thats wrong ,dont scold me .can you tell me little briefly, which one u want.

can you asnswer quickly please .  
one more question 👎 i have downloaded 2 grafana ,how can i open 2 version of grafana through chrome ??

---

<div class="post-metadata">

**Author:** ![lewisca1](https://avatars.discourse-cdn.com/v4/letter/l/da6949/32.png) [@lewisca1](https://community.grafana.com/u/lewisca1)\
**Post date:** [July 12, 2023, 7:40pm UTC](https://community.grafana.com/t/invalid-compilation-failed-error-at-xxxx-expected-comma-in-property-list-got-lparen/46315/17 "2023-07-12T19:40:22Z")

</div>

Hello, I was hoping Jorge or some one could provide some direction. I am receiving the same error. I can make the vmware vshpere - overview dashboard work. My Grafana is version 8.1.8 and my influx version is 2.0.7. The query language in the datasource configuration is Flux. When I try and import version 41 of overview it errors. I choose my datasource as I import the dashboard but it doesn’t connect to the datasource. If I then go through and edit each gauge and change the datasource to the correct datasource, the gauge will start working. So I can get that to work. When I try and import the vsphere -VMs or the - Datastore, or the - Hosts in each case selecting the 8.x and influx db 2.0 revision (such as revision 19 for vsphere - Hosts ) I get several errors: Failed to upgrade legacy queries e.replace is not a function. or Error updating options: e.replace is not a function. Then if I edit one of the gauges, it has the right bucket/datasource. If I exit that and click Explore for the gauge, I get invalid: compilation failed: error at @6:44-6:59: regex parse error: ${esxi:regex} error: repetition quantifier expects a valid decimal .

This thread suggests that the fix is to build a grafana system with influx version 1.8. But these vSphere dashboards explicitly now say they are built to use the flux language and Influx 2.0+. What am I missing here? What can I do to work around my problem?

---

<div class="post-metadata">

**Author:** ![lewisca1](https://avatars.discourse-cdn.com/v4/letter/l/da6949/32.png) [@lewisca1](https://community.grafana.com/u/lewisca1)\
**Post date:** [July 12, 2023, 7:44pm UTC](https://community.grafana.com/t/invalid-compilation-failed-error-at-xxxx-expected-comma-in-property-list-got-lparen/46315/18 "2023-07-12T19:44:05Z")

</div>

Operating System is Linux Ubuntu 20.04.

---

<div class="post-metadata">

**Author:** ![lewisca1](https://avatars.discourse-cdn.com/v4/letter/l/da6949/32.png) [@lewisca1](https://community.grafana.com/u/lewisca1)\
**Post date:** [July 12, 2023, 7:58pm UTC](https://community.grafana.com/t/invalid-compilation-failed-error-at-xxxx-expected-comma-in-property-list-got-lparen/46315/19 "2023-07-12T19:58:11Z")

</div>

Sorry, I didn’t explain correctly. When I try and import vSphere - VMs , vSphere - Hosts, vSphere - Datastore setting the datastore as I import, I do have to go in and edit each gauge and set the datasource changing from [object] - not found to the correct datasource. But even after that I still have variable errors upon load of the dashboard or explore of the gauge.

I have also found that I can edit the variables and set the influx data source for each variable. This gets rid of the errors when you load the dashboard, but then each set of gauges (hundreds of them) still needs the data source fixed for each instance. And even then those gauges don’t work after fixing the data source because of the repetition quantifier error (mentioned above) when I click explore on that gauge.

My entire issue seems to revolve around v.defaultbucket variable. I have the default bucket set in the datasource config. It is set and spelled correctly as best I can determine. The InfluxDB data source tests successfully with green check mark.
