Search code examples
azuret-sqlazure-blob-storageexternal-tablespolybase

Polybase : Querying the external table giving error but offending value shows nothing


I've compressed the text file in gzip format using powershell and uploaded into Azure blob . When i query the external table i'm getting the following error but offending value is nothing . Can any one tell me what is the issue and how can i find out the error row .

Note : After issue i de-compressed the file and checked it , but i didn't not see any issue with rows .

Please click here to look at the error


Solution

  • My read on that error is that one row has a blank value for (I think) the first column. Since you have it declared as SMALLINT NOT NULL then it fails. Can you try changing that column to NULL?

    Upon further troubleshooting I believe we determined the issue was special characters. I believe fixing the file encoding and removing special characters solved the issue.