Symptom
You are able to create Composite Task with User IDs as ‘assignees’ and ‘reviewer’, but an error arise when you try to use Teams in the cited properties. Below error displays:
“You’ve specified one or more users that are not valid. Please verify that the user IDs are valid, and try again.”
Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.
Environment
SAP ANALYTICS CLOUD 1.0
Reproducing the Issue
- You check and get the Team ID from Calendar ->Create Composite Task -> Add Assignees ->Select a team and check the Team ID.
- Create a Story and add a Button in it.
- For "onClick" event, you add some test script as below:
"
var newTask = CalendarIntegration.createCompositeTask({
name: "Test task",
startDate: new Date( Date.now() + 10000000),
endDate: new Date(2024,6,1),
description: "Test teams assignment",
assignees: [Application.getUserInfo().id],
workFiles: [{
id: Application.getInfo().id,
type: CalendarTaskWorkFileType.Story,
}],
reviewers: {
"1": ["TEAM:t.K:CalendarAPI"]
}
},{
autoActivate: false
});
if (newTask !== undefined) {
console.log(newTask);
Application.showMessage(ApplicationMessageType.Success, "Tasks have been created successfully.");
} else {
Application.showMessage(ApplicationMessageType.Error, "Tasks creation failed.");
}
"
5.Triggering the Button in the View Mode of the Story you get the error “You’ve specified one or more users that are not valid. Please verify that the user IDs are valid, and try again.”
Cause
You get the wrong Team ID.
Resolution
Please don't get Team ID from "Composite task". Please get it from Security ->Teams , as the screenshots below:
and use it as below:
Keywords
KBA , LOD-ANA-UNS-SCR , Unified Story Scripting related Issues , LOD-ANA-AD , Analytics Designer , Problem
Product
Attachments
Pasted image.png |
Pasted image.png |
Pasted image.png |
Pasted image.png |