If I understood correctly, the CTD appears after you capture the settlement and open up the construction menu?
In that case, I suggest you take a look at hidden resources and special building construction conditionals in the EDB.
The best bet though is to completely clear out the city and only leave the core building. Then try capturing it again and work from that. I know it's a slow approach, but it's the best way to figure out the bug...
Bookmarks