Quantcast
Channel: Primavera Online Interaction » API
Viewing all 91 articles
Browse latest View live

prim20470:Why does the primary baseline Object Id, using the “getCurrentBaselineProjectObjectId()” method, return a null value?

$
0
0
Solution ID: prim20470
Why does the primary baseline Object Id, using the "getCurrentBaselineProjectObjectId()" method, return a null value?
Status: Reviewed
Version(s): 5.0, 6.1, 6.2, 6.2.1, 7.0



Problem: Why does the primary baseline Object Id through the Integration API using the “getCurrentBaselineProjectObjectId()” method return a null value?
Cause: The getCurrentBaselineProjectObjectId() method maps to project.sum_base_proj_id which is not populated until the project is summarized.

Therefore, the getCurrentBaselineProjectObjectId() method will return null if the project has not been summarized.


Note:  The loadCurrentBaselineProject() method will load the primary baseline regardless of whether the project has been summarized.

Fix: In Project Management, summarize the project (Tools, Summarize)

prim20495:How to confirm whether schedule process completed correctly or not when scheduledvia API?

$
0
0
Solution ID: prim20495
How to confirm whether schedule process completed correctly or not when scheduled via API?
Status: Reviewed
Version(s): 4.0, 4.1, 5.0



Problem: How to confirm whether schedule process completed correctly or not when scheduled via API?
Fix: JobManager
The Job Manager is used to invoke all jobs, whether asynchronous (Schedule, Summarize, Apply Actuals) or synchronous (Copy Project).  It is retrieved for a particular session by calling Session.getJobManager().  You can check the status of a particular asynchronous job by calling getJobStatus and passing in the ID of the job returned when the job was created.  Other methods exist for deleting a job and getting a list of all jobs.


Note:  Asynchronous jobs created using the Job Manager are serviced by the Primavera Job Service, which runs as a Windows NT/2000/XP service. If you have not installed the Primavera Job Service, see the Administrator’s Guide for instructions on how to install the service on a Windows machine.


See also – Solution ID: prim37574 How to view what jobs are currently running in the Integration API?


This information can be found on the API CD \DOCS\PROGRAMMERREFERENCE.HTML

prim20899:Unable to see Java Beans Connectivity Folder within Crystal Reports 10 Developer or Advanced editions

$
0
0
Solution ID: prim20899
Unable to see Java Beans Connectivity Folder within Crystal Reports 10 Developer or Advanced editions
Status: Reviewed
Version(s): 4.1



Fact: Integration API 4.1 SP1
Problem: Unable to see Java Beans Connectivity Folder within Crystal Reports 10 Developer or Advanced editions
Fix: To verify whether your installation of Crystal Reports is properly setup to report off Java Beans, complete these steps:

1. In the Crystal Reports Designer, click the New button. The Crystal Reports Gallery appears.
2. Click As a Blank Report, and then click OK. The Database Expert dialog box appears.
3. Expand the Create New Connection folder, and then search for the Java Beans Connectivity folder.


If the Java Beans Connectivity folder does not exist, re-install Crystal Reports 10 Developer or Advanced editions with the Java Data components. The Java Data components are available by expanding the Data Access folder in the Crystal Reports Setup dialog box.


Note: Please refer to www.businessobjects.com for more information in regards to configuring Crystal Reports to use Java Bean classes as data sources.

prim21087:Is scheduling available through the SDK?

prim21189:How to launch an application from within the Integration API?

$
0
0
Solution ID: prim21189
How to launch an application from within the Integration API?
Status: Reviewed
Version(s): 4.0, 4.1, 5.0



Problem: How to launch project manager from within the Integration API?
Problem: Sample code to launch an executable via JAVA
Fix:   Runtime r = Runtime.getRuntime();
  Process p = null;
  try{
      p=r.exec(“C:\\Program Files\\Primavera\\Project Management\\PM.exe”);
  }
 
  catch(Exception exp)
  {
     System.out.println(exp.getStackTrace());  
  }

prim21334:How to create a root EPS using the Integration API

$
0
0
Solution ID: prim21334
How to create a root EPS using the Integration API
Status: Reviewed
Version(s): 3.5, 3.5.1, 4.0, 4.1



Problem: How to create a root EPS using the Integration API
Fix: The required fields for creating an EPS are:

Id
Name
ParentObjectId or OBSObjectId


To create a non-root EPS, the EPS’s ParentObjectId must be specified.  To create a root EPS, since the ParentObjectId would be null, the EPS’s OBSObjectId must be specified instead.  The reason behind this is if it is not a root EPS, it will inherit the OBSObjectId of the parent unless otherwise specified.


Here is sample code to create a Root EPS using the Integration API:


