COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Cognos Connection, Viewer, Scheduler => Topic started by: vkilz on 09 Jul 2016 11:49:10 AM

Title: Recovering deleted report
Post by: vkilz on 09 Jul 2016 11:49:10 AM
Hello Gurus,

I am relatively new to Cognos and need some clarification on a problem.
I have deleted a number of reports in my development environment, however, I still have them in production.
Is it possible to recover these files via copying the xml code in PROD report studio and pasting them in DEV ?
Or would I have to do an export in PROD, and import in DEV ?
If so, I am assuming any package updates may cause some errors ?

Thanks
Title: Re: Recovering deleted report
Post by: nblank on 11 Jul 2016 03:49:55 AM
Hello vkilz,

Yes, that is possible via a copy of XML code.

In PROD open the report in Report Studio.
Then under Tools choose Copy Report to clipboard

Open Report Studio in DEV and choose as package the same package name as in PROD
Choose blank report
Then under Tools choose Open Report from clipboard.

Export from PROD and import in DEV is also possible.

Regards,
Nanno
Title: Re: Recovering deleted report
Post by: bdbits on 11 Jul 2016 02:24:17 PM
nblank is spot on, but to address your earlier question, if the packages are not the same then you may get some errors if you validate the report. Of course at that point you can fix the changes before you save it on DEV.
Title: Re: Recovering deleted report
Post by: dougp on 11 Jul 2016 03:04:03 PM
I have a couple simplifications to nblank's process:

Launch Report Studio
Select any package (from your Recently Used Packages list)
Click Close (at the bottom right)
Tools | Open Report from Clipboard

This works because the report created on the way into Report Studio will be abandoned when you import the XML.  Which package and any page formatting is in the XML.
Title: Re: Recovering deleted report
Post by: vkilz on 12 Jul 2016 10:03:27 AM
Awesome,

Thanks for the clarification and guidance everyone !

Vkilz