I am trying to run the customer statement report. as a batch that sends reports by email, but in case the customer does not have email, an error is returned, although redirection setup on Docentric is configured. Note that this happens only in production, but on UAT it is working and redirection is working correctly.
I the development environment, I have the same data and configuration, but there is no issue with it. The redirection is working correctly, so in this case I am not able to know what the issue is since the code is running correctly and customers with empty emails are redirected to internal email.