Spool out "build_sql" after execute immediate and see what is happening.