Skip to main content

Notifications

Announcements

No record found.

Service | Customer Service, Contact Center, Fie...
Answered

Importing Case history partial failure on status/status reason

Posted on by 125

Hello,  I created a template for importing cases.  For a case thats been resolved it returns the values for status and status reason as follows:

pastedimage1610743928690v1.png

Looking above to import a case as closed it appears I should set Status to Resolved and Status Reason to Problem Solved, as this was the output generated by the template.

However when I import additional cases that I want to import as closed, they are imported as "Active" with a partial failure of "The status or status reason of the Microsoft Dynamics 365 record could not be set".

pastedimage1610744111928v1.png

pastedimage1610744133827v2.png

I have about 20,000 or so cases to import.  I need them to be imported as closed.  Is there an additional field I'm missing?

Thanks

  • JMAtoms Profile Picture
    JMAtoms 125 on at
    RE: Importing Case history partial failure on status/status reason

    Hi Prateek thanks for the clarification.  I wasn't importing as CSV, but rather as excel before.  I just tested this all out and it works.   Thanks so much.

  • Verified answer
    prt33k Profile Picture
    prt33k 6,907 on at
    RE: Importing Case history partial failure on status/status reason

    Hi,

    Yes, it is possible.

    You won't be able to get the Case Resolution template and that is why I suggested CSV.

    Below are the detailed steps :

    So I have two case records - both backdated and Active.

    pastedimage1611004685977v9.png

    I am creating a CSV with the below columns (i have included the actual end date and timespent)

    pastedimage1611004729024v10.png

    Ensure you are saving it as CSV

    pastedimage1611005407941v1.png

    Now I am importing the file ->Setting->Data Management->Import

    pastedimage1611003571602v3.png

    Select the 'Case Resolution' entity:

    pastedimage1611003602265v4.png

    Make sure the mapping is correct. You can click on the lookup sign to make sure the field is correctly mapped

    pastedimage1611004576193v7.png

    Import goes successful

    pastedimage1611004666376v8.png

    The cases are resolved as well.

    pastedimage1611004835157v11.png

    If I go to advance find to ensure the date got correctly populate, I get the correct result.

    pastedimage1611004912931v12.png

    pastedimage1611004931321v13.png

  • JMAtoms Profile Picture
    JMAtoms 125 on at
    RE: Importing Case history partial failure on status/status reason

    Hi Leah,

    Thanks for the response, however this wont work as I need to retain the original resolution date.  That would have a serious impact on historical reports.

  • JMAtoms Profile Picture
    JMAtoms 125 on at
    RE: Importing Case history partial failure on status/status reason

    Hi Prateek,

    When creating the csv file:  

    pastedimage1610979728758v1.png

    I get the following error on import:

    pastedimage1610979764993v2.png

    When trying to download a template for the case resolution entity, there doesnt seem to be one:

    pastedimage1610979860330v3.png

    Will this method also allow me to keep the original resolution/close date of the ticket I'm importing?  I do not want cases to import, and then have a date of today as the resolution date.  That would have a serious impact on historical reports.  

    Thanks.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Importing Case history partial failure on status/status reason

    Hi JMAtoms,

    Another way is to set up a custom flag field on case record and have a workflow process on create of record which checks for the value of this flag field and sets the status accordingly.

    1.Create new custom flag field in case entity and add one new flag column in excel file.

    pastedimage1610949423161v6.png

    Status column is null and flag column contains data in excel.

     pastedimage1610949066178v1.png

    When import case, map flag field in ‘Review mapping’ step.

     pastedimage1610949295551v3.png

    2.Go Settings > Process to create a workflow in case entity.

     pastedimage1610949312216v4.png

    Add ‘check condition’ step and add ‘change status’ step under condition step.

     pastedimage1610949375920v5.png

    3.Test.

     pastedimage1610949275945v2.png

    But this will not work in case if resolution date are required to be kept same (old values).

    Regards,

    Leah Ju

    Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.

  • Suggested answer
    prt33k Profile Picture
    prt33k 6,907 on at
    RE: Importing Case history partial failure on status/status reason

    Hi,

    Case will be imported in Active state only since the closure of case is followed by 'Case Resolution' entity creation.

    You can create a csv with "case title, subject, resolution type and Remark"  and import this csv to 'Case Resolution' entity.

    This will resolve all the cases with Resolution type and remarks. Something like this :

    pastedimage1610879391019v1.png

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