Hello,
I’m working on a custom Commissions Report that shows Paid invoices in the Top section and Not-yet-fully-paid invoices for the same Salesperson, as of the same Period-end in the bottom section - “Future Commissions”.
The report works well until I connect the sub-report. One colleague helped me try the following ideas for passing the financial period to the subreport:
- Ideally we will pass the report parameters provided by the users - @Salesperson and @FinancialPeriod. Any period the User chooses upon printing, that value should pass to the subreport.
- When @Financial Period did not work, we tried a database field in the Parameters collection, [ARInvoice.FinPeriod], with no success.
- We tried hard-coding a Period that we know has commission activity in the Parameters collection. We tried two different formats: 09-2024 and 202409, with and without quotes.
- We tried several fiscal periods, and the error presents for all periods we tested. When we remove the Sub Report Name, the report works fine.

When the report is printed, an error appears, with the following trace details:

Please advise. Thank you in advance for any help you can offer!
Laura




