When importing associated objects example Orderlines of an order it is important to set you keys correctly.(Main and associated objects)
You also need to use the option "Include additional tables" where you set your joins.
Example: Purchase order and lines (Postgres DB)
Hope this works for you