Forum Discussion

ash42's avatar
ash42
New Contributor III
4 years ago

File Reader error: Exception while reading binary data from the stream

I am getting this error in higher environment, but i executed the same file reader snap in lower environment successfully with the same url and account credentials

  • del's avatar
    del
    Contributor III

    @ayush.vipul, see if the attached pipeline will assist you as an example. I have simple, arbitrary data in the JSON Generator, but the Mapper and Fixed Width Formatter is the key. The Field Width value in the Formatter is also arbitrary, but needs to be set large enough to handle the longest expected line widths.

    Community.5728_2019_07_19.slp (5.8 KB)

    • ayush_vipul's avatar
      ayush_vipul
      New Contributor III

      @del Thanks.

      This helps us achieve what we we looking for.

      Best Regards
      Ayush

    • sshaik's avatar
      sshaik
      New Contributor III

      After trying this scenario. I want read that file and send the data to AWS.But, I’m getting same thing again in the Fixed width Parser