# Course: The InfluxDB Basics 101 lesson Introduction to InfluxDB unable to run Flux query

**URL:** <https://community.influxdata.com/t/course-the-influxdb-basics-101-lesson-introduction-to-influxdb-unable-to-run-flux-query/29045>\
**Category:** Systems\
**Created:** [March 13, 2023, 1:53pm UTC](https://community.influxdata.com/t/course-the-influxdb-basics-101-lesson-introduction-to-influxdb-unable-to-run-flux-query/29045 "2023-03-13T13:53:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nickdavies92](https://avatars.discourse-cdn.com/v4/letter/n/a88e4f/32.png) [@nickdavies92](https://community.influxdata.com/u/nickdavies92)\
**Post date:** [March 13, 2023, 1:53pm UTC](https://community.influxdata.com/t/course-the-influxdb-basics-101-lesson-introduction-to-influxdb-unable-to-run-flux-query/29045/1 "2023-03-13T13:53:27Z")

</div>

I’m following along with the Introduction to InfluxDB and I keep getting an error when trying to run the Flux code.

```auto
import "experimental/csv"

relativeToNow = (tables=<-) => tables
    |> elapsed()
    |> sort(columns: ["_time"], desc: true)
    |> cumulativeSum(columns: ["elapsed"])
    |> map(fn: (r) => ({r with _time: time(v: int(v: now()) - r.elapsed * 1000000000)}))
csv.from(url: "https://influx-testdata.s3.amazonaws.com/noaa.csv")
    |> relativeToNow()
    |> limit(n: 100)
    |> to(bucket: "noaa")

```

This is the error

```auto
executing query: failed to create Flight record reader: arrow/flight: could not create flight reader: arrow/ipc: could not read schema from stream: arrow/ipc: could not read message schema: rpc error: code = InvalidArgument desc = Error while planning query: SQL error: ParserError("Expected end of statement, found: import")

```

Any help would be appreciated!

---

<div class="post-metadata">

**Author:** ![Anaisdg](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/anaisdg/32/6401_2.png) [@Anaisdg](https://community.influxdata.com/u/Anaisdg)\
**Post date:** [March 19, 2023, 8:05pm UTC](https://community.influxdata.com/t/course-the-influxdb-basics-101-lesson-introduction-to-influxdb-unable-to-run-flux-query/29045/2 "2023-03-19T20:05:40Z")

</div>

Hello @nickdavies92,  
We’re in the process for creating a new course. InfluxDB Cloud powered by IOx doesn’t allow you to query with Flux if you’ve created a new account.  
You can query with SQL instead. I apologize for the confusion.

> **[Understanding InfluxDB IOx and the Commitment to Open Source | InfluxData](https://www.influxdata.com/blog/understanding-influxdb-iox-commitment-open-source/)**
>
> I wanted to learn more about how the open source components of the new engine help achieve the requirements for the new #InfluxDB engine and why they were chosen. This post covers that precise topic.

> **[InfluxDB Cloud (IOx) Documentation](https://docs.influxdata.com/influxdb/cloud-iox/)**
>
> InfluxDB Cloud is a hosted and managed version of InfluxDB backed by InfluxDB IOx, the time series platform designed to handle high write and query loads. Learn how to use and leverage InfluxDB Cloud in use cases such as monitoring metrics, IoT data,...

> **[Query data stored in InfluxDB Cloud | InfluxDB Cloud (IOx) Documentation](https://docs.influxdata.com/influxdb/cloud-iox/query-data/)**
>
> Learn to query data stored in InfluxDB using SQL, InfluxQL, and Flux using tools like the InfluxDB user interface and the ‘influx’ command line interface.
