Empty staff space between barline and margin

Hello all. I can’t find if this has been covered before. I have this empty staff space at the end of a page, between the last barline and the margin.

The next bar, wich is on the second page, goes into a double staff (I added a new staff).

I searched for a problem related to key change, metrics or system break but it all seems right. In Engrave mode, note spacing, moving the red squares only affects the notes alignment or the end of the system, it has no effect on the empty space. See pictures enclosed. Thank you in advance.

Hi @alexandregrogg, probably this spacing is the remaining of a Time Signature change [EDIT 1: or a clef, as @charles_piano points out] that is somehow hidden, because of your added staff…
Can you post the Dorico file, to diagnose the culprit?

(@charles_piano show this too in the next post. Click to enlarge my example.)

Edit 2:

following the advice by @charles_piano, I recreated what is probably happening in your project (as Charles shows too).

In flow 1 the current situation (using a single staff instrument.) In Flow 2 the correction (using a grand staff):

Dorico file example:
unwanted hidden clef spacing in flow 1-corrected in flow 2 .dorico (1.5 MB)

I can reproduce that.

It’s the same issue as here:

The only workaround I can think of is to turn your single‑staff instrument into a double‑staff instrument, move the notes from your added staff into the new "real’"staff of the instrument, and then remove the added staff… And hide the bass staff in the first page.

Not that simple, maybe someone will have a better idea!

I’ve just thought of an easier workaround that keeps your original staves. You can change the default clef of your instrument to a bass clef:

This answer I got from mr. Hartmann: You have to add an additional bar, enter the keychange, use she dashed barline and go to engraving options and set the lenth of the dashes to 0.

Then go to engrave mode and move the last barline with the Notespacing tool.

Also you have to do a correction for the bar numbers (right click menu)

… the key change is not necessary here; my question was about a D.C. and going back to the original key signature…

This is great thank you.