# Dataport not importing some data having (")quotes correctly.

**URL:** <https://www.dynamicsuser.net/t/dataport-not-importing-some-data-having-quotes-correctly/54353>\
**Category:** Developers Forum\
**Created:** [August 13, 2014, 12:35pm UTC](https://www.dynamicsuser.net/t/dataport-not-importing-some-data-having-quotes-correctly/54353 "2014-08-13T12:35:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![manisharma31](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@manisharma31](https://www.dynamicsuser.net/u/manisharma31)\
**Post date:** [August 13, 2014, 12:35pm UTC](https://www.dynamicsuser.net/t/dataport-not-importing-some-data-having-quotes-correctly/54353/1 "2014-08-13T12:35:15Z")

</div>

I am import a ; csv file, when importing the records some records with " are not imported correct.

Four Field in data port importing in to my customized table.

Location, Item, Unit of Measure, Quantity.

“001”;“Test01”;KGS;3.0;“001”;“Test02”;L;4.0;“001”;“Test03”;PCS;4.0;

If my location and item are available the data needs to be imported else log will be written.

When i am importing the above records first two records are imported correctly and not the 3rd one.

When i debug the code the data for location is showing as

"

001"

and because of it the location.get code does not get any record and error log is written.

The data is correct in the filed, there are no space its just when importing happening.

FieldStartDelimiter \<"\>

FieldEndDelimiter \<"\>

FieldSeparator ;

---

<div class="post-metadata">

**Author:** ![manisharma31](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@manisharma31](https://www.dynamicsuser.net/u/manisharma31)\
**Post date:** [August 13, 2014, 12:44pm UTC](https://www.dynamicsuser.net/t/dataport-not-importing-some-data-having-quotes-correctly/54353/2 "2014-08-13T12:44:43Z")

</div>

![2047.Capture1.PNG](https://us1.discourse-cdn.com/flex023/uploads/dugusers/original/2X/8/86a0b75d69b0ae7ab1bedc3921b907a35eb22b1c.png) ![3566.Capture.PNG](https://us1.discourse-cdn.com/flex023/uploads/dugusers/original/2X/6/637b0bef28cabe1c9e7e811e430ff2e772afa423.png)Screen Shot.

---

<div class="post-metadata">

**Author:** ![geordie986](https://avatars.discourse-cdn.com/v4/letter/g/65b543/32.png) [@geordie986](https://www.dynamicsuser.net/u/geordie986)\
**Post date:** [August 13, 2014, 1:24pm UTC](https://www.dynamicsuser.net/t/dataport-not-importing-some-data-having-quotes-correctly/54353/3 "2014-08-13T13:24:16Z")

</div>

I suggest to check the file used for import with a text editor to check for any non-printable characters that can cause this problem.

---

<div class="post-metadata">

**Author:** ![manisharma31](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@manisharma31](https://www.dynamicsuser.net/u/manisharma31)\
**Post date:** [August 13, 2014, 1:43pm UTC](https://www.dynamicsuser.net/t/dataport-not-importing-some-data-having-quotes-correctly/54353/4 "2014-08-13T13:43:30Z")

</div>

I opened the file in note pad and did not find any thing neither a space.

---

<div class="post-metadata">

**Author:** ![manisharma31](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@manisharma31](https://www.dynamicsuser.net/u/manisharma31)\
**Post date:** [August 14, 2014, 5:40am UTC](https://www.dynamicsuser.net/t/dataport-not-importing-some-data-having-quotes-correctly/54353/5 "2014-08-14T05:40:28Z")

</div>

Looks like some issue with the dataport for quotes ("), as many posts do not refer to use this.

I achieve this by using a codeunit and reading the file in there.

Thanks for the help Daniele Rebussi
