When you build objects in a new environment, you need to build them in the right order of operations.
Until you have all the objects in place, you can’t create a procedure that references them all. And if those objects require more parent objects, they must be created first too. For example:
procedure reads view which reads a table which is composed of a type
Recently I wrote in my other post about the parent and child dependencies. They give a lot of great information. But they only go one level in either direction. As you know, there can be many levels of objects.
What is the order of operations to build them? I’ve written some complex scripts here to find all the successive parents of an object.