Simulation data batch upload API fails with large files and returns 413 error

Our simulation data management workflow is completely blocked due to API upload failures. We’re trying to batch upload large simulation result files (CFD, FEA data) through the SAP PLM 2021 API, but anything over 50MB fails with HTTP 413 (Payload Too Large).

We’ve checked the API payload size limits in the system configuration and they seem to be set correctly at 100MB. The Cloud Connector configuration shows similar limits. What we can’t figure out is whether the system supports multipart upload for chunking large files, which would be the standard approach.

Here’s what happens when we try uploading a 75MB FEA results file:


POST /api/v2/simulation/data/batch
HTTP/1.1 413 Payload Too Large
Content-Length exceeds maximum: 52428800 bytes

The error suggests a 50MB limit despite our configuration showing 100MB. This is blocking our entire data import pipeline. Anyone dealt with payload size mismatches between configuration and actual enforcement?

The chunked upload capability isn’t well documented in the standard API guide. You need to use the same endpoint but with specific headers: ‘X-Upload-Mode: chunked’ and ‘X-Chunk-Index’ for each chunk. The first request also requires ‘X-Total-Chunks’ and ‘X-Upload-Session-ID’. This creates an upload session that remains active for 24 hours. Each chunk must be uploaded in sequence - parallel uploads aren’t supported for simulation data due to assembly requirements.

One thing to watch with chunked uploads - the Cloud Connector timeout settings. Even though each chunk is small, the overall session can timeout if you’re uploading many chunks slowly. Increase the ‘Backend Timeout’ in Cloud Connector to at least 600 seconds for simulation data uploads. Also enable ‘Keep-Alive’ connections to maintain the session between chunks.

The 50MB limit you’re hitting is likely from the Cloud Connector itself, not SAP PLM. Check the Cloud Connector admin UI under Configuration → On-Premise → System Mappings. There’s a separate ‘Maximum Request Size’ parameter that defaults to 50MB regardless of backend configuration. You need to increase this value to match your SAP PLM settings.