Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8945773
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:19:58+00:00 2026-06-15T12:19:58+00:00

I’m importing data from a CSV file using the following procedure: CREATE TABLE #HSCodeHeading

  • 0

I’m importing data from a CSV file using the following procedure:

CREATE TABLE #HSCodeHeading (
[ItemID] [int] IDENTITY(1,1) NOT NULL,
[CMSChapterID] [bigint] NOT NULL,
[HeadingCode] [varchar](2) NOT NULL,
[HeadingDescription] [nvarchar](1125) NOT NULL,
[HeadingDescriptionPT] [nvarchar](1125) NOT NULL,   
PRIMARY KEY CLUSTERED 
(
    [ItemID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF,     ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

-- Inserting all the from csv to temproary table using BULK INSERT
EXEC ('BULK INSERT #HSCodeHeading
FROM ''' + @FilePath + '''
WITH ( FIELDTERMINATOR = ''<,>'', ROWTERMINATOR =''\n'', FIRSTROW = 2, KEEPIDENTITY, CODEPAGE = ''ACP'' );');

Almost all rows (1227 rows/1229 rows) get imported successfully, however the 2 rows below throw the following error:

Msg 4863, Level 16, State 1, Line 1
Bulk load data conversion error (truncation) for row 515, column 5 (HeadingDescriptionPT).

Here are the rows:

Row #1

602<,>97<,>18<,>4818<,>Papel dos tipos utilizados para papel de toucador e para papeis semelhantes, pasta (Ouate) de celulose ou mantas de fibras de celulose, dos tipos utilizados para fins domésticos ou sanitários, em rolos, de largura não superior a 36 cm, ou cortados em forma próprias, lenços incluindo os de demaquilhagem, toalhas de mão, toalhas de mesa, guardanapos, fraldas para bebés, pensos e tampões higiénicos, lençóis e artigos semelhantes, para usos domésticos, de toucador, higiénicos ou hospitalares, vestuário e seus acessórios, de pasta de papel, papel, pasta (Ouate) de celulose ou de mantas de fibras de celulose<,>Papel dos tipos utilizados para papel de toucador e para papeis semelhantes, pasta (Ouate) de celulose ou mantas de fibras de celulose, dos tipos utilizados para fins domésticos ou sanitários, em rolos, de largura não superior a 36 cm, ou cortados em forma próprias, lenços incluindo os de demaquilhagem, toalhas de mão, toalhas de mesa, guardanapos, fraldas para bebés, pensos e tampões higiénicos, lençóis e artigos semelhantes, para usos domésticos, de toucador, higiénicos ou hospitalares, vestuário e seus acessórios, de pasta de papel, papel, pasta (Ouate) de celulose ou de mantas de fibras de celulose

Row #2

545<,>91<,>02<,>4202<,>Arcas para viagem , malas e maletas, os estojos para óculos, binóculos, máquinas fotográficas e de filmar, instrumentos musicais, armas, e artefactos semelhantes, sacos de viagem, sacos isolantes para géneros alimentícios e bebidas, bolsas de toucador, mochilas, bolsas, sacos para compras (sacolas), carteiras, portamoedas, portacartões, cigarreiras, tabaqueiras, estojos para ferramentas, bolsas e sacos para artigos de desporto, estojos para frascos ou para jóias, caixas para pó de arroz, estojos para ourivesaria e artefactos semelhantes, de couro natural ou reconstituído, de folhas de plástico, de matérias têxteis, de fibra vulcanizada ou de cartão, ou recobertos, no todo o na maior parte, dessas mesmas matérias ou de papel<,>Arcas para viagem , malas e maletas, os estojos para óculos, binóculos, máquinas fotográficas e de filmar, instrumentos musicais, armas, e artefactos semelhantes, sacos de viagem, sacos isolantes para géneros alimentícios e bebidas, bolsas de toucador, mochilas, bolsas, sacos para compras (sacolas), carteiras, portamoedas, portacartões, cigarreiras, tabaqueiras, estojos para ferramentas, bolsas e sacos para artigos de desporto, estojos para frascos ou para jóias, caixas para pó de arroz, estojos para ourivesaria e artefactos semelhantes, de couro natural ou reconstituído, de folhas de plástico, de matérias têxteis, de fibra vulcanizada ou de cartão, ou recobertos, no todo o na maior parte, dessas mesmas matérias ou de papel

I’m unable to spot the error since both [HeadingDescription], [HeadingDescriptionPT] have similar content.

Any highlight in the direction will be welcome. I’ve cross-check from other SO questions (7520731, 13259028)

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T12:19:59+00:00Added an answer on June 15, 2026 at 12:19 pm

    Well, the error is pretty clear: the data you’re attempting to insert into column HeadingDescriptionPT is too long.

    That column is defined as [nvarchar](1125) –

    But the two text blocks are 1222 (#602) and 1470 characters (#545) long …

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I am using the SimpleRSS gem to parse a WordPress RSS feed. The only
I want use html5's new tag to play a wav file (currently only supported

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.