# how to remove duplicate imported items in AX tables while importing the excel file through x++ code

**URL:** <https://www.dynamicsuser.net/t/how-to-remove-duplicate-imported-items-in-ax-tables-while-importing-the-excel-file-through-x-code/55606>\
**Category:** Developer Forum\
**Created:** [November 3, 2014, 10:30am UTC](https://www.dynamicsuser.net/t/how-to-remove-duplicate-imported-items-in-ax-tables-while-importing-the-excel-file-through-x-code/55606 "2014-11-03T10:30:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![venkata.ax](https://avatars.discourse-cdn.com/v4/letter/v/cdc98d/32.png) [@venkata.ax](https://www.dynamicsuser.net/u/venkata.ax)\
**Post date:** [November 3, 2014, 10:30am UTC](https://www.dynamicsuser.net/t/how-to-remove-duplicate-imported-items-in-ax-tables-while-importing-the-excel-file-through-x-code/55606/1 "2014-11-03T10:30:43Z")

</div>

hi friends.

how to remove duplicate imported items in AX tables while importing the excel file through x++ code?

i am importing some data to a AX Table , using Excel file , in excel file some records are duplicated , while i am importing the Excel file into a AX table by using x++ , at the time of importing i need to remove duplicate

---

<div class="post-metadata">

**Author:** ![MartinDrab](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@MartinDrab](https://www.dynamicsuser.net/u/MartinDrab)\
**Post date:** [November 3, 2014, 9:57pm UTC](https://www.dynamicsuser.net/t/how-to-remove-duplicate-imported-items-in-ax-tables-while-importing-the-excel-file-through-x-code/55606/2 "2014-11-03T21:57:46Z")

</div>

Just add a check to your code to skip items that have been already imported.

---

<div class="post-metadata">

**Author:** ![lalit.jivnani](https://avatars.discourse-cdn.com/v4/letter/l/c5a1d2/32.png) [@lalit.jivnani](https://www.dynamicsuser.net/u/lalit.jivnani)\
**Post date:** [November 4, 2014, 6:52am UTC](https://www.dynamicsuser.net/t/how-to-remove-duplicate-imported-items-in-ax-tables-while-importing-the-excel-file-through-x-code/55606/3 "2014-11-04T06:52:52Z")

</div>

Even before importing excel file, by using inbuilt excel functions you can remove duplicate items if this solution is feasible.
