Problems creating local variables when moving objects from one file to another

Hi Figma Community,

I have been having problems moving variables / variables collection from one file to another.
I’m trying to move frames with variables attached to them from one file to another and create local variables in the new file.
But when I try no new local variables are created and this dialog is not showing for me either:

I have unpublished the variable collection from the library before copying to the other file.

Any suggestions would be greatly appreciated