Error: 'Table valued function 'Foo' caused an exception during resultset retrieval. Its resultsets (if any) probably aren't determined in full: Operand type clash: NULL is incompatible with Bar'
I'm not quite sure how I can solve this error. Any suggestions?
update:
Hmm, it might have to do with the fact that it has a table valued parameter.