Question about behavior of Baseline 2.5 GetBaselineId and GetReport

I am seeing unexpected behavior with Baseline 2.5 GetBaselineId  and Baseline 2.5 GetReport. One of the APIs (not sure which one) is causing only the baseline for the latest version of a pub to be returned. I have verified that I am passing the correct baseline name to GetBaselineId. But when I then pass the returned baseline ID to Baseline 2.5. GetReport, I do not get the correct baseline associated with the baseline name.  Am I understanding the baseline functionality correct in that I need to first get the baseline ID based on the baseline name and then pass that baseline ID to Baseline 2.5 GetReport?

Parents
  • More to this issue. In pub mgr, I opened each version (1 through 3) of the publication I am querying with the API. For versions 1 and 3 of the publication, pub mgr asked me if I wanted to save the pub back to the repository after opening it. I confirmed the save for the two versions. Then when I reran my API code, all baseline reports were returned correctly. What did pub mgr do to the baselines that made them correct when the previous API calls had returned the incorrect baselines?
  • Hi Mark,

    There are 2 options creating a publication:

    1. Using Publication manager (and be able to select the versions of the topics, maps, etc)
    2. Using the webclient/API

    When using the webclient or API, you can create a new publication "object" by supplying the Title, Map and when needed the resources. From that moment you do have a publication object, but the system has not generated the baseline yet.

    - When opening the publication in Publication Manager, it detects there is no baseline. It will create one for you so you can select the versions. Hence the "Save Publication" message
    - When publishing the publication, if the system detects no baseline, it will create one automatically using the latest available versions retrieved from the map.

    My guess is, reading your comment, that the publication was not created using Publication Manager and that the baseline was not yet available
Reply
  • Hi Mark,

    There are 2 options creating a publication:

    1. Using Publication manager (and be able to select the versions of the topics, maps, etc)
    2. Using the webclient/API

    When using the webclient or API, you can create a new publication "object" by supplying the Title, Map and when needed the resources. From that moment you do have a publication object, but the system has not generated the baseline yet.

    - When opening the publication in Publication Manager, it detects there is no baseline. It will create one for you so you can select the versions. Hence the "Save Publication" message
    - When publishing the publication, if the system detects no baseline, it will create one automatically using the latest available versions retrieved from the map.

    My guess is, reading your comment, that the publication was not created using Publication Manager and that the baseline was not yet available
Children