web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

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

(1) ShareShare
ReportReport
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.
I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    95,329 Super User 2025 Season 2 on at
    Hi, as far as I know this is a limitation of stream. And has not been updated.
     
    Hope this helps.
    Thanks.
    ZHU
  • Community member Profile Picture
    6 on at
    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.
  • chasvi Profile Picture
    4 on at
    The bug seems to be resolved today in my instances
  • BC365Admin Profile Picture
    28 on at
    @chasvi
     
    Do you know how this was resolved in your instance?
    Did you update the version?
  • Sacha E Profile Picture
    246 on at
    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.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,229

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,867 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,153 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans