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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

The file could not be uploaded because it was too large

(0) ShareShare
ReportReport
Posted on by 185

Describe the bug
A clear and concise description of what the bug is. Using the xmlport import / Upload of a 29 MB file gives following error:
The file could not be uploaded because it was too large. The maximum file size that can be uploaded is 2047 MB.

To Reproduce
Steps and to reproduce the behavior:

  1. Create Temp table >>create Xmlport>>Create test page/Action in existing page

pastedimage1591113173263v1.png

  1. Publish and run xmlport>import the file

AL Code to reproduce the issue
pastedimage1591113173265v2.png

Expected behavior
Since the file is 29mB it should allow to import.

Screenshots
If applicable, add screenshots to help explain your problem.

5. Versions:

  • AL Language:
  • Business Central:
  • Community Member Profile Picture
    on at

    Open BC Administration.

    Expand Client Services tab. change the size limit in the Max Upload Size

    then restart the service and retry.

    if you face the same issue you have to check Max upload size on IIS

  • Suggested answer
    srttel Profile Picture
    Microsoft Employee on at

    If this is BC ONPrem you might to change the the values Steve mentnioned. One optin is doing this via Powershell, you might playaround with the values.

    #Change NST MaxUploadSize

    Set-NavServerConfiguration BC150 -KeyName 'ClientServicesMaxUploadSize' -KeyValue '1000'

    Restart-NAVServerInstance BC150

    #Increase content length (Default 30000000 bytes) for BC site

    Set-WebConfigurationProperty -filter /system.webserver/security/requestfiltering/requestLimits -PSPath 'IIS:\Sites\Microsoft Dynamics 365 Business Central Web Client\BC150' -Name maxAllowedContentLength -value 1000000000

    Get-WebConfigurationProperty -filter /system.webserver/security/requestfiltering/requestLimits -PSPath 'IIS:\Sites\Microsoft Dynamics 365 Business Central Web Client\BC150' -Name maxAllowedContentLength

    #Increase Request Length (Default 4096 kbytes) for BC site

    Set-WebConfigurationProperty -filter /system.web/httpRuntime -Name maxRequestLength -PSPath 'IIS:\Sites\Microsoft Dynamics 365 Business Central Web Client\BC150' -value

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 728 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 545 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 328 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans