SP2-0223: No lines in SQL buffer. or ??? in file after copying to the endpoint

Cause

This is typically caused by the file being in encoded in something other than UTF-8

Resolution

Open the file in notepad++ and confirm the encoding is something other than UTF-8.

Change the encoding to UTF-8 (notepad should show the file as dirty).

Save, commit to source control and perform a new build in FlexDeploy.