I test mobile games on a couple of phones and keep a simple log while I play: battery percentage, device temperature, frame drops, and a short note about what I was doing when it happened. Right now I type it into a notes app during the session, then later export a CSV from that app and paste it into a Google Sheet. It works, but I only remember to do it at the end of the day.
I wanted to automate the boring part. My plan was: the notes app writes a CSV to a synced folder on the phone, a scheduled n8n workflow picks up the newest file and appends the rows to a sheet, and a second step builds a small comparison per device. I have tried a Schedule Trigger plus Google Drive Watch Files and also a Webhook from a shortcut on the phone, but the workflow either doesn’t fire at all or fires twice on the same file. When it does run, the CSV sometimes comes through as one column, so the comparison sheet ends up empty.
I’m not sure whether the problem is the trigger watching the wrong folder, the phone not finishing the upload before the workflow reads it, or my CSV parsing. Has anyone automated a similar phone-to-Sheets flow with n8n? I’d like to know what trigger you use and how you stop it from grabbing the same file twice. I’m on the free community edition for now.
Hi @ekaputrigame, I’d use Google Drive Trigger → Google Drive (Download) → Extract From File (Extract From CSV) → Google Sheets.
The Drive trigger polls by itself, so use it as the only trigger while testing. Select the actual synced Drive folder, then File Created for new exports or File Updated if the app overwrites one file. Publish the workflow before testing an automatic run.
For repeated imports, keep a permanent log_id in each source CSV row and use Sheets’ Append or Update Row, matching that column. Later imports then update matching entries. Overlapping executions can still race, so this isn’t an atomic duplicate-prevention guarantee.
Does each export create a new Drive file? Also paste the downloaded CSV’s header and one dummy-data row, preserving its separators and quotes, so we can check the one-column issue.
Adding to the flow above, for the two remaining symptoms:
CSV arrives as one column
That’s almost always the delimiter. Many notes and logging apps export with ; instead of ,, especially on phones set to a locale that uses a comma as the decimal separator (23,5 °C). In Extract From File → Extract From CSV → Options, add Delimiter and set it to ; (or \t for tab-separated files). If the first column name looks odd (battery), the file has a UTF-8 BOM; add Encoding: utf-8 or rename that key in a Set node.
To check: open the downloaded binary in the execution view. If the whole line sits in one field with ; between the values, it’s the delimiter.
Fires twice on the same file
Phone sync apps often create the file and then write to it again (or rename it) when the upload finishes, so Drive reports one create and one update a few seconds apart. Two things help:
Trigger on File Created only, then add a Wait of 30–60 s before Download, so you read the finished file.
Keep a small list of processed file IDs (a sheet tab or a Data Table): look up {{ $json.id }} first and stop with an IF node if it’s already there. Combined with Append or Update on a row key, as suggested above, a second run then changes nothing.
For the phone-shortcut webhook route: send the file in the request body, not just a “file is ready” ping, and reply immediately (Respond to Webhook). That way the shortcut doesn’t time out and retry, which is the other common cause of double runs.
One detail worth checking is whether each CSV export contains only new test records or the complete testing history.
If each export contains the full history, tracking processed Google Drive file IDs alone won’t prevent duplicate rows in Google Sheets because each newly uploaded file can contain previously imported records.
A more reliable approach would be to assign each test entry a stable unique identifier, then check that identifier before inserting a new row.
I’d also check whether the notes app creates a new CSV each time or overwrites the existing file, since that affects how the trigger and duplicate handling should be configured.
Does your notes app export the full log every time, or only the latest entries?
Hi, using a unique file ID and adding a check before appending rows could help prevent duplicate entries in your n8n workflow. I would also recommend waiting until the CSV upload is complete before processing it and checking the delimiter settings to avoid the one-column issue. For mobile gaming enthusiasts who enjoy exploring different games, bitlife modded is also worth checking out. It offers an interesting gaming experience for players who enjoy interactive gameplay and exploring different virtual scenarios. Thanks!