Discussions
Fuel purchases CSV import
In Python, I generated a csv with the same column names as the Motive template for fuel purchases. I used this generated file to import fuel purchases through the dashboard which was successful. I then encoded the file to base64 and created the payload variable, {"source": "manual", "import": [filename, encoded_str]}. The error message displays that all columns are missing but as different variable names.
Error message: {"error_message":"vehicle_id is missing, vehicle_id is empty, driver_id is missing, driver_id is empty, purchased_at is missing, purchased_at is empty, jurisdiction is missing, jurisdiction is empty, fuel_type is missing, fuel_type does not have a valid value, fuel_type is empty, fuel is missing, fuel is empty, fuel_unit is missing, fuel_unit does not have a valid value, fuel_unit is empty"}
Is there another source value for using the Motive template?