My Oracle Support Banner

There Is No getWBSPath Method for Activity Class in P6 Professional API While the Same Function Exists in P6 EPPM API (Doc ID 3023130.1)

Last updated on MAY 20, 2024

Applies to:

Primavera P6 Professional Project Management - Version 23.12 and later
Information in this document applies to any platform.

Symptoms

In the Primavera Integration API Release 23.12 documentation, the Activity class contains references to a field called WBSPath and a function called activityObject.getWBSPath(). When users go attempt to add the field to the load function or call the accessor function neither is recognized by the API Java library files. Even calls to Activity.getAllFields() that should list all fields for a class does not produce a field by the name of WBSPath.

https://docs.oracle.com/cd/F74771_01/English/Integration/p6_pro_api_reference/com/primavera/integration/client/bo/object/Activity.html

STEPS TO REPRODUCE:

  1. Download P6 PPM API
  2. Configure Java Project
  3. Import Demo Application
  4. Setup Project lib
  5. Run the Java code to retrieve getWBSPath() method in activity class in P6 PPM API
  6. Exception is received

Exception in thread "main" java.lang.Error: Unresolved compilation problem:
The method getWBSPath() is undefined for the type Activity
at ExampleError.main(ExampleError.java:39)

 

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
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.