Trouble fetching data from parent and child form to input into another form based on lookup field

Trouble fetching data from parent and child form to input into another form based on lookup field

I have similar scripts for other forms that seem to work fine. i'm not sure why this one doesn't work. All data is from one form and it's subform based on the lookup field Accession_Number. The script was working until I added the child form lines.

This is the error message: 
Error details:
 Error in executing On User Input script of Accession_Number.
 Invalid client task found corresponding properties Line:(20)
 UnParsable date Line:(20)

Script:
if(Master_Database[ID == input.Accession_Number].count() > 0)
{
x = Master_Database[ID == input.Accession_Number];
//input. refers to fields in current form
input.Collection_Date = x.Collection_Date;
input.Pop_Ref_Code = x.Pop_Ref_Code;
input.Status = x.Status;
input.Taxon_Code = x.Taxon_Code;
input.Species_Name = x.Species_Name;
input.Founder_Plant = x.Founder_Plant;
input.Other_Source = x.Source_Other;
input.Source_Accession = x.Source_Accession;
input.Collector_Initials = x.Collector_Initials;
input.Number_of_Founders = x.Number_of_Founders;
input.Detailed_Collection_Site = x.Detailed_Collection_Site;
input.Collection_Notes = x.Collection_Comments;
input.Original_Wild_Plant_Founder = x.Original_Wild_Plant_Founder;
input.PopRefSite = x.PopRefSite;
input.Prop_Source_PopRefCode = x.Prop_Source_PopRefCode;
input.Original_Collection_Date = x.Original_Collection_Date;
input.Project = x.Project;
input.Prop_Request_By = x.Plant_Propagation_Request.Requested_By;
input.Amount_Requested = x.Plant_Propagation_Request.Amount_Requested;
input.Est_Outplanting_Date = x.Plant_Propagation_Request.Estimated_Outplanting_Date;
input.Estimated_Outplanting_Date_2 = x.Plant_Propagation_Request.Estimated_Outplanting_Date2;
}