thx to Hugo for the great explanation ! 🙂
I recommand to create also temptables with create table so it's possible to get indexes and pkeys ..
but this was dicussed here many times so far ...
I got this error from some dynamic sql unfrequently and it was hard to find ... learned my lesson the hard way
kind regards Matthias