The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE))

I am trying to select to file in an automation script with a bind variable for the start date (set from a query that reads the last extract date out of the database). I am outputing to a CSV file. This is for 3.4 Pro Trial version. I keep getting the error: The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE))

Hello Greg,

What connection(s) are you using? Can you send us your script (igor.manokhin@quest.com)?

Thanks,

Igor.