- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2020 12:39 AM
Versions: Orlando and Paris
Hi Everyone,
Does anyone know why I'm getting this error? When I'm trying to update Percentage?
Thanks in advance,
Diane
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2020 07:43 AM
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).
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2020 07:43 AM
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).
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2020 11:00 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2020 08:08 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2020 08:34 AM
Hi Chandru,
I still can't find out what's causing the error. Can you help me further?
Thanks,
Diane
