Views:

Applies to Product - Dynamics 365 Project Operations

What’s happening?
Customers encounter the following error when creating an operation set:
"System.ServiceModel.FaultException1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: Value cannot be null. Parameter name: initiatingUserId."
Additionally, when attempting to add the parameter initiatingUserId to the API, the errorSystem.ServiceModel.FaultException1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: Unrecognized request parameter: initiatingUserId is received.


Reason:
This arises due to the initiatingUserId parameter not being passed correctly to the API, resulting in a null value error. There may also be a mismatch or typo in the parameter name when adding it to the API, leading to an unrecognized request parameter error. 


Resolution:

  1. Verify that the initiatingUserId parameter is correctly configured in the API request.
  2. Ensure that the correct API version that supports the initiatingUserId parameter is being used.
  3. Check the data type and format of the initiatingUserId parameter being passed in the API call.
  4. Confirm if there is any specific pattern or scenario under which the error occurs, such as a particular operation set or data being processed.
  5. Review the API endpoint and method being called when encountering this error.
  6. Review the API documentation for any recent changes or updates related to the initiatingUserId parameter.
  7. Check for any error messages or logs that accompany this issue, providing more context or details.
  8. Ensure that the Dynamics 365 environment is currently up to date, or check for any pending updates or patches.
More information: Use Project schedule APIs to perform operations with Scheduling entities | Microsoft Learn