Open Lxeon opened 1 year ago
Can you verify that all the values in the column(s) are valid (float|int)?
Can you verify that all the values in the column(s) are valid (float|int)?
i create new database and run the command, but error after 3400 line? this csv i never change after export.
this is my export command: influx -database WindowsServer2022 -username 'admin' -password 'admin' -execute 'select * from apcupsd' -format csv >> apcupsd.csv
hello sir, i get Error when running cammand.
cammand: export_csv_to_influx --csv /mnt/ssd/docker/influxdb/data/data/apcupsd.csv --dbname Ubuntu --measurement apcupsd -u admin -p admin --force_float_columns battery_charge_percent,battery_voltage,input_frequency,input_voltage,internal_temp,load_percent,nominal_battery_voltage,nominal_input_voltage,output_voltage --force_int_columns nominal_power,status_flags,time_left_ns,time_on_battery_ns --force_string_columns battery_date,firmware -fc battery_charge_percent,battery_date,battery_voltage,firmware,input_frequency,input_voltage,internal_temp,load_percent,nominal_battery_voltage,nominal_input_voltage,nominal_power,output_voltage,status_flags,time_left_ns,time_on_battery_ns -tc host,model,serial,status,ups_name -t time
i had to force all field because if not , it will get the same name columns but different type..
fieldKey:![图片](https://user-images.githubusercontent.com/28784869/205851820-acaa1b85-d68c-42da-b7c3-121100c90a8a.png)
tagKey:![图片](https://user-images.githubusercontent.com/28784869/205851907-e5911241-cee0-4ec4-94c4-d6c59603e1b2.png)
csv:![图片](https://user-images.githubusercontent.com/28784869/205852103-fa09de01-b3d1-47b6-9c52-f4bdf5a5b76e.png)
error msg:
![图片](https://user-images.githubusercontent.com/28784869/205853368-ad55d9e5-df2a-4afc-9ccf-72f22529524a.png)
did i miss something?