I set the constraint to Not Enforced in project2 and I was able to execute the command successfully.
This answer works for us, but in our case, we have to change the constraint to 'Not Enforced' in project1.
project1