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
Cannot open a new cursor on a closed stream02Likely causes
- A stream closed prematurely, before it reached DataWeave.
03How to fix it
- 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. - Reproduce the error and read that stack trace.
- Report the case to MuleSoft support. The documentation says there is no workaround.
04Official documentation
→Related errors
- MULE:STREAM_MAXIMUM_SIZE_EXCEEDEDMULE:STREAM_MAXIMUM_SIZE_EXCEEDED means a stream grew past the maximum size allowed for it, typically the in-memory buffer of a repeatable in-memory stream. Raise the buffer's maximum size, or use a streaming strategy that does not keep the content in memory.
- MULE:EXPRESSIONMULE:EXPRESSION means an error occurred while Mule evaluated a DataWeave expression. Find the expression named in the log, check the values it reads for nulls or wrong types, and add a default or a handler.
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