This looks like a problem with AMPL? It seems ampl has problems executing your model before it even attempts to call CPLEX. So you may be better off asking this question on an AMPL forum.
From the error message and what you showed a very wild guess would be that the problems come from
Xijk[c1,d1+1,notu]
for the last element in D. In that case index d1+1 is probably not defined? Maybe the constraint should not be defined for the last element in D?
#CPLEXOptimizers#DecisionOptimization