Bug in conversion from v6 to v7

I keep getting the occasional error:

2 = Invalid argument supplied for foreach()
C:\Program Files (x86)\NetMake\v7\wwwroot\scriptcase\devel\lib\php\database.inc.php 1184
2 = Invalid argument supplied for foreach()
C:\Program Files (x86)\NetMake\v7\wwwroot\scriptcase\devel\lib\php\database.inc.php 1184

This goes for some of my applications. And when I generate it again it sometimes does not give an error, and then later it does so again.
Since the point that database.inc.php is encrypted I can not check the error. So could you please find out what is going wrong?
The database is oracle 11g with a full client (instant client can not handle WBISO8859P15 conversions!).
Can you please fix this asap?

I forgot to tell that this is after it is imported. The error occurs in the generate.

Hello,

Have you installed SC internal db on SQLite or Oracle 11g?

Issue reported to our bugs team.

regards,
Bernhard Bernsmann

Oracle is installed on a separate server. But after the latest update, it looks like things are working. So we are keeping a close eye on it and report back when it appears (again).