@Katy Haddad Thanks for reaching out.
As per the error it looks like JSON payload being processed by the Azure Function has exceeded the maximum depth allowed by the JSON serializer. The full stack trace should provide you with more information about which piece of code is throwing the error. In case if it is Newtonsoft.Json library then you can try increasing
JsonSerializerSettings.MaxDepth Property to higher value. It is always suggested Simplifying the JSON payload. If the JSON payload contains nested objects or arrays that are too deeply nested, you can try simplifying the payload by removing some of the nested objects or arrays.
If the Azure Function code is processing the JSON payload in a way that causes it to exceed the maximum depth allowed by the JSON serializer, you can try optimizing the code to reduce the depth of the JSON payload.