My Oracle Support Banner

When Exporting a Project and Baselines Using P6 Web Services the Export Fails with a Timeout or OutOfMemoryError Error (Doc ID 2986051.1)

Last updated on NOVEMBER 13, 2023

Applies to:

Primavera Web Services - Version 18.8 and later
Primavera P6 Enterprise Project Portfolio Management Cloud Service - Version 18.1 and later
Information in this document applies to any platform.

Symptoms

When attempting to use P6 Web Services to export projects with their baselines, one of the following errors occur.

ERROR
-----------------------
HTTP/1.1 504 Gateway Time-out

java.lang.OutOfMemoryError: Java heap space

Response was of unexpected text/html ContentType. Incoming portion of HTML stream


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Create an export request that exports a project with its baselines. For example,
<v1:ExportProject>
    <v1:FileType>ZIP</v1:FileType>
    <v1:ProjectObjectId>12345</v1:ProjectObjectId>
    <v1:ProjectObjectId>10001</v1:ProjectObjectId>
    <v1:ProjectObjectId>10002</v1:ProjectObjectId>
    <v1:ProjectObjectId>10003</v1:ProjectObjectId>
    <v1:ProjectObjectId>10004</v1:ProjectObjectId>
    <v1:ProjectObjectId>10005</v1:ProjectObjectId>
    <v1:ProjectObjectId>10006</v1:ProjectObjectId>
    <v1:ProjectObjectId>10007</v1:ProjectObjectId>
</v1:ExportProject>

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
 Solution 1: Increase the Java heap space on the P6 Web Services server.
 Solution 2: Break the export into multiple requests.
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.