Smartform is not responding while attempting to load from SmartObject

  • 15 February 2022
  • 0 replies
  • 59 views

Userlevel 5
Badge +20
 

Smartform is not responding while attempting to load from SmartObject

kbt137547

PRODUCT
K2 smartforms 4.6.11 to 4.7
BASED ON
K2 smartforms 4.7
SEE ALSO
 
This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.
LEGACY/ARCHIVED CONTENT
This article has been archived, and/or refers to legacy products, components or features. The content in this article is offered "as is" and will no longer be updated. Archived content is provided for reference purposes only. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.

Issue

Smartform is not responding while attempting to load from the SmartObject.

Symptoms

If a Smartform contains a view that loads from a SmartObject and the view tries to call the SmartObject to retrieve the results, it just keeps loading without any response.

 

However, when executing the SmartObject on SmartObjects Service Tester, the SmartObject takes a few minutes to return the results.

Troubleshooting Steps

To identify what is causing this issue, perform a network trace on the Form, and analyze the requests and responses. Either use your browser's developer tool or Fiddler to perform a network trace.

 

When the Form or View tries to execute a SmartObject method, it will do so by sending a request to AjaxCall.ashx.

 

Image

 

By analyzing the request sent to AjaxCall.ashx, identify which SmartObject your form or view is trying to call.

 

Image

 

By analyzing the response, check if the call to the SmartObject is successful. If the SmartObject method execution is successful, the results will be returned in the response.

 

Image

 

If there is an error, the HTTP status code returned will not be 200, and the error message returned will be visible in the response.

 

Image

 

In this case, the request to AjaxCall.ashx timed out before the response is being returned. Because there is no response, your view is unable to load the results. To resolve this, extend this time out value by doing the following:

 

  1. On the web server hosting K2 Smartforms, go to [Program Files]K2 blackpearlK2 Smartforms Runtime.
  2. Open web.config.
  3. Search for the following line:
     
    <httpRuntime maxRequestLength="16384" enableVersionHeader="false" sendCacheControlHeader="false" executionTimeout="320"/>
  4. The request time out is determined by the value in executionTimeout value. The default value for executionTimeout is 320 seconds. If your SmartObject method takes longer than 320 seconds to retrieve the results, increase the executionTimeout value.
  5. After you updating the web.config, perform an IISRESET to apply the changes to Smartforms.

 

Alternatively, if you are using a List View in your Form, consider splitting up your results into pages to speed up the loading process.

 

Image


0 replies

Be the first to reply!

Reply