//Set variables for New EPS
String sEPSID = “Create EPS”;
String sEPSName = “Test Create”;

//Get OBS element.  In this sample, it is getting the first OBS Object ID, but a where clause can be entered to get a specific OBS Object ID
BOIterator boiOBS = gom.loadOBS( new String[] { “ObjectId”, “Name”,”ParentObjectId” }, null, null );
OBS obs = (OBS)boiOBS.next();
ObjectId objIdOBS = obs.getObjectId();
EPS eps = new EPS(session);  //session specified in other code

//Set required fields for create              
eps.setId( sEPSID );
eps.setName( sEPSName );
eps.setOBSObjectId(objIdOBS );

//Create EPS
ObjectId objIdEPS = eps.create();

prim21363:Is there is any way to include the Title of User Defined Fields, Activity Codes, Project Codes, or Resource Codes in the XML output of the Integration API Export methods?

$
0
0
Solution ID: prim21363
Is there is any way to include the Title of User Defined Fields, Activity Codes, Project Codes, or Resource Codes in the XML output of the Integration API Export methods?
Status: Reviewed
Version(s): 3.5, 3.5.1, 4.0, 4.1



Problem: Is there is any way to include the Title of User Defined Fields, Activity Codes, Project Codes, or Resource Codes in the XML output of the Integration API Export methods?
Fix: The ability to include the Title of User Defined Fields, Activity Codes, Project Codes, or Resource Codes in the XML output is in an existing enhancement request. 

Workaround:


XSLT can be used to transform the XML document into whatever it needs to look like.  However, if the need is for the XML document to conform to a valid schema, XSLT can be used to transform our schema file (or edit it directly).  Programs like XMLSpy,  Microsoft’s Office 2003  with Front Page Graphical XSL editor, and JAXP with an XML transformer can be used.


DISCLAIMER: The applications listed above are provided for the convenience of the User and is not provided under warranty or supported as part of Primavera System Inc.’s Maintenance and Support Program. Users who implement the applications do so at their own risk. Primavera Systems Inc. will not be responsible for any problems or data loss resulting from the use of these applications. Additionally, most license agreements prohibit the direct modification of Data in the database, and as such, direct modification may void your warrantee.  

prim21399:Is there a way for the Integration API to monitor changes made by the client (PM.exe)?

$
0
0
Solution ID: prim21399
Is there a way for the Integration API to monitor changes made by the client (PM.exe)?
Status: Reviewed
Version(s): 3.5, 3.5.1, 4.0, 4.1



Problem: Is there a way for the Integration API to monitor changes made by the client (PM.exe)?
Problem: Monitor changes made to business objects
Fix: The ability for the Integration API to monitor changes made by the client (PM.exe) is in an existing enhancement request. 

prim21443:Is there aRefresh() method in the Integration API?

$
0
0
Solution ID: prim21443
Is there a Refresh() method in the Integration API ?
Status: Reviewed
Version(s): 3.5, 3.5.1, 4.0, 4.1



Problem: Is there a Refresh() method in the Integration API ?
Fix: The ability to have a Refresh() method in the Integration API is in an existing enhancement request.

prim21444:How to change the rate in which the Integration API refreshes data

$
0
0
Solution ID: prim21444
How to change the rate in which the Integration API refreshes data
Status: Reviewed
Version(s): 3.5, 3.5.1, 4.0, 4.1



Problem: How to change the rate in which the Integration API refreshes data
Problem: Project Manager / Project Management takes awhile to show data created / updated with the Integration API
Fix: There is a setting in the Integration API Administrator.  Go to Start, Programs, Primavera Integration API, Primavera Administrator.

Once in the Administrator, expand your configuration.  Then expand the TableSyncService. 


By default it is set to 60000 ms which is 1 minute.  Setting this lower will affect performance so we recommend that you go no lower than 15000 ms which is 15 seconds.


Fix: If you would like to be able to refresh data through the API using a refresh method.  See solution prim21443 

prim21585:Unable to use Crystal Reports 10 Standard or Professional Editions with the Integration API

$
0
0
Solution ID: prim21585
Unable to use Crystal Reports 10 Standard or Professional Editions with the Integration API
Status: Reviewed
Version(s): 4.0, 4.1



Problem: Does Crystal Reports 10 Standard or Professional Editions work with the Integration API?
Fact: Crystal Reports 10
Fact: Java Beans
Problem: When trying to use Crystal Reports 10 Standard or Professional Editions  using the Integration API, Java Beans data sources are not available.
Fix: The option to report using Java Bean data sources is not available in Crystal Reports 10 Standard or Professional editions. Reporting using Java Bean data sources is only available with Crystal Reports 10 Developer or Advanced editions.

Note:  You can learn more about this from the Crystal Reports Knowledgebase under Article ID #C2015605.

