My Oracle Support Banner

P6 Web Service ImportProjectAsyncASAP Operation Fails With Error "Invalid UTF-8 Start Byte 0x8b (At Char #2, Byte #-1)" When Using GZIP or ZIP (Doc ID 2548904.1)

Last updated on SEPTEMBER 09, 2019

Applies to:

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

Symptoms

When attempting to create a ImportProjectAsyncASAP request XML format works as expected, but when using GZIP and ZIP, the following error occurs.

ERROR
-----------------------
Invalid UTF-8 start byte 0x8b (at char #2, byte #-1)

STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Export a project as type GZIP
2. Create a ImportProjectAsyncASAP request. For example:
     <v1:ImportProjectAsyncASAP>
        <!--1 or more repetitions:-->
        <v1:ImportProject>
           <v1:ImportOption>Create New</v1:ImportOption>
           <v1:EPSObjectId>4030</v1:EPSObjectId>
        </v1:ImportProject>
        <v1:ImportType>Primavera</v1:ImportType>
        <v1:PreImportCustomizationTemplateName>Default Import Template</v1:PreImportCustomizationTemplateName>
        <v1:FileType>GZIP</v1:FileType>
        <v1:ProjectData>EC00515.gzip1</v1:ProjectData>
     </v1:ImportProjectAsyncASAP>

3. Request fails with the error
4. Change FileType to XML and upload and XML file instead of GZIP and the same request will succeed. Same issue occurs with ZIP

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
References


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