Why is this making an error?

That is weird. Maybe add a validated get after the BWSelectMapRef set and direct the “Is Not Valid” path to a print statement. You shouldn’t get to the print statement; however, something is causing the BWSelectMapRef to be none…