You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ClientRequestException: ('BadRequest', 'Number of requests inside batch exceed the limit.', '400 Client Error: Bad Request for url: https://graph.microsoft.com/v1.0/$batch')
This is strange, because the length of users_tkl31 and displaynames is 28 and this is given in app_client.execute_batch(items_per_batch=28) as parameter and 28 is smaller then 100.
I tried to change the size of items_per_batch to 7. Then i get another error:
ClientRequestException: ('BadRequest', 'Write request id : 0 does not contain Content-Type header or body.', '400 Client Error: Bad Request for url: https://graph.microsoft.com/v1.0/$batch')
Maybe i missunderstand the concept of batch-query but i think this should work.
The text was updated successfully, but these errors were encountered:
I have a list of users where i have to change the displayName.
Doing this user by user works. I tried to do this using a batch-query like this.
app_client
is of type office365.graph_client.GraphClientusers_tkl31
is a list of 28 users found bywith some given cols.
displaynames
is a list of 28 displaynames found byThe batch-query ist defined by
This leads to the error message
This is strange, because the length of
users_tkl31
anddisplaynames
is 28 and this is given inapp_client.execute_batch(items_per_batch=28)
as parameter and 28 is smaller then 100.I tried to change the size of items_per_batch to 7. Then i get another error:
Maybe i missunderstand the concept of batch-query but i think this should work.
The text was updated successfully, but these errors were encountered: