You need to ensure that the columns (number, name and type) are the same on both branches of the IF statement. Otherwise SSRS can't figure out which result set to use. For that matter, how can you write a report when you don't know if you're getting columns A,B,C or D,E,F?