web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

After Importing the record I want only one record not the duplicate records of it.

(0) ShareShare
ReportReport
Posted on by 2

Hi ALL,

               I have imported 2 records to the employee table, I will give a  confirm message if it is true then the imported record should be modified but it is, duplicating and creating another record  in my case, can anyone help me.

Thanks & Regards,

Sams.

I have the same question (0)
  • Suggested answer
    IB-29041624-0 Profile Picture
    1,187 Moderator on at

    Maybe you can share the code you are using? Then it is easier to help you.

  • Satish Profile Picture
    2 on at

    Hi Bruvik,

                   I am attaching my code

    pastedimage1664213811170v1.png

  • Suggested answer
    IB-29041624-0 Profile Picture
    1,187 Moderator on at

    You are only sharing part of your code. What does the Update Emloyees codeunit look like?

  • Satish Profile Picture
    2 on at

    Hi Bruvik,

               Through the codeunit I am just importing the records.

    pastedimage1664214508451v1.png

  • Suggested answer
    IB-29041624-0 Profile Picture
    1,187 Moderator on at

    Then your problem is in the xml port somewhere.

  • Suggested answer
    YUN ZHU Profile Picture
    100,634 Super User 2026 Season 1 on at

    Hi, You can first import the data into the temporary table using xmlport, then make a selection, and if it exists in the real table, modify it, and if not, insert it. I think this is simpler.

    Hope this helps.

    Thanks.

    ZHU

  • Suggested answer
    Amit Baru Profile Picture
    3,041 on at

    Hi,

    Issue in XML port logic.

    Regards

    Amit Sharma

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,995 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,147 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 893

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans