Getting this error when trying to update the schema - Requested value 'flowWhenChanged' was not found.

Robert Mazaika 0 Reputation points
2023-01-13T19:10:34.7033333+00:00

com.microsoft.graph.http.GraphServiceException: Error code: RequestParameterInvalid
Error message: schema : Requested value 'flowWhenChanged' was not found.

PUT https://graph.microsoft.com/beta/servicePrincipals/ee5ad669-abf6-4414-8484-450243ac066e/synchronization/jobs/scim.9ce1c5e38c7c4c859473bfc28e98a106.39551a98-20a4-4751-a9ec-bf3956a52bc5/schema

406	Not Acceptable	This service doesn’t support the format requested in the Accept header.

The code looks like thisL


SynchronizationSchema updatedSchema = graphClient
	  .servicePrincipals("ee5ad669-abf6-4414-8484-450243ac066e")
	  .synchronization()
	  .jobs("scim.9ce1c5e38c7c4c859473bfc28e98a106.39551a98-20a4-4751-a9ec-bf3956a52bc5")
	  .schema()
	  .buildRequest()
	  .put(schema);
			
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,447 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,634 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Danny Zollner 9,871 Reputation points Microsoft Employee
    2023-01-15T16:43:01.2733333+00:00

    The second error seems to be clear - have you checked what Accept header your code is sending? If possible, leave the accept header blank to troubleshoot. If you try the same HTTP request via Postman or similar in assuming it works?

    0 comments No comments