Added check for successful transformation read in generate task
* this was not checked previously and was hard to diagnose because it only became visible when the queries failed