Hello rejean-bourque-o,
Welcome to Community! When creating T4 slips in QuickBooks Online, we understand that things can happen. It's essential that you're able download the XML file without complication. I would be glad to help!
To ensure your employee profiles do not include any special characters such as a (-) or other, I suggest reviewing all employee profiles, including those who have been made inactive. Once the corrections have been made, you can Prepare and submit T4 slips and summary without error.
Should you require additional assistance, please don't hesitate to reach out to our QuickBooks Online Payroll specialists. They will be able to work with you in real time, and ensure you're able to accomplish your payroll goals without delay!
If you have any other questions, feel free to reach out. We are always happy to assist!