Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Why am I getting "Manual task constraint date can not be updated" error when I try to update tasks from Planning Console?

dianemiro
Kilo Sage

Versions: Orlando and Paris

Hi Everyone,

Does anyone know why I'm getting this error? When I'm trying to update Percentage?

find_real_file.png

 

Thanks in advance,
Diane

1 ACCEPTED SOLUTION

Chandru4
Kilo Expert

Hi Diane,

What's the constraint type across each of those tasks and sub-tasks? (you may be able to find this in the same console page, see the image below).

find_real_file.png

 

I think you're trying to modify a project that has "Manual" in the calculation field. If this is the case, the OOTB PPM Standard application should disable the time constraint field when you create a task/sub-task. Wondering how it allowed you to update the time constraint, unless you modified some thing on the time constraint UI policy.

Few things that might be of some help here:

  • Do check the business rule - "ProjectWorkbenchPhaseValidationAndUpdate" and check the below as well.

function timeConstraintValid() {
if (current.calculation_type == "manual" && (current.time_constraint == "asap" ||current.time_constraint == "snlt" || current.time_constraint == "snet")) {
current.setAbortAction(true);
gs.addErrorMessage(gs.getMessage('Manual task time constraint can not be updated'));
return false;
}

Let me know how it goes.

Thanks

View solution in original post

5 REPLIES 5

Hi Diane,

I did a quick check and the way it works is that.

  1. When you make an edit to the percentage complete, the default functionality could make a change to the “planned start date” depending on how the tasks and child tasks are created.
  2. Now when this happens, either this “planned start date” is conflicting with the “constraint date” or the “constraint date” is being updated for the given project. I need to confirm on this.

Can you help me with the following:

  1. Can you show all the time constraints, constraint date for the given project & tasks?
  2. And how did you create this project? (I understand that the calculation type is manual, but wondering how did you go about creating this e.g. did you change from Automatic to Manual?)
  3. Did you make edits to the default UI policies for the given form?

Note: The business rule “ProjectWorkbenchPhaseValidationAndUpdate” is a standalone one and it throws the given error only when the “constraint date” is changed and the calculation type is “manual”. This I believe we know it already know - Just a FYI.

Let me know. Thanks.