Hi @Fauzia_Ajaz
In UiPath, when you copy a sequence from one workflow to another, some variables are copied automatically and others need to be added manually due to the way variables are defined in the workflow scope.
Variables in UiPath have a specific scope, which defines where they can be accessed. When you copy a sequence, only variables that are in the same scope as the copied sequence are automatically transferred. If a variable is defined in a broader scope (for example, at the parent workflow level), it is not automatically copied because UiPath does not copy variables from different scopes to avoid conflicts and ensure that variables are used correctly in the new workflow.
Therefore, variables that were not automatically copied are probably outside the scope of the sequence you copied, requiring you to manually add them to the new workflow.
To avoid this, you can check the scope of the variables before copying or recreate the variables manually in the new workflow.