P6 Web Services ReadJobLog Operation Does Not Contain the Import Log
(Doc ID 2807325.1)
Last updated on AUGUST 14, 2023
Applies to:
Primavera Web Services - Version 20.12 to 20.12.9.0 [Release 20.12]Primavera P6 Enterprise Project Portfolio Management Cloud Service - Version 20.1 and later
Information in this document applies to any platform.
Symptoms
When creating an asynchronous import job using P6 Web Services there is no way to retrieve the XML import log. The ReadJobLog call can be used to check the success or failure of the import job, but there is no log provided. When running a synchronous import using P6 Web Services a log is returned.
The issue can be reproduced using the following steps:
- Create a request to run an asynchronous import job. For example:
<v1:ImportProjectAsyncASAP>
<v1:CurrenciesImportInOption/>
<v1:ImportProject>
<v1:ProjectObjectId>4835</v1:ProjectObjectId>
<v1:ImportOption>Create New</v1:ImportOption>
<v1:EPSObjectId>28379</v1:EPSObjectId>
</v1:ImportProject>
<v1:ImportType>Primavera</v1:ImportType>
<v1:ImportTemplateName/>
<v1:PreImportCustomizationTemplateName>Default Import Template</v1:PreImportCustomizationTemplateName>
<v1:FileType>XML</v1:FileType>
<v1:IgnoreGUID>true</v1:IgnoreGUID>
<v1:IgnoreSequenceNumber>true</v1:IgnoreSequenceNumber>
<v1:LogLevel>FINEST</v1:LogLevel>
<v1:ProjectData>cid:export.xml</v1:ProjectData>
</v1:ImportProjectAsyncASAP> - Get the Job Id from the response. For example:
<ImportProjectAsyncASAPResponse xmlns:cnp="http://xmlns.oracle.com/Primavera/P6/WS/WSImport/V1">
<JobObjectId>2801</JobObjectId>
<Success>true</Success>
<SuccessMessage>An Asynchronous import job has been created. Check the status of the job using job ID.</SuccessMessage>
</ImportProjectAsyncASAPResponse> - Use JobService ReadJobLog to get the Import details
<v2:ReadJobLog>
<v2:JobId>0:2801</v2:JobId>
</v2:ReadJobLog> - The only response is basic job information. The full XML log is not returned in the response. For example:
<ReadJobLogResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.oracle.com/Primavera/P6/WS/Job/V2">
<JobLog>Import Project Log Run on Aug-02-2021 19:42</JobLog>
</ReadJobLogResponse>
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 |