I have successfully used QRules to copy the results from a SQL query into a Infopath repeating table. The goal is to pull current values from one of our systems into this form and then allow the user to delete/modify those results. The issue I am having is if one of the columns of data is null it appends the data to the wrong column in the editable table (see attached for screenshot). Is there a "switch" that I need to add that will allow it to consider null values as valid values when using the Copytable function?
Here's the code I am currently using. The attached has a screenshot of the results as well as my data field structure.
To pull data from SQL table:
concat("ModifySqlQuery /dsname=CropInsuranceDatabase /where=where TblCustomer.SSN='", SNNwithdashes, "'")
To copy to editable table:
CopyTable /dsnamesrc=CropInsuranceDatabase /tablesrc=/dfs:myFields/dfs:dataFields /rowsrc=d:TblCustomer /tabledest=/my:myFields/my:TranswithAgSouthSection/my:CropInsSection /rowdest=my:CropInsSectionList /empty=yes