Thank you for your response,
i have found the problem to this error
When you install the AOS, it creates certain stored procedures which are checked in the flattening script.
The reason the script isn't generated correctly is because the tables are already gone at that point.
The problem situated much earlier in the process, when the AOS is installed. When you install both AOS and DB at the same time, it will ask you to register for upgrade.
This was impossible since i came from FP and we needed the FP AOS for the split.
When the environment synchronized it removed these tables before the generation of the script and checking for this stored procedure.
The problem was i had customizations on certain tables which prevented me from running the checklist without syncing these tables , for example the presynchronize step .
It also did not show the synchronization progress dialog. So i knew he was syncing a lot more at that time. Actually this
So when i had this stored procedure , it was already too late ( the stored procedure is checked in the class SysDataUpgradeSCscTPT2TPH in the method isInUnFlattenMode()
I created the stored procedure myself after installing the AOS:
CREATE PROCEDURE [dbo].[TABLEPERTYPEINHERITANCEMODE] AS SELECT 1
The upgrade guide does not fully explain this issue. I will send some proposals concerning the guide to the support team.