You have a plurality of view types in Cadence. Switch views are
the search-order in which hierarchy is traversed, until a stop
view (also taken in list order priority) is found.
As one example, if you have a "mature" design that already
has a layout view and an extracted view, and you go to do
another extraction, stop view list order:
layout extracted
will find the layout, choose it by list-order and extract the
connectivity.
extracted layout
will pick the extracted view and you try to extract the
extracted, but this likely fails because the view does
not contain layout "drawing" layers but "net" or whatever,
and none of the PCell features that are parsed for terminal
assignment and device recognition. You may get a null or
a malformed "extracted" view this time depending on
whether the extract script finds anything, or errors out.
Look at the extracted view as a layout and see if you
have anything resembling the source layout. Look at
the LVS input netlists for sane device callouts and
node assignments. What's busted?
Failing for line-count indicates a gross mismatch, like
a really munged extracted view. Inspect the extract
process log for better clues.