Unable to load Flow execution context.Resulting in error after 3-5 minutes

Vamshi5
ServiceNow Employee
ServiceNow Employee

My team used flow designer for onboarding new partners. The flow consists of multiple sub-flows and actions in it. It executes perfectly fine, but when I try to view the context, it throws me an error.

find_real_file.png

 

 Below is the error message I get

{
    "name": "DesignerError",
    "code": 500,
    "message": "Internal Server Error. com.glide.sys.TransactionCancelledException: Transaction cancelled: maximum execution time exceeded",
    "data": {
        "error": {
            "detail": "Transaction cancelled: maximum execution time exceeded Check logs for error trace or enable glide.rest.debug property to verify REST request processing",
            "message": "com.glide.sys.TransactionCancelledException: Transaction cancelled: maximum execution time exceeded"
        },
        "status": "failure",
        "session": {
            "notifications": []
        }
    },
    "response": {
        "data": {
            "error": {
                "detail": "Transaction cancelled: maximum execution time exceeded Check logs for error trace or enable glide.rest.debug property to verify REST request processing",
                "message": "com.glide.sys.TransactionCancelledException: Transaction cancelled: maximum execution time exceeded"
            },
            "status": "failure",
            "session": {
                "notifications": []
            }
        },
        "status": 500,
        "statusText": "Internal Server Error",
        "headers": {
            "cache-control": "no-cache,no-store,must-revalidate,max-age=-1",
            "content-encoding": "gzip",
            "content-type": "application/json;charset=UTF-8",
            "date": "Tue, 15 Sep 2020 17:43:48 GMT",
            "expires": "0",
            "pragma": "no-store,no-cache",
            "server": "ServiceNow",
            "strict-transport-security": "max-age=63072000; includeSubDomains",
            "transfer-encoding": "chunked",
            "x-cnection": "close",
            "x-is-logged-in": "true",
            "x-transaction-id": "ad5e7b45dbdb"
        },
        "config": {
            "transformRequest": {},
            "transformResponse": {},
            "timeout": 0,
            "xsrfCookieName": "XSRF-TOKEN",
            "xsrfHeaderName": "X-XSRF-TOKEN",
            "maxContentLength": -1,
            "headers": {
                "Accept": "application/json",
                "X-WantSessionNotificationMessages": "true",
                "X-UserToken": "---"
            },
            "method": "GET",
            "url": "api/now/processflow/operations/flow/context/6b7999c49b361c50c92d9b8830df266d?sysparm_transaction_scope=global",
            "cancelToken": {
                "promise": {}
            }
        },
        "request": {}
    }
}

Could someone please help me in resolving this.

1 ACCEPTED SOLUTION

Hi Madhava,

Increase the transaction quota of REST and JSON Catch All to 5 min. It solved the issue for me.

View solution in original post

2 REPLIES 2

Madhava Subrama
Kilo Explorer

Hi Vamshi, Were you able to resolve this issue? we have similar issue with TFE (Terraform) related subflows. Please let me know.

Regards,

Madhava

Hi Madhava,

Increase the transaction quota of REST and JSON Catch All to 5 min. It solved the issue for me.