prim27822:Actuals and ETC not downloading correctly into MS Project using ProjectLink API.

$
0
0
Solution ID: prim27822
Actuals and ETC not downloading correctly into MS Project using ProjectLink API.
Status: Reviewed
Version(s): 8.9, 8.9.0a, 8.9.0b, 8.9.0c, 8.9.0d, 8.9.0sp1, 9.0, 9.0.0a



Fact: ProjectLink API provided in version 7.5
Problem: Actuals and ETC not downloading correctly into MS Project using ProjectLink API.
Problem: When using the sample macro “onPvOpen_writeTimeInfo” to bring actual time and ETC hours to Microsoft Project:

The hours are matched to the task and are disbursed evenly among the resources assigned to the task, regardless of how time has been entered by those resources. 
Fix: This feature is working as designed.  The ProjectLink API is intended to provide a basic functionality and to be a starting place from which customers can build their own macros.  Customers are responsible for supporting their own macros.

See also section C.3 in the System Administrator Guide 7.5 (sysadmin.pdf) and the ProjectLink Guide 7.5 (projectlink.pdf)

prim27909:Error: Unable to parse XML string when launching myPrimavera admin application

$
0
0
Solution ID: prim27909
Error: Unable to parse XML string when launching myPrimavera admin application
Status: Reviewed
Version(s): 4.1, 5.0, 6.0, 6.1, 6.2, 6.2.1, 7.0



Problem: Error: Unable to parse XML string when logging in to the myPrimavera admin application.
Problem: Fatal error: Unable to parse XML string when trying to log into adminpv.cmd / myPrimavera administration application
Cause: Corrupt myPrimavera/Integration API configuration exists in the ADMIN_CONFIG table
Fix:

  1. Locate / Open the BREBootStrap.xml file.  It is stored in the ’Primavera Home’ folder (for myPrimavera) or the Integration API directory (for API).
     

  2. Identify the name of the myPrimavera configuration file in use:
     

     
    Example:  “Primavera Configuration”
     

  3. Login to either: SQLPLUS (for Oracle), or Query Analyzer/OSQL (for MS-SQL Server or MSDE)
     

  4. Delete ONLY the above configuration file from the database.
     
    Example:  delete from admin_config where config_name = ‘myprimavera.bre.Primavera Configuration
     

  5. Run the Database Configuration Utility for myPrimavera or Integration API and create a new configuration

NOTE: It is always a recommended practice to backup the database before initiating such delete commands.


To create a new configuration:



  1. On the myPrimavera server, Go to: Start, Programs, myPrimavera 5.0, Database Configuration Setup

  2. Choose your database type.


     

  3. Fill in your connection information for your Project Management Database.

    ORACLE:



    SQL/MSDE:

     

  4. Choose “Create a new configuration.”



  5. You will then receive confirmation that the configuration has been successfully created.

prim28101:ProjectLink documentation does not show mappings between the CORE and Microsoft Project for milestones.

$
0
0
Solution ID: prim28101
ProjectLink documentation does not show mappings between the CORE and Microsoft Project for milestones.
Status: Reviewed
Version(s): 8.0



Problem: ProjectLink documentation does not show mappings between the CORE and Microsoft Project for milestones.
Problem: ProjectLink document page 52, Table A-1 Mappings Between Primavera and Microsoft Project Data Fields
 
                             
 
Fix: Mapping of milestones between Primavera and ProjectLink is entirely configureable and is handled by the customer’s customizations to the ProjectLink API.
Fix: This known problem has now been corrected in Primavera for Services 8.6 and also the latest version of Primavera Evolve: prim45478 ”What is the latest version of Primavera Evolve?”

prim28107:Are the Budgeted (i.e. Planned) Units/Cost fields available to be spread for the Project, WBS, or EPS in the Integration API?

$
0
0
Solution ID: prim28107
Are the Budgeted (i.e. Planned) Units/Cost fields available to be spread for the Project, WBS, or EPS in the Integration API?
Status: Reviewed
Version(s): 4.1, 5.0



Problem: Are the Budgeted (i.e. Planned) Units/Cost fields available to be spread for the Project, WBS, or EPS in the Integration API?
Cause: The Project, WBS, and EPS tables only show Summary information.  The Summary Tables only store Baseline, Actual, Remaining and At Complete data (no Planned or Budget).

This was available in the SDK because the SDK does not use Summary Data to provide its spreads, even on Project, WBS and EPS.  Everything is live.


Project Management, myPrimavera, and the Integration API use Summary data on its spreads for Project, WBS and EPS.  Everything is stored.  Since Planned Units/Cost is not stored in the Summary tables, it is not exposed in any of the Summary Data Dependent features of all the applications.

Fix:

