Showing posts with label SAP Business Objects XI. Show all posts
Showing posts with label SAP Business Objects XI. Show all posts

Sunday, October 2, 2011

BIAR Issues/bugs - SAP Business Objects XI R2/3.x


Many a times, I have been asked this question by developers I have worked with and I have seen these type of questions several times on Business Objects forums as well. Here is the question -
How do we make sure that a BIAR backup is valid? or How can we ensure that a BIAR backup can be restored successfully?
A BIAR backup is not 100% reliable. Sometimes though a BIAR backup will complete successfully, when you try to restore it, you won't see any of the objects you selected while performing backup.That's the problem with BIAR and it will bite you in the butt if you are not careful. Also, the larger the file size, the more buggy BIAR becomes, so you should always create small sized BIAR files instead of dumping everything in a single large file. IMO, a backup is never successful until you restore it successfully.
This is how I recommend performing a BIAR backup -
1. Run Import Wizard, specify your source CMS and BIAR as destination.
2. Select the required universe/reports/users etc.
3. Once the process is completed, run Import Wizard again just to test that the backup is valid. This time specify the BIAR you just created as source, and a development/test CMS as destination.
4. Get to to the point where Import Wizard displays a summary of all the objects contained in the BIAR. Check whether it has all the objects you intend to archive/backup.
5. If there are any objects missing, run Import Wizard to create the BIAR again.
I know it's not ideal but it will be helpful in the long run. Hope that helps.
Additional information about BIAR:
  • BIAR stands for Business Intelligence Archive Resource and is used to archive objects in the repository so that they can be easily transferred to a different location.
  • If you are on XIR2, please be sure to have atleast SP2 installed. Import Wizard was very buggy before SP2.
  • There is no BIAR feature in XI R1.
  • BIAR backup is not a complete backup in the sense that it doesn't store everything about your environment like server configuration, information about objects in the Audit database etc. For complete backup of your system, please backup CMS Database and Filestore(at the same time)
  • BIAR is not meant for change management process as it is buggy. Always try to use CMS to CMS transfer for promoting content across your environment. For more details check this out.

Change Management - BIAR vs CMS to CMS


I have seen people asking this question time and time again - What's the best way to deal with deployments -BIAR or CMS to CMS transfer?
BIAR is not meant for change management process and is certainly not the best way to deal with changes in your environment as it is very buggy. Refer to this post for more details. Always use CMS to CMS transfer for promotion purpose whenever you can. There isn't technically anything that you can do with BIAR which is not possible using CMS to CMS. Of course, if your environments(Development, Test, Production) can't talk to each other, meaning they are on different domains, then your only option is to use BIAR.

Friday, September 30, 2011

Web Intelligence Rich Client in Business Objects XI 3.x


The Web Intelligence Rich Client is just a standalone version of the Web Intelligence Java Report Panel that lets you work with Web Intelligence documents without connecting to the Central Management Server (CMS). This doesn't mean that you only use Web Intelligence Rich Client in offline mode, you can also connect to CMS and work with Web Intelligence documents. In addition to the features offered by Web Intelligence Java Report Panel, you can also create reports based on personal data providers such as text or excel files using Web Intelligence Rich Client.
How to install Web Intelligence Rich Client
You need to set the default Web Intelligence report view to Web Intelligence Rich Client. Here is how you do it:
In InfoView, go to Preferences, click Web Intelligence, in the select a default creation/editing tool section, select Desktop (Web Intelligence Rich Client required) as shown in the figure below and click ok.

Now when you try to create a new document in InfoView, the Web Intelligence rich client will be downloaded and launched to create the document. As shown in the figure, you can also click the Install Now button to install it immediately.

Autosave feature in Web Intelligence


Many of you might have experienced the painful "time out" in Web Intelligence when working with reports where the Web Intelligence session times out and you potentially end up loosing your development work. But not anymore....
Starting from XI 3.1, Web Intelligence automatically saves your documents at intervals defined in Central Management Console(CMC). The documents are saved under My Favorites/~Web Intelligence folder. You configure the auto saveoption in the Web Intelligence application properties(CMC->Applications->Web Intelligence->Properties) in Central ManagementConsole(CMC) as shown below.

Lets go through the configuration settings:
Max size of auto-saved data: This represents the maximum size limit of the reports in the My Favorites/~Web Intelligencefolder. If the size exceeds this limit, Web Intelligence will delete some of the old documents to make room for new reports.
Auto-save time delay: This dictates how often Web Intelligence saves the report automatically. For example, if you set this to 60, Web Intelligence will keep saving the document every one minute. Please note that this interval resets each time you save a document manually or each time when Web Intelligence saves a document automatically.
Clean up time delay: This setting dictates how often Web Intelligence deletes all the reports in the My Favorites/~Web Intelligence folder.
If you happen to be working on a report and the Web Intelligence server times out, a Document Autosave and Recoverydialog box pops up indicating that the report has been auto-saved in the Favorites/~Web Intelligence folder as shown in the figure below.

If you click restore , Web Intelligence will launch a new session and will open the auto-saved document which you can then save in the original folder. You can also access the report in the Favorites/~Web Intelligence folder. Web Intelligence will save the report with same name but it attaches some internal ids before and after the name of the report as shown in the figure below.

Another interesting thing about this feature is that it will auto-save the document in the event of a session time out even though the autosave time configured in CMC is not elapsed.
There are certain things that you need to be aware of while using this feature:
  • If you are working on a new report and you haven't saved the report yet, and for some reason you navigate away from the document in your browser without saving the document, you will loose the report and the server will clear the contents of the My Favorites/~Web Intelligence folder.
  • If you are editing an existing report(made some changes to the report) and you didn't save the report after making changes, and for some reason you navigate away from the report in your browser, you will loose all the changes that you made and the server will clear the contents of the My Favorites/~Web Intelligence folder.
  • This feature is not available when using Web Intelligence Rich Client.

Thursday, September 22, 2011

How to test Universe in SAP Business Objects


There has been a lot of questions from developers about the best strategy to test a universe. In this post, I will talk about how to test a universe once the development/design is completed.
Before you begin testing the universe, it is a good practice to refresh the universe structure. Refreshing the universe structure detects if any columns were added/removed to/from the tables, if any tables were removed from the database or if any tables were renamed in the database.
Testing a universe will need to be done in two phases:
1. Testing metadata
In this phase, you will test the integrity of the entire universe. In other words, you will:

  • Test syntax(parse) of all the objects in the universe
  • Test syntax of all the joins in the universe
  • Test syntax of all the predefined conditions in the universe
  • Make sure that there are no loops
  • Make sure that there are no fan/chasm traps
  • Make sure there are no Isolated tables; which means that each table is added to atleast one context(if there are contexts defined in the universe)
  • Make sure that there are no loops within contexts(if there are contexts defined in the universe)
Thanks to SAP Business Objects, there is a check integrity tool included in the universe designer application that will assist you in performing all the aforementioned tasks. However, for the tool to rightly detect/resolve loops, traps etc, you will have to set the cardinality correctly. You should never use the "detect cardinality" option in the designer application. Why? Because the application will have no idea about your data, so you should set the cardinality for all the joins yourself manually as you know your data well.
Besides what has been listed above, you will have to make sure that for each measure object, there is an appropriate aggregate function defined in the select clause and an appropriate projection defined on the properties tab of the object. Though this is not directly related to testing, it will help you enhance the performance of the reports by pushing the pain of aggregating data down to the database server. The projection setting will display data in reports at the "appropriate" level of detail.
2. Testing data
In this phase, you will test the actual data that will be extracted from the database using the objects, joins etc defined in the universe. This is a bit tricky when compared to testing the metadata of the universe. Here are a couple of methods that I use to test the actual data:

Unit Testing or System Testing:
Create reports on top of the universe and verify the numbers against already existing reports. Create adhoc reports using the universe by dragging and dropping objects into the query panel(WebI or DeskI). Take a look at the generated SQL and see if it makes sense, especially check whether the joins are defined as per the data model. Create enough reports so that all the objects in the universe are tested.
User Acceptance Testing:
Let the business users create adhoc reports using the universe and verify the data. Please be sure to include all the users from whom you got the requirements for the universe. This is probably the best method in my opinion. Users are well aware of the data and this way you can also get their sign off.