There was a TOI issued some time ago that said we (NATS ATCOs) must not instruct change of squawk and ident at the same time. Something that might upset the fragile NAS system.
A change of squawk can be issued but if ident is required it should be issued after the number change