[FIX]Fixed traceback for edi_invoice,context and invalid date format.