Bulk load failed with error using copy

hemanth vootla 1 Reputation point
2021-10-17T16:03:56.48+00:00

Hi Team,

Objective is to bulk load the table using csv which is available in azure storage. Trying to load the data from tesfile.csv to table airtravel which is available in the test sql pool.

Document followed

https://learn.microsoft.com/en-us/sql/t-sql/statements/copy-into-transact-sql?view=azure-sqldw-latest

COPY INTO dbo.airtravel FROM 'https://madhuritestdatalake.blob.core.windows.net/madhuraitestdatalakefile/2_ExportSourceDataWithBCP/testfolder/tesfile.csv' WITH ( FILE_TYPE = 'CSV', CREDENTIAL = (IDENTITY= 'Storage Account Key', SECRET='mykey'), FIELDTERMINATOR=',', ROWTERMINATOR=';' );

Received error

error Msg 110813, Level 16, State 1, Line 1 The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters. Completion time: 2021-10-16T23:24:35.8581042-04:00

Regards
Hemanth

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,373 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.