Please, run the attached report. We would expect that the exec function will return the sum of debits from the table2, however, the scope is returned as invalid.