update case fields and add enhanced error handling to case uploads