I ran this

SELECT fielda from TableValuedfunctionx(field3, field4)

and no data was returned. At this point I began to suspect that my code was good and it was the existing code that was suspect.

I talked to the developer that wrote the code originally (not too long ago) and he is making the recommended change.

Thanks for your help.