SSIS Row Count: Getting a null variable error where there is clearly a selected variable
Try setting the ValidateExternalMetaData property False and then try, quite possible due to run time allocations.

Also set DelayValdiations to True, wherever applicable.

If it does not solve, then let me know!!