# Cannot enter a timestamp using Line Protocol on CloudDB

**URL:** https://community.influxdata.com/t/cannot-enter-a-timestamp-using-line-protocol-on-clouddb/28961
**Category:** 101 - InfluxDB Essentials
**Created:** [March 8, 2023, 2:36pm UTC](https://community.influxdata.com/t/cannot-enter-a-timestamp-using-line-protocol-on-clouddb/28961 "2023-03-08T14:36:01Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![dinofm](https://avatars.discourse-cdn.com/v4/letter/d/e0b2c6/32.png) [@dinofm](https://community.influxdata.com/u/dinofm)
#### Post date: [March 8, 2023, 2:36pm UTC](https://community.influxdata.com/t/cannot-enter-a-timestamp-using-line-protocol-on-clouddb/28961/1 "2023-03-08T14:36:01Z")

</div>

It seems I cannot enter my own timestamp when ingesting data using line protocol.  
When I manually enter this line taken from InfluxDB help screen:

```auto
myMeasurement,tag1=value1,tag2=value2 fieldKey="fieldValue" 1556813561098000000

```

I get this error:

![image](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/2X/3/3099ce1cb8cbf7c2f11710151e98fae5ba40831c.png)

If I drop the timestamp it works:

```auto
myMeasurement,tag1=value1,tag2=value2 fieldKey="fieldValue" 

```

Any idea?

---

<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 8, 2023, 10:13pm UTC](https://community.influxdata.com/t/cannot-enter-a-timestamp-using-line-protocol-on-clouddb/28961/2 "2023-03-08T22:13:37Z")

</div>

Hello @dinofm,  
What version of influxdb are you using?  
I tried writing your data to influxDB Cloud and it worked 🙂

---

<div class="post-metadata">

### Author: ![dinofm](https://avatars.discourse-cdn.com/v4/letter/d/e0b2c6/32.png) [@dinofm](https://community.influxdata.com/u/dinofm)
#### Post date: [March 9, 2023, 7:47am UTC](https://community.influxdata.com/t/cannot-enter-a-timestamp-using-line-protocol-on-clouddb/28961/3 "2023-03-09T07:47:02Z")

</div>

Dear Anais  
I’m on Influx Db cloud as well:

> **[InfluxDB](https://eu-central-1-1.aws.cloud2.influxdata.com)**
>
> InfluxDB is a time series platform, purpose-built by InfluxData for storing metrics and events, provides real-time visibility into stacks, sensors, and systems.

Dino

---

<div class="post-metadata">

### Author: ![dinofm](https://avatars.discourse-cdn.com/v4/letter/d/e0b2c6/32.png) [@dinofm](https://community.influxdata.com/u/dinofm)
#### Post date: [March 15, 2023, 3:06pm UTC](https://community.influxdata.com/t/cannot-enter-a-timestamp-using-line-protocol-on-clouddb/28961/4 "2023-03-15T15:06:32Z")

</div>

Dear Anais, any update on this?  
Regards  
Dino

---

<div class="post-metadata">

### Author: ![tom\_king](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/tom_king/32/11662_2.png) [@tom\_king](https://community.influxdata.com/u/tom_king)
#### Post date: [March 17, 2023, 7:36am UTC](https://community.influxdata.com/t/cannot-enter-a-timestamp-using-line-protocol-on-clouddb/28961/5 "2023-03-17T07:36:51Z")

</div>

You don’t mention what time granularity you specified on the connection. It looks like you are using ns  
There is a 4th (optional) parameter on the api client that is used to specify the granularity e.g ‘ns’ or ‘ms’ …  
E.g. write\_api.write(bucket=,record=,precision=‘ns’)

---

<div class="post-metadata">

### Author: ![dinofm](https://avatars.discourse-cdn.com/v4/letter/d/e0b2c6/32.png) [@dinofm](https://community.influxdata.com/u/dinofm)
#### Post date: [March 17, 2023, 8:00am UTC](https://community.influxdata.com/t/cannot-enter-a-timestamp-using-line-protocol-on-clouddb/28961/7 "2023-03-17T08:00:36Z")

</div>

Daer Tom

I’m using the Interctive line protocol window on the GUI.  
Let’s assume my Unix timestamp is 1656367200 (seconds since the origin of Unix time).  
I add 9 zeros to convert to ns and enter the line protocol text:

 ![image](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/2X/7/7d8e673dbd2f6adb855a848deab4fb9c3aaa2baf.png)

This doesn’t work. If I use the original timestamp and set precision to seconds doesn’t work either:

 ![image](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/2X/9/93e7322c8cf3b8e832c98a70906fa44c15f08d55.png)

My original example is taken from the Help text on the same page: it’s in ns. and matches the default ns precision

---

<div class="post-metadata">

### Author: ![tom\_king](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/tom_king/32/11662_2.png) [@tom\_king](https://community.influxdata.com/u/tom_king)
#### Post date: [March 17, 2023, 8:22am UTC](https://community.influxdata.com/t/cannot-enter-a-timestamp-using-line-protocol-on-clouddb/28961/8 "2023-03-17T08:22:35Z")

</div>

On my screen the top right has a selection window to set precision

 ![Screenshot_20230317_192128_Chrome.jpg](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/2X/1/169af927ab3ba20bffa0a7c41e65e8ca47d6fc67.jpeg)

---

<div class="post-metadata">

### Author: ![dinofm](https://avatars.discourse-cdn.com/v4/letter/d/e0b2c6/32.png) [@dinofm](https://community.influxdata.com/u/dinofm)
#### Post date: [March 17, 2023, 8:36am UTC](https://community.influxdata.com/t/cannot-enter-a-timestamp-using-line-protocol-on-clouddb/28961/9 "2023-03-17T08:36:39Z")

</div>

Hi tom, yes my precision is set to nanoseconds as well and the Influx db timestamp is the Unix one times the number of ns in a second:

1656367200 \* 1000000000

---

<div class="post-metadata">

### Author: ![tom\_king](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/tom_king/32/11662_2.png) [@tom\_king](https://community.influxdata.com/u/tom_king)
#### Post date: [March 17, 2023, 11:40am UTC](https://community.influxdata.com/t/cannot-enter-a-timestamp-using-line-protocol-on-clouddb/28961/10 "2023-03-17T11:40:19Z")

</div>

Stupid huh! My dropdown list ns - not NanoSeconds. Sorry I can’t help.
