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

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

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);
			
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,588 questions
Microsoft Graph Applications API
Microsoft Graph Applications API
A Microsoft API that enables you to manage these resources and actions related to applications in Azure Active Directory.
425 questions
{count} votes

1 answer

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

    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?

    No comments