I have been testing the Project and Project Task creation APIs and found what I believe to be an odd bug. Has anyone else experienced this?
I am creating projects via the msdyn_CreateProjectV1 Action. That is working fine.
I am then trying to add Project Tasks to the above projects (using
msdyn_CreateOperationSetV1
msdyn_PssCreateV1
msdyn_ExecuteOperationSetV1)
and having mixed results with sometimes it working and other times the operationset is Pending. I have been able to recreate this as follows:
Can anyone explain this behavior and why it is “Pending” and what needs to be done to complete it? If creating tasks for a Project, is there a pre-requisite that the Task tab must be opened in Model app form manually first?
Hey Antii,
Issue got resolved by following your link i have added one another step of abondonprocess.
Thanks for suggestions.
Regards,
Taral Shah
That means that there are 10 open OperationSets for the user:
https://docs.microsoft.com/en-us/dynamics365/project-operations/project-management/schedule-api-preview#limitations-and-known-issues
You need to either abandon them manually or wait for the OOTB flows Project Service Core - Abandon Open Operation Sets or Project Service Core - Abandon Pending Operation Set to run.
Hello Antti,
The issue got resolved by your answer but now while creating OperationSet i'm getting below error in MS flow.
"ScheduleAPI-OV-0004:00000000-0000-0000-0000-000000000000: The maximum number of operation set allowed per user is 10."
That error is given when an OperationsSet is created by user a) and called by user b). You have to create and call with the same user.
Hello Antti,
i have done changes as per your recomnedations and error resolved.
but getting below error while running the flow.
Can you suggest what can be the issue?
Hi Taral Shah.
I can see two things there in the JSON:
{
"Entity": {
"msdyn_LinkStatus": 192350000,
"msdyn_subject": "taskSubjectHere",
"msdyn_start": "yyyy-MM-ddTHH:mm:ssZ",
"msdyn_finish": "yyyy-MM-ddTHH:mm:ssZ",
"@@odata.type": "Microsoft.Dynamics.CRM.msdyn_projecttask",
"msdyn_project@odata.bind": "msdyn_projects(projectGuidHere)",
"msdyn_projectbucket@odata.bind": "msdyn_projectbuckets(bucketGuidHere)"
},
"OperationSetId": "operationSetIdHere"
}
Hello Antii,
I 'm creating project tasks using Flow using below article
in my scenario project task will be multiple so when i'm trying to generate tasks using psscreatev1 command in apply to each step.
the flow gives below error and not able to save the flow.
Below are my steps of the flow.
can you suggest what can be the issue.
I'd repro the scenario in Postman and if it doesn't work, open a service request. At least in my geo the APIs are working when called from custom connectors.
Thanks - I had seen your post before and was very useful. I am using a C# plugin triggered from a custom entity populated by a integration job for our POC testing rather than PowerAutomate but when we move to PA I'm sure it will be very useful.
Since my Scenario 3 works and Scenario 1 does not and only difference is opening the Task tab, I think this is MSFT bug. I am following the process you mentioned and have not been able to find any documentation on what the OperationSet status of "Pending" means so will raise ticket with MSFT.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156