Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Import - 2 files. Fail if both not successfully imported

Posted on by Microsoft Employee

I'm importing invoices using the standard import with a data map.

An invoice consists of a header and a number of lines

How can I make sure that an invoice is imported completely or not at all?

e.g. the header imports successfully but then there is an issue importing one or more of the lines.

I only want the invoice in the system if all the information has imported successfully

*This post is locked for comments

  • ashlega Profile Picture
    ashlega 34,475 on at
    RE: Import - 2 files. Fail if both not successfully imported

    Actually, I kept thinking of it somehow.. I'm not sure SSIS or Scribe would do it(unless you implement some sophisticated logic there..)

    However, if you tried to utilize plugin transactions, maybe this would work.. but this would require some development. Basically, if you developed some code to push data to Dynamics (without import etc), you could put that code in the pre/post operation plugin of some special entity. That plugin would be running in transaction, so, if something fails along the way, the whole transaction would rollback.

    Sounds like quite a bit of development, though.

  • David Jennaway Profile Picture
    David Jennaway 14,063 on at
    RE: Import - 2 files. Fail if both not successfully imported

    As per the previous post, the standard import will not give this form of transactional functionality. However, you can import data as an all or nothing transaction via the CRM web services, either programmatically or (probably) via tools like the SSIS component (KingswaySoft) or Scribe.

  • Suggested answer
    ashlega Profile Picture
    ashlega 34,475 on at
    RE: Import - 2 files. Fail if both not successfully imported

    Hi,

     I don't think you can do that with the standard import. It'll show you how many records were imported successfully, and how many errors have happened. But does not support "all or nothing" mode as far as I know.

      

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans