This is most likely because you are not including the schema name in your statement TRUNCATE, so it is looking for a table in the schema public.
Try changing the statement TRUNCATEto the following:
EXECUTE 'TRUNCATE TABLE ' || quote_ident(stmt.table_schema) || '.' ||
quote_ident(stmt.table_name) || ' CASCADE';
, -, CASCADE, , TRUNCATE , , .
OP:
table_schema statements, EXECUTE.