cases upload

30 views
Skip to first unread message

yashseth

unread,
Mar 28, 2013, 2:54:53 AM3/28/13
to commcar...@googlegroups.com
Hi 
In our case , the field staff should have all the cases pre-created and just need to update them so I wanted to bulk upload cases using the submission API.
Is this possible ? 
Currently Im posting an xml file which returns the message Thanks for submitting, but I do not get the cases I uploaded when I retrieve them.
What is the format of the file to be uploaded ? I'm attaching the sample upload file 
sample.xml

Sheel Shah

unread,
Mar 28, 2013, 3:26:52 AM3/28/13
to commcar...@googlegroups.com
Hi Yash,

I would recommend creating a form (using CommCareHQ) that creates the case that you need.  You can then submit and look at the form submission to figure out the XML format that you need to submit to create the case.

You can also review this:

Thanks,
Sheel


--
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-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Sheel Shah
Project Manager | Dimagi India


yashseth

unread,
Mar 28, 2013, 3:36:31 AM3/28/13
to commcar...@googlegroups.com
Got it.
Thanks Sheel ! 

yashseth

unread,
Apr 4, 2013, 7:30:00 AM4/4/13
to commcar...@googlegroups.com
Hi Sheel,
I tried this approach and successfully uploaded cases to our domain. The problem is that at the time of bulk upload, it is working for upto 10 cases in 1 file, but not more than that. Is there any such restriction on the number of cases you can create at one go.
The error that I get is that the xml regular expression is too complex.
Thanks

Cory Zue

unread,
Apr 4, 2013, 7:31:56 AM4/4/13
to commcar...@googlegroups.com
Hi Yasheth,

If you could email the xml file that causes that error to commcareh...@dimagi.com we can take a look at it.

thanks,
cory


--

yashseth

unread,
Apr 4, 2013, 7:35:01 AM4/4/13
to commcar...@googlegroups.com
Hi Cory,
I'm attaching the file with 20 cases which is failing. A similar one with 5, 10, 11 cases is working.


On Thursday, March 28, 2013 12:24:53 PM UTC+5:30, yashseth wrote:
create1.xml

yashseth

unread,
Apr 4, 2013, 7:36:05 AM4/4/13
to commcar...@googlegroups.com
Hi Cory,
I'm attaching the file with 20 cases which is failing. A similar one with 5, 10, 11 cases is working.

create1.xml

Cory Zue

unread,
Apr 8, 2013, 9:36:26 PM4/8/13
to commcar...@googlegroups.com
Hi Yasheth,

This should be fixed now. Let us know if you still see problems!

thanks,
Cory

yashseth

unread,
Apr 10, 2013, 7:21:37 AM4/10/13
to commcar...@googlegroups.com
Thanks Cory. It works now.
Reply all
Reply to author
Forward
0 new messages