Tuesday, February 23, 2010

Cognos Deployment Across Environments - Part 1

Today I was guiding a colleague on Movement of Cognos reports/ packages across environments and thought I would share the same on my blog for the benefit of first time users of Cognos. Though the same is shared in Cognos documents but felt I would simplify it and just provide the basics on it. Let me know if this helps anyone:

To move reports and packages across any environment there are 3 simple steps that need to be followed : create an archive of the object by exporting it, copy and paste this archive from one environment to another and import the archive. Consider an archive as a zip file that is in Cognos format. So essentially we are zipping the contents and moving it across environment.

The most basic steps and properties that need to be adhered to for creating an archive / export is detailed below:

Step 1: Navigate to Content Administration in your Cognos Connection. In 8.4 this is available under Launch > IBM Cognos Administration > Configuration

Step 2: Click on New Export

Step 3: Provide a name for the export. Note this is not the archive name. Consider this like a workflow name to help you re-execute the workflow of archiving Cognos objects. Click Next.

Step 4: The next page asks you for a deployment method, options being - Select public folders and directory content, Select the entire Content Store. Choose the 1st option unless you want to move all the Cognos Connection objects across environments. Click Next.

Step 5: In the next page that opens select the objects (Report / Package / Folders ) you want to deploy. Remember when you export packages that contains reports under the package object even those reports would get deployed.

Step 6: Remember to check the Disable after import option for the objects you want to export unless you want them disabled in the new environment after deployment.

Step 7: In case you want to include report output versions, run history, schedules; then select the corresponding check boxes. Click Next.

Step 8: If you are deploying objects to a new environment that doesn't have Cognos groups and roles, Distribution lists, Contacts, Data Sources and Connections set up then select the corresponding check boxes. Click Next.

Step 9: If you want to carry forward any permissions that you have set for the objects you are exporting, select the checkbox against the "Include access permissions" property. You can apply permissions to any new objects that you are exporting to the new environment or you can also apply permissions to new objects and existing objects that you are exporting to over-write in your new environment.

Step 10: If you wish to include references to external namespaces, select this option.

Step 11: Next property that needs to be set is something that Cognos administrators would insist on. This is ownership property. When you export objects you can either set the owner on the new environment to the owner from the source or to the user performing the import. Usually this is set to the user performing the import. The reason behind this being only administrators usually perform the import and they need to be set as owners to prevent the original owners from modifying objects in the new environment. Click Next

Step 12: Provide the archive name in the next page.

Step 13: You an encrypt the archive and provide a password for the encrypted archive as well. Click Next.

Step 14: Review the options selected in the next page and click Next.

Step 15: In the Next page, you an choose to save and run this export once or save and schedule this export or just save this export to be run at a later time. Click Finish.

Step 15: If you choose to Save and Run once, in the next page that opens you can choose to either run it immediately or defer the run to a future date. Click OK to create the archive.

Step 16: Once the export is completed you can view the details of the same by clicking on More Actions against your export name in the Content Administration list. Click on View history to view the details of the export run.

Step 17: The archive is always created on the server machine. To copy and paste the archive to a new environment, locate the archive in the deployment folder path on your server machine. By default the deployment folder is located in /deployment

ex: C:\Program Files\cognos\c8\deployment

Step 18: Copy the required archive and paste it into the deployment folder of your new environment.

This completes the export and movement of the Cognos objects. The steps for import are fairly simple and would be covered in the next post.

6 comments:

Anonymous said...

Very easy to use instructions. Thank you.
Much Appreciated
Mitesh

Anonymous said...

I still have to try this but looks like an Amazing help. Thanks
Sachin

Anonymous said...

Hello, we are trying to sync PROD and UAT environments. Do i have to export the whole content store?? or just the packages??

Zephyr said...

I would suggest exporting and importing only the objects that are out of sync like packages and reports.

Cause if you export and import the whole content store you would be replacing the data source connections, security etc and usually UAT and Prod environments have different connections and security set up. You don't want to lose out on that as well as any settings specific to Prod environment.

Anonymous said...

Hello,

I get an error when trying to create a export. I create a new folder with a simple report in it and try to export only that folder. The error is:

"CM-REQ-4313 An error occurred during an export operation. CM-REQ-4102 Unable to use the file "content.xml" for export. class java.lang.NullPointerException Runtime Exception stack trace: java.lang.NullPointerException at com.cognos.cm.request.export.createContentFile(export.java:1344) at com.cognos.cm.request.export.doAction(export.java:576) at com.cognos.cm.request.Deployment.handle(Deployment.java:2126) at com.cognos.cm.request.contentManagerService.v1.AsyncExport.doAsyncRequest(AsyncExport.java:168) at com.cognos.cm.util.AsyncThreadPool$RunRequestTask.run(AsyncThreadPool.java:97) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:898) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:920) at java.lang.Thread.run(Thread.java:736) /
CM-REQ-4102 Unable to use the file "content.xml" for export. DPR-ERR-2082 An error has occurred. Please contact your administrator. The complete error has been logged by CAF with SecureErrorID:2013-08-05-11:30:59.726-#9
"

I guess it is something with permissions? Can you please help?

It's cognos v10 developer edition and windows xp

Anonymous said...

Thanks for the useful post