Closed m-oneill closed 8 years ago
@m-oneill the response of a 500 error is a timeout error. I completely agree it's not too helpful, but that is what the AGO servers return.
I guess beyond samples, we need a solid wiki? What do you think?
I added a bunch of error check and better messaging. Still not going to fix the 500 error.
Not a bug; merely a friendly request wrapped in a question. Regarding AddFeaturesToFeatureLayer...
My service updates sometimes fail with an error message (shown below) that isn't completely helpful. The message is generic, and maybe it has to be that way, but I'm wondering if it can be made more helpful?
So far I've seen this only when the data payload is sufficiently large in relation to the value of 'ChunkSize'. It took me a while and some head scratching to figure that out. I know what to do now when I see that message but perhaps future newbies could be spared from that trouble. The message, as it is now, lacks any clues as to the actual problem and its remedies.
Alternatively, perhaps this is better solved in documentation. I didn't know what the heck ChunkSize does or why I care until I ran into this problem and played around with its values by trial and error. Learning that ChunkSize would solve my error was in itself what some refer to as "a wild a$s guess". :8ball: LOL
When I see that issue, I do one or both of two corrective actions.
Here's a sample JSON config file showing the ChunkSize property: