MuleSoft · DataWeave

Cannot open a new cursor on a closed stream

Short answer

Cannot open a new cursor on a closed stream means a stream was closed before DataWeave could read it. The docs state there is no workaround, so find the component that closes the stream and report the case to MuleSoft support.

VerifiedLast verified

01Error text

MuleSoft error
Cannot open a new cursor on a closed stream

02Likely causes

  • A stream closed prematurely, before it reached DataWeave.

03How to fix it

  1. Set the system property com.mulesoft.dw.track.cursor.close. It makes the error show the stack trace of the component that closed the stream.
  2. Reproduce the error and read that stack trace.
  3. Report the case to MuleSoft support. The documentation says there is no workaround.

04Official documentation

Test every fix in a non-production environment before you apply it to production. See how entries are verified.

More for MuleSoft work:Open MuleSoft jobsMuleSoft rates and salariesHire a senior MuleSoft developer

The iPaaS Brief

Subscribe to The iPaaS Brief.

The iPaaS newsletter for the people who run integrations. From iPaaS Group.

Free. You finish on theipaasbrief.com and confirm by email.