- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2022 02:02 AM
Hello,
I have a Flow Designer which need to contain about 120 If conditions. I am afraid that it will contains 300+ actions in Flow Designer, so I tried to chop each If conditions to subflow (for example: 1 subflow will contain about 5-10 if conditions). I did it but once I tried to save the Flow Designer (already added multiple of subflows to Flow Designer), it's failed to save with this below error log. I am not sure how to resolve it?
Rejected large REST payload with content-length = 30431828 bytes. Max allowed: 10485760 bytes.
com.glide.rest.serializer.impl.RequestDeserializerImpl.validateContentLength(RequestDeserializerImpl.java:123)
com.glide.rest.serializer.impl.RequestDeserializerImpl.getRequestDataIfWithinContentLengthLimit(RequestDeserializerImpl.java:99)
com.glide.rest.serializer.impl.RequestDeserializerImpl.getRequestDataAsString(RequestDeserializerImpl.java:89)
com.glide.rest.domain.ServiceRequestImpl.getRequestBodyAsString(ServiceRequestImpl.java:110)
com.glide.flow_design.rest.FlowService.updateFlow(FlowService.java:528)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
com.glide.rest.handler.impl.ServiceHandlerImpl.invokeService(ServiceHandlerImpl.java:44)
com.glide.rest.processors.RESTAPIProcessor.process(RESTAPIProcessor.java:349)
com.glide.processors.AProcessor.runProcessor(AProcessor.java:612)
com.glide.processors.AProcessor.processTransaction(AProcessor.java:274)
com.glide.processors.ProcessorRegistry.process0(ProcessorRegistry.java:184)
com.glide.processors.ProcessorRegistry.process(ProcessorRegistry.java:172)
com.glide.ui.GlideServletTransaction.process(GlideServletTransaction.java:46)
com.glide.sys.Transaction.run(Transaction.java:2468)
com.glide.ui.HTTPTransaction.run(HTTPTransaction.java:27)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
java.lang.Thread.run(Thread.java:748)
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2022 02:26 AM
Hi Bird,
There is a maximum length set on REST.
The title of the Now Support page is different but the cause and the resolution should be the same. Create property "glide.rest.max_content_length" and increase the maximum size of REST data.
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0747638

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2022 02:22 AM
Hey,
Do you have any REST step in this flow designer, in that case:
glide.rest.scripted.max_inbound_content_length_mb | 10 | The maximum size, in megabytes, for a scripted REST request body that is not gzipped. |
glide.rest.scripted.max_inbound_gzip_content_length_mb | 1 | The maximum size, in megabytes, for a scripted REST request body that is gzipped. |
glide.rest.max_content_length | 10 |
The maximum size, in megabytes, for a scripted REST request body, whether or not it is gzipped. Maximum: 25 As a result, even if glide.rest.scripted.max_inbound_content_length_mb or glide.rest.scripted.max_inbound_gzip_content_length_mb are set, the request body is limited to the value of glide.rest.max_content_length. |
Update the highlighted one
Aman Kumar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2022 02:26 AM
Hi Bird,
There is a maximum length set on REST.
The title of the Now Support page is different but the cause and the resolution should be the same. Create property "glide.rest.max_content_length" and increase the maximum size of REST data.
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0747638
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2022 08:15 AM
Will it impact to system's performance (slow or etc.) once we increase it?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2022 08:38 AM
Try to use streaming instead of object.