Content Management and Capture

Content Management and Capture

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
Expand all | Collapse all

Error when uploading large files to FN

  • 1.  Error when uploading large files to FN

    Posted Thu December 17, 2020 02:06 PM

    Hello,

    sometimes when we try to upload big documents to FileNet using FN_Upload() action we get this error:

    ERROR!!! N-2146233088

    Error description = Upload failed. Message:'An unexpected exception occurred.'

    Error Source = DC_P8_Server

    Does anyone know what could be the root cause of this issue?

    We checked logs but could not find anything useful.

    We are using CPE 5.5.0 and Datacap 9.1.7 iFix 2.

    Many thanks for any help.

    BR,

    Jan



    #IBMDatacap
    #Support
    #SupportMigration


  • 2.  RE: Error when uploading large files to FN

    Posted Thu December 17, 2020 04:50 PM

    Hello Jan,

    The error is very generic.

    So smaller file is okay but large file throws the error?

    If wTM is hosted in IIS then you may want to increase the file upload size.

    I think web.config there is a setting for wTM to increase maxRequestLength="102400

    web.config

    if wtm host in IIS it's in datacap/wtm

    if wtm hosted as a window services it's in datacap/taskmaster

    <system.web>

    <compilation debug="true" targetFramework="4.7.2"/>

    <httpRuntime maxRequestLength="102400" requestLengthDiskThreshold="104857600" maxUrlLength="2048"/>

    <pages controlRenderingCompatibilityVersion="4.0"/>

    </system.web>



    #IBMDatacap
    #Support
    #SupportMigration


  • 3.  RE: Error when uploading large files to FN

    Posted Mon December 21, 2020 06:44 PM

    If the target URL is an (HTTP/S) CPE cluster address, you can also try uploading to a specific node/port. Whereas an EJB connection will get bound to an endpoint, WSI is stateless. Support can provide some tweaks to the HTTP session but my own theory is that large payloads have to get assembled in sequence and under load this will sometimes fail. If this works, you can mimic the round-robin load balancing in the client code as a workaround.



    #IBMDatacap
    #Support
    #SupportMigration