It doesn’t make sense that it works when pasted in as text and not when attached as a text file. We can’t upload 10’s of thousands of lines easily by copying & pasting into a textarea.
@David_B I’m guessing it has something to do with the newline character sequence used. This is known to happen with files created in Windows, which uses a carriage return/newline sequence (\r\n), but it’s not necessarily specific to Windows.
Make sure your line protocol file just uses newline characters (\n) without carraige returns. When copying and pasting, I’m betting the carriage return gets stripped out, which is why it’s working.
Still, it feels like this kind could be added to the error message - the error message “Failed to write data - invalid line protocol submitted” was not helpful in locating the issue (or any issue really).