Hi @Amar Agnihotri ,
Is the string that you are forming differ in size in every run? Like for clean runs, the size is lesser and sometimes it becomes a bigger payload with huge data?
As per this documentation, the payload is limited to 896 KB.
As a workaround, you can write the string to a table column or a blob file an access that from your azure function.
Let us know