• silly possibility, make sure the user SQL Agent runs under has access to the database it queries.

    that was my problem, found it using the @append output option.