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:
- Verify that the initiatingUserId parameter is correctly configured in the API request.
- Ensure that the correct API version that supports the initiatingUserId parameter is being used.
- Check the data type and format of the initiatingUserId parameter being passed in the API call.
- Confirm if there is any specific pattern or scenario under which the error occurs, such as a particular operation set or data being processed.
- Review the API endpoint and method being called when encountering this error.
- Review the API documentation for any recent changes or updates related to the initiatingUserId parameter.
- Check for any error messages or logs that accompany this issue, providing more context or details.
- Ensure that the Dynamics 365 environment is currently up to date, or check for any pending updates or patches.
