Samit Shah - Saturday, February 3, 2018 7:29 PM
Really doesn't appear appropriate to use select or a udf for an import to a table from a file using bcp. To start off with, you could post your bcp command line, the table definition, and a few sample lines of data that doesn't have any private data in it.
Think of posting here as a "tech support" service call, give folks something so that they can do the exact thing you are doing and get the exact same error. Especially with bcp as its so darn picky LOL