The entity (AAA) has a variable (previousStandstill) with value (BBB) which has a sourceVariableName variable (nextCustomer) with a value (AAA) which is not that entity.
Verify the consistency of your input problem for that sourceVariableName variable.
When I resume my process of solving, it caused an error like above. When I see this problem, the first (AAA) and second (AAA) is different. But in my problem, both (AAA) is the same. What is causing this problem?