Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

The maximum number of bytes allowed to be read from the stream has been exceeded.

Posted on by 2
In Business central cloud version BC23 we are unable to upload a file with more than 1 MB through OData API codeunit web service. For this we are using Bigtext as a parameter.
Below is the error message.
 
 /error/: {
        /code/: /BadRequest/,
        /message/: /One or more errors occurred. (One or more errors occurred. (One or more errors occurred. (One or more errors occurred.
(One or more errors occurred. (One or more errors occurred. (The maximum number of bytes allowed to be read from the stream has been exceeded.
After the last read operation, a total of 1063379 bytes has been read from the stream; however a maximum of 1048576 bytes is allowed.))))))
 CorrelationId:  069ea448-4395-4429-9c06-0e99c8a214f3./
    }
 
Note: Ite was working BC22 and lower versions.
Please suggest if you have any idea.
 
Thanks in Advance.
Categories:
  • Sacha E Profile Picture
    Sacha E 153 on at
    The maximum number of bytes allowed to be read from the stream has been exceeded.
    We had this exact issue happen with mid January. We raised a ticket with Capgemini who were unaware of any issues who then in turn raised a ticket with Microsoft on 30/01/2024. Initially we were told that we were the only ones experiencing the issue but were then told that multiple BC clients were experiencing the same error. 
    On Monday, the 5th of February we were able to process and approve our fortnightly billing and all the files came through to BC with no issue. We hadn't heard anything back but everything was working again as expected. When we questioned this with our Consultant he followed up with Microsoft who said that it was a known issue and a fix had been implemented on the weekend. The issue was the limit on 1MB.
    We are currently on version 23.3 shortly due to update to 23.4. Before we allow the update to 23.4 to happen in Production we will update one of our Sandboxes and have a test invoice file sent through to this so we can check this issue doesn't arise again in the upgrade.
    The issue coincidently occurred at the time we updated from 23.2 to 23.3 but from my understanding the issue was not due to this, it was another fix that Microsoft made at the same time.
     
    Updated: Our Consultant has just advised that from their discussions with Microsoft the lowering or setting of the limits was a mistake and was fixed.
  • BC365Admin Profile Picture
    BC365Admin 28 on at
    The maximum number of bytes allowed to be read from the stream has been exceeded.
    @chasvi
     
    Do you know how this was resolved in your instance?
    Did you update the version?
  • chasvi Profile Picture
    chasvi 4 on at
    The maximum number of bytes allowed to be read from the stream has been exceeded.
    The bug seems to be resolved today in my instances
  • The maximum number of bytes allowed to be read from the stream has been exceeded.
    We have a custom API that uploads files that started to fail for files bigger than 1MB around January 29th. We have seen the same on several Business Central installations. I have now seen information from Microsoft that this 1MB limitation is a bug and that a fix is rolling out now, as of February 1st. It might take a few days to reach all installations.
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,472 Super User 2024 Season 2 on at
    The maximum number of bytes allowed to be read from the stream has been exceeded.
    Hi, as far as I know this is a limitation of stream. And has not been updated.
     
    Hope this helps.
    Thanks.
    ZHU

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans