I found out that if the itQuery.Name variable is null or an empty string, then you will receive this error. Can Intuit change the error message to say, "You must specify a value for the Item Query Name field. You have entered an empty or null string."
In my particular case, I had a string that was supposed to say unknown. It was an empty string.