write failed doc IDs to a file and enable reading doc IDs from a file
Merge pull request #1085 from dimagi/copy_domain_errors

write failed doc IDs to a file and enable reading doc IDs from a file