Acumatica上传1.3GB公司快照报错,如何调整配置支持大文件导入?
Got it, let's break down how to resolve this large snapshot upload error. The "file exceeds maximal allowed size" message happens because Acumatica has separate size restrictions for regular attachments (your 25000KB preference) and company snapshots, plus IIS-level limits that are blocking your 1.3GB file. Here's what you need to modify:
1. Update IIS Settings in web.config
These controls define the maximum request size IIS will accept. Edit your Acumatica site's root web.config file:
ASP.NET Request Limit: Adjust
maxRequestLength(in KB) to a value larger than your snapshot. For 1.3GB, set it to1363148(calculated as 1.3 * 1024 * 1024). AddexecutionTimeoutto prevent timeouts during long uploads:<system.web> <httpRuntime maxRequestLength="1363148" executionTimeout="3600" /> </system.web>IIS 7+ Content Length Limit: Update
maxAllowedContentLength(in bytes) to match your target size. For 1.3GB, use1395864371(1.3 * 1024 * 1024 * 1024):<system.webServer> <security> <requestFiltering> <requestLimits maxAllowedContentLength="1395864371" /> </requestFiltering> </security> </system.webServer>
2. Adjust Acumatica's Snapshot-Specific System Parameter
Acumatica has a dedicated setting for company snapshot imports that's separate from regular upload preferences:
- Log into your Acumatica instance, navigate to System > Management > System Parameters.
- Locate the
Max Company Snapshot Size (KB)parameter, and set it to your desired limit (e.g.,1363148KB for 1.3GB). - Save the changes—this will override the default 1048576KB (1GB) limit that's triggering your error.
3. Post-Change Steps & Notes
- After editing
web.config, restart your IIS site to apply the new settings. - If you're using a load balancer or reverse proxy in front of Acumatica, double-check those tools for their own file size limits—they might block the upload before it reaches Acumatica.
- Ensure your server has enough disk space and memory to handle the large snapshot import, as these operations can be resource-intensive.
With these changes, you won't need to strip attachments from your snapshot anymore—you can upload the full 1.3GB file directly.
内容的提问来源于stack exchange,提问作者Brendan

