microsoft / microsoft/sql-server-samples
Database sample install [AdventureWorks]: Bulk load data conversion error
Open
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 11.2k
- Forks
- 9.1k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 14
Description
I got the following errors when running the install script:
Loading [Person].[Address]
消息 4864,级别 16,状态 1,第 1803 行
Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 1499, column 6 (PostalCode).
消息 4864,级别 16,状态 1,第 1803 行
Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 1687, column 6 (PostalCode).
消息 4864,级别 16,状态 1,第 1803 行
Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 5167, column 6 (PostalCode).
消息 4864,级别 16,状态 1,第 1803 行
Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 6612, column 6 (PostalCode).
消息 4864,级别 16,状态 1,第 1803 行
Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 7020, column 6 (PostalCode).
消息 4864,级别 16,状态 1,第 1803 行
Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 7028, column 6 (PostalCode).
消息 4864,级别 16,状态 1,第 1803 行
Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 7295, column 6 (PostalCode).
消息 4864,级别 16,状态 1,第 1803 行
Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 7696, column 6 (PostalCode).
消息 4864,级别 16,状态 1,第 1803 行
Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 9639, column 6 (PostalCode).
消息 4864,级别 16,状态 1,第 1803 行
Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 11003, column 6 (PostalCode).
消息 4864,级别 16,状态 1,第 1803 行
Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 14590, column 6 (PostalCode).
消息 4865,级别 16,状态 1,第 1803 行
Cannot bulk load because the maximum number of errors (10) was exceeded.
消息 7399,级别 16,状态 1,第 1803 行
The OLE DB provider "BULK" for linked server "(null)" reported an error. The provider did not give any information about the error.
消息 7330,级别 16,状态 2,第 1803 行
Cannot fetch a row from OLE DB provider "BULK" for linked server "(null)".
Though the install process completed, there is no record in the table.
Here is the version information:
SQL Server Management Studio 15.0.18330.0
SQL Server 管理对象 (SMO) 16.100.37971.0
Microsoft Analysis Services 客户端工具 15.0.19040.0
Microsoft 数据访问组件 (MDAC) 10.0.19041.1
Microsoft MSXML 3.0 6.0
Microsoft .NET Framework 4.0.30319.42000
操作系统 (OS) 10.0.19041
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the AdventureWorks install script and the [Person].[Address] bulk load, focusing on the PostalCode column and the reported failing rows. Check the source data and bulk-load codepage or type assumptions, then rerun the installation; done means all Address records load without conversion errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- sql
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100