Adding a simple example (working on much harder but the problem is the same) - it's price/profit optimal combination.
When I add this constraint everything breaks (simple constraint to x > A)
for j in range(N):
model.addCons(x[j] >= A[j])
Warning: SCIPgetSolVal cannot only be called in stage SOLVING without a valid solution (current stage: 10)
While without it everything works ok