I'm getting the below error while trying to create a stored procedure using Azure documentDb .NET SDK. The script content size is 430KB.
Message: {"Errors":["The input Body length is invalid. Ensure to provide a script of size lesser than '102400' characters.","The request payload is invalid. Ensure to provide a valid request payload."]}
I could see the below from Azure DocumentDB limits article
Maximum request size of stored procedure, trigger and UDF: 512KB
Could anyone please explain below.
- Is this the stored procedure script body size?
- If it is then what does this error mean?