Unable to load SubRoutine into another Program

I’m trying to add a subroutine called Pick_Pos_3 to my main program.

The subroutine Pick_Pos_3 itself also has 2 subroutines in it.

I keep getting the fault -

The SubProgram ‘Pick_Pos_3’ contains one or more calls to other SubPrograms

Action Advise -
Open SubProgram ‘Pick_Pos_3’ as the main Program.
Remove any contained SubPrograms.
Save the modified program then try to add the Sub Program as before.

Does this mean you cannot had subprograms within subprograms or have I made a mistake in the coding ?

Correct, UR does not allow nested subprograms (directly). There are workarounds, see this thread: Merging Multiple Programs in Polyscope - #2 by eric.feldmann