Hi
I'm having a problem deserializing a file over 3 mb.
Scenario:
I upload a file , In an action I convert this file to JSON and then I want to deserialize it to my structure before I save it to the db.
It works well with files under 3 mb but once it is over 3 mb I get an error "Failed to deserialize JSON to {myStrucute}: maximum call stack size exceeded"
Does anyone know a fix for this ?
Can I increase the deserialize size limit somehow?
Hi, can you give us more information about the application, is this client side or server side?
Do you have an .oml to share and maybe also the JSON file?
Hi Randall,
I haven't been able to reproduce the issue. I successfully deserialized a list of JSON 5MB in size on both the client and the server.
I did get serialization errors, not the one you mentioned though, when the request timed out in the server side deserialization.
Maybe check the timeout on the action being called from the client side. Is it using the default 10 seconds? If so, try adjusting the Server Request Timeout to a higher value.
If this does not do the trick, maybe post the code, either in OML or a few screenshots, and paste the full text of the error message. And as Bas de Jong mentioned, whether its client or serverside processing.
I hope this helps.
Kind regards,
Stuart