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

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

Hi Chandra,

Thank you for answering. This is the current BR we have. First part is:

handleInsertUpdate();

function handleInsertUpdate() {
	
	if (current.top_task.calculation_type == "manual" && !endDateValid()) 
		return false;
	
	if (current.operation() == "insert" ) {
		if (!calculationTypeValidOnInsert()) 
			return false;
		if(!parentPhaseTypeValidOnInsert())
			return false;
		if (current.top_task.calculation_type == "manual") {
			current.calculation_type = "manual";
			current.time_constraint = "start_on";
		}
	} else if (current.operation() == "update") {
		if (current.calculation_type.changes() && !calculationTypeValidOnUpdate())
			return false;
		if (current.time_constraint.changes() && !timeConstraintValid())
			return false;
		if(this._onlyConstraintDateChanged(current) && !constraintDateValid())
			return false;
	}
}

//This is the funtion that displays the message

function constraintDateValid() {
	if(current.calculation_type == "manual") {
		current.setAbortAction(true);
		gs.addErrorMessage(gs.getMessage('Manual task constraint date can not be updated'));
		return false;
	}
	return true;
}

 

Can you explain to me what this means?

Thank you,
Diane

Hi Diane,

Check if these links help.

https://docs.servicenow.com/bundle/paris-it-business-management/page/product/project-management/concept/c_TaskDependencies.html

https://docs.servicenow.com/bundle/paris-it-business-management/page/product/project-management/concept/scheduling-conflicts.html

Thanks.

 

Hi Chandru,

I still can't find out what's causing the error. Can you help me further?

Thanks,
Diane