Reopening a case

Hello
Please is there a way I can reopen a case I closed accidentally.
will be grateful.
Best.

Thanks so much Skelly.
Best

ยทยทยท On Sunday, June 4, 2017 at 7:26:15 PM UTC, Robert kolbila wrote: > > Hello > Please is there a way I can reopen a case I closed accidentally. > will be grateful. > Best. >

Hi Robert

You can re-open a case by archiving the form that closed it. You can find
documentation on how to do that here:
https://confluence.dimagi.com/display/commcarepublic/Archive+Forms

Simon Kelly
Director of Server Engineer | Dimagi

ยทยทยท On 4 June 2017 at 21:26, Robert kolbila wrote:

Hello
Please is there a way I can reopen a case I closed accidentally.
will be grateful.
Best.

--
You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi Simon_Kelly

Is there a way I can re-open a closed case in commcare using excel import since there are over 800 cases closed. The issue in my case is that the checkbox "Close this case when the form is complete" was check when developing my form which allows a case to be closed upon completing the "Exit Form". My issue is I still want the data under the Exit form but I only want to re-open the case. I thought by simply using an excel template and have columns namely caseid, close (document "no") would work but it only works when you close it. Please help

currently not possible.
https://dimagi.atlassian.net/wiki/spaces/commcarepublic/pages/2143956224/Closing+Cases#:~:text=Note%3A%20It%20is%20not%20currently,form%20which%20closed%20the%20case.

I would do the following

export the form data from the form that closes the case

search for those forms in CommCare, and archive them - this will reopen cases but lose your data

use the case upload to update those cases with that form data that you exported first. make sure you get the case ID in there.

this is the only way as far as I can tell without losing your data. you do lost it, you just also have a copy before you lose it, so that you put it back up there

Mazz

I think there is one other option but requires using the APIs.

  1. Download the form XML for all the forms that closed the cases
    • Using the form attachment API https://www.commcarehq.org/a/{domain}/api/form/attachment/{form_id}/form.xml
  2. Remove the case close block from the XML
  3. Re-submit the form using the form submission API

This will have the effect of deprecating the old form and replacing it with the new form XML.

1 Like