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

Notifications

Announcements

No record found.

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
    Inge M. Bruvik Profile Picture
    1,105 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
    Inge M. Bruvik Profile Picture
    1,105 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
    Inge M. Bruvik Profile Picture
    1,105 Moderator on at

    Then your problem is in the xml port somewhere.

  • Suggested answer
    YUN ZHU Profile Picture
    95,329 Super User 2025 Season 2 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,037 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,229

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,867 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,153 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans