COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => SDK => Topic started by: vivek_vdc on 12 Nov 2014 04:19:10 PM

Title: SDK to update queries or reports after the package is republished
Post by: vivek_vdc on 12 Nov 2014 04:19:10 PM
I installed and configured the SDK sample provided on the tech note here for a package republish -
http://www-01.ibm.com/support/docview.wss?uid=swg21371429

The code works fine on any NEW packages that we publish. It does not update the reports referencing existing packages. The existing packages were upgraded from version 8 to 10 recently. The code is designed to scan the entire content store - all reports and packages. Can anyone please shed light on why it may not be working on existing packages / reports?

public static void main(String args[]) {
      // connection to the ReportNet service
      String endPoint = "http://localhost:9300/p2pd/servlet/dispatch";
      // log in as a System Administrator to ensure you have the necessary permissions to any query or report
      String namespaceID = args[0];
      String userID = args[1];
      String password = args[2];

      // search path of the report or query to be updated
      String reportSearchPath = "//report | //query";
      // search path of the package that is republished
      String packageSearchPath = "/content//package";