This issue is an existing Enhancement Request. It will be considered for a future release


UPDATE:  In Primavera Integration API 5.0 Service Pack 4, spread planned fields were added to the Project and WBS objects.  At this time, it is still an enhancement request for these fields to be added to the EPS object.  For EPS, use the workarounds below. 


Workaround1:


The BaselinePlanned Units/Cost is exposed.  To get this data populated, the current project has to be assigned as the baseline.  Once it is assigned, then the Baseline Planned fields will be populated (i.e. BaselinePlannedCost, etc.).  See Solution ID: prim30622 for more information on how to do this.  This is for the Integration API 5.0 only since the ability to assign a baseline is new to 5.0.


Workaround2:


Use the live spreads of the child object (i.e. Resource Assignments) and “rollup” the Planned Units/Cost to the EPS levels.


prim28269:Is there the ability to check through the Integration API, if a project is open exclusively by a user in the Client/Server application?

$
0
0
Solution ID: prim28269
Is there the ability to check through the Integration API, if a project is open exclusively by a user in the Client/Server application?
Status: Reviewed
Version(s): 3.5.1, 4.0, 4.1, 5.0



Problem: Is there the ability to check through the Integration API, if a project is open exclusively by a user in the Client/Server application?
Cause: The Integration API does not interact with the Client/Server users, therefore, can not know what settings they have set.
Fix: This issue is an existing Enhancement Request. It will be considered for a future release

prim28335:Is there the ability to get a Project’s WBSObjectID in the Integration API?

$
0
0
Solution ID: prim28335
Is there the ability to get a Project’s WBSObjectID in the Integration API?
Status: Reviewed
Version(s): 3.5.1, 4.0, 4.1, 5.0



Problem: Is there the ability to get a Project’s WBSObjectID in the Integration API?
Fix:

The ability to retrieve the WBS Object Id directly from a Project object is an existing Enhancement Request. It will be considered for a future release


Workaround:


Load a child WBS of the Project and use the child’s getParentObjectID() method to get the Project level WBS Object ID.  Then set the activity’s WBSObjectId to that.  Some sample code for doing this is below:


//Load Project into BOIterator and set a Project object to myProject


BOIterator boProj = gom.loadProjects(Project.getWritableFields(), “Id = ‘AddActs’”, null);


Project myProject = (Project) boProj.next();




//Load Child WBS

BOIterator boWbs = myProject.loadWBSChildren(WBS.getAllFields(), null,null);


WBS myWbs = (WBS) boWbs.next();


ObjectId wbsObjId = myWbs.getParentObjectId();


prim28378:Where to find Integration API 5.0Documentation?

$
0
0
Solution ID: prim28378
Where to find Integration API 5.0 Documentation?
Status: Reviewed
Version(s): 5.0



Problem: Where to find Integration API 5.0 Documentation?
Fix:

The Integration API documentation can be found after the Integration API has been installed.  By default, it will be in: C:\Program Files\Primavera\IntegrationAPI\docs. 


It can also be found on the Integration API CD, in the “docs” folder.


This directory contains the Setup guide, The Readme File, and the Programmers Reference Guide.  To launch detailed instructions on using individual Java classes for the Integration API (JAVADOCs), launch the index.html file in: C:\Program Files\Primavera\IntegrationAPI\docs\api

Fix:

Click on this link to download the documentation for the Integration API Version 5.0.

prim28463:Summary Spread data is different from PM when viewing by month In the API

$
0
0
Solution ID: prim28463
Summary Spread data is different from PM when viewing by month In the API
Status: Reviewed
Version(s): 4.0, 4.1, 5.0



Problem: Summary Spread data is different from PM  when viewing by month In the API.
Problem: Summary Spread data viewed via the API is different than summary spread data in Project Management.
Problem: API Summary Spread data is different from Project Management summary spread data when viewing by month.
Problem: Monthly summary spread data does not match between the API and Resource Assignment View.
Fix:

Go to Admin, Admin Preferences, Options tab.  Set the WBS level and Resource/Role Assignment Level options to the appropriate time interval.



If the spreads still do not match, schedule the project then re-summarize the project in Project Management.


Note:



  • The API spreads the resource units between the Start date and the End date.

  • Project Management uses the Start date + the remaining duration to calculate the End date, then spreads the resource units between the Start date and the End date.

prim28527:Can the API show spread data in Fiscal Years

$
0
0
Solution ID: prim28527
Can the API show spread data in Fiscal Years
Status: Reviewed
Version(s): 3.5.1, 4.0, 4.1, 5.0



Problem: Can the API show spread data in Fiscal Years
Fix: The ability to Spread data via Fiscal Years in the API is an existing Enhancement Request.
Viewing all 91 articles
Browse latest View live


Latest Images