# Why I can not input data to InfluxDB Cloud

**URL:** <https://community.influxdata.com/t/why-i-can-not-input-data-to-influxdb-cloud/24339>\
**Category:** InfluxDB 2\
**Tags:** influxdb-cloud-2-0\
**Created:** [March 22, 2022, 8:57am UTC](https://community.influxdata.com/t/why-i-can-not-input-data-to-influxdb-cloud/24339 "2022-03-22T08:57:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![DANH\_NGUYEN](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/danh_nguyen/32/9747_2.png) [@DANH\_NGUYEN](https://community.influxdata.com/u/DANH_NGUYEN)\
**Post date:** [March 22, 2022, 8:57am UTC](https://community.influxdata.com/t/why-i-can-not-input-data-to-influxdb-cloud/24339/1 "2022-03-22T08:57:27Z")

</div>

I input data manually and notify success, but when I query, not any data showed.  
Please help me.  
I input manually by below lines:

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

---

<div class="post-metadata">

**Author:** ![Franky1](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/franky1/32/6666_2.png) [@Franky1](https://community.influxdata.com/u/Franky1)\
**Post date:** [March 22, 2022, 9:54am UTC](https://community.influxdata.com/t/why-i-can-not-input-data-to-influxdb-cloud/24339/2 "2022-03-22T09:54:40Z")

</div>

> [@DANH\_NGUYEN](#):
>
> but when I query

Where/How do you query?  
Is the time window chosen correctly? Otherwise you will not see any data.

---

<div class="post-metadata">

**Author:** ![DANH\_NGUYEN](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/danh_nguyen/32/9747_2.png) [@DANH\_NGUYEN](https://community.influxdata.com/u/DANH_NGUYEN)\
**Post date:** [March 22, 2022, 10:11am UTC](https://community.influxdata.com/t/why-i-can-not-input-data-to-influxdb-cloud/24339/3 "2022-03-22T10:11:05Z")

</div>

I query in this window

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

---

<div class="post-metadata">

**Author:** ![DANH\_NGUYEN](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/danh_nguyen/32/9747_2.png) [@DANH\_NGUYEN](https://community.influxdata.com/u/DANH_NGUYEN)\
**Post date:** [March 22, 2022, 10:14am UTC](https://community.influxdata.com/t/why-i-can-not-input-data-to-influxdb-cloud/24339/4 "2022-03-22T10:14:19Z")

</div>

You are right, Not show data because time range for query, thanks thanks

---

<div class="post-metadata">

**Author:** ![Franky1](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/franky1/32/6666_2.png) [@Franky1](https://community.influxdata.com/u/Franky1)\
**Post date:** [March 22, 2022, 10:15am UTC](https://community.influxdata.com/t/why-i-can-not-input-data-to-influxdb-cloud/24339/5 "2022-03-22T10:15:32Z")

</div>

> [@DANH\_NGUYEN](#):
>
> I query in this window

The reason why you don’t see any data is that the time window is wrong. On the right side of the window you selected “Past 2d”, but your data is older when I look at the timestamp?  
Unfortunately, if the time window is not selected correctly, no data is displayed, which is quite irritating for beginners.

---

<div class="post-metadata">

**Author:** ![DANH\_NGUYEN](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/danh_nguyen/32/9747_2.png) [@DANH\_NGUYEN](https://community.influxdata.com/u/DANH_NGUYEN)\
**Post date:** [March 22, 2022, 10:17am UTC](https://community.influxdata.com/t/why-i-can-not-input-data-to-influxdb-cloud/24339/6 "2022-03-22T10:17:18Z")

</div>

Yes, because I copy sample data from exercise with time format nanosecond (dont know exactly date) and forget this problem is here.  
Thanks so muck guys.

---

<div class="post-metadata">

**Author:** ![Ian\_Perkins](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/ian_perkins/32/9755_2.png) [@Ian\_Perkins](https://community.influxdata.com/u/Ian_Perkins)\
**Post date:** [March 22, 2022, 6:28pm UTC](https://community.influxdata.com/t/why-i-can-not-input-data-to-influxdb-cloud/24339/7 "2022-03-22T18:28:33Z")

</div>

I was able to get past this problem by saving the pasted data to a text file with a .line extension. The window you paste the data into may not correctly parse line endings. The start and end timestamps are:

2022-01-20 12:00:00  
2022-01-20 12:04:45

I wrote a small python utility to convert them

from datetime import datetime

def format\_my\_nanos(nanos):  
dt = datetime.utcfromtimestamp(nanos / 1e9)  
return ‘{}{:03.0f}’.format(dt.strftime(’%Y-%m-%d %H:%M:%S’), nanos % 1e3)

print(format\_my\_nanos(1642680000000000000))  
print(format\_my\_nanos(1642680285000000000))
