Hi Peter
The error is at the receiver adapter processing and not at the custom module. This is because by default the custom module does not write the filename into the child messages' dynamic configuration.
Try adding storeFileName = Y to the parameters of the splitter. You can refer to the Module Parameter Reference section for more details.
Rgds
Eng Swee