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

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

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

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