Skip to main content
December 3, 2024
Solved

what is the maximum size txt we can parse using readTextFromFile()

  • December 3, 2024
  • 13 replies
  • 0 views

am trying to parse txt file of 7MB using readTextFromFile() but am getting Memory Circuit Breaker error

did anyone else faced this issue and can anyone please suggest the alternative to parse the txt file which has large data

Thanks in advance

 

Best answer by mathieud0001

Did you try running it in a process model or loading the file in a localvariable first?

13 replies

mathieud0001
December 3, 2024

Did you try running it in a process model or loading the file in a localvariable first?

December 3, 2024

tried in local variables of rule

mathieud0001
December 3, 2024

Care to share your code? I've parsed files much larger than 7MB in the past.

prateekv988933
December 3, 2024

Hi [mention:a8ab3c1d50e34709a4d37f10922684a2:e9ed411860ed4f2ba0265705b8793d05] 

I couldn't find any documentation on the maximum supported file size.

However, in my experience, I successfully parsed a 10MB text file without issues. The problem you're facing may be related to environment configurations or slowness.

December 3, 2024

my file contains 6596960 chars including line breaks

prateekv988933
December 3, 2024

It worked with a file containing 11,036,042 characters, so your file size (6,596,960 characters) should be fine as well. The issue you're facing might be related to something else, such as environment configurations, performance limitations, or a special character that might not be supported.