BusinessObjects Board

Copy Data Providers / Copy Report Variables

Author: Dwayne Hoffpauir, EDS Corporation

Updated 26-May-2004 for compatibility with V5.1.8 …

Further discussion on this utility should take place in this topic

Author Notes:

Please download the code to review it. Most of the active code is in the form provided in the add-in.
BusObjUtilitiesV2.2.zip (63.0 KB)


BOB Downloads (BOB member since 2003-05-05)

.net and Desktop Intelligence
Data providers rearrangement
Order of Execution of Multiple Queries
Copy dataprovider
Copy a query from one report to another
Problem about integrating more reports in one
Can a group variable be copied to another report?
Duplicating reports
How to re-use a query from another report (V6.5)?
How to re-use a query from another report (V6.5)?
Shifting DP's in Thick Client Report 6.5
Change Order of Data Providers in Data Manager
amending a stored proceedure or ordering of DP's
Can I create a report from an existing one?
Button grayed in toolbar
Compacting Reports
grouping reports
Deleting unwanted variables /formula
Copy tab from one report to other
Copy tab from one report to other
Order of Data Providers
Help on adding button to toolbar
Rebuilding a complex Report that is corrupted
moving variables from one rep to another
importing a report into another report can it be done?
copy Data Provider
Adding transparent icons to toolbar buttons
Creating a simple data provider and report
How to duplicate conditions
Duplicate Data Provider
Displaying conditions
help with data providers.
Duplicate reports between .rep files
Different reports from Different Data Providers
Duplicate Data Provider
Search document with "do not generate sql" checked
save multiple reports in 1 pdf
Copy Dataproviders
Delete an object
Report is occupying too much space
Copy Variables
VBA to duplicate a DataProvider, stopped by QP0007
calling data from oracle with vba
Automating Queries using VBA
Combining Two reports into one
query interactively and add to the report
Pass params and get user interactive report
Combining Two reports into one
create report and add query with vba
Duplicate Data Provider
How to create union, with VBA
How can I rename the DataProviders???
copy a block from a report to an other report
Report Size is very big - 50MB for 50K records
Merging Two reports.
Document_BeforeRefresh event
Dataproviders Execution Sequence - Full Client Report
adding a command to Tools menu
Seperating Report: One page per customer
Moving a Report from One Document to another Existing Docume
Regenerate SQL from VBA
How to merge 2 differents reports files in 1 report
How to copy variable objects & tables frm 1 rpt to anoth
Combining 2 DESKI REPORTS
How can I get data from BO using VBA?
FAQ: Reporter
moving variables from one rep to another
Importing report data into tab
Is this possible?
Moving an item from one BO report to another?
Copy report for another report
Report size exceeding 35MB.
How to combine Two Deski Reports into one Report?
Order of data provider
Extracting Variabes from a report
How to Copy a data provider to an other document
VBA macro to jump from tab to tab
Copiying reports
Calling all VBA Programmer Experts - HELP
Combining Queries
Alphabetized Index to BOB's Downloads
Can you DUPLICATE a query
Insert New report as a tab in a different .REP document
Is there a tool to automatically document a reports attrib
Copy Data Providers / Copy Report
Replicating DataProviders
HOWTO: copy variables from dream.rep to muibueno_wannabe.rep
Button in title to refresh and export report data
Document Formulas in variables in a report
Can I save and import Data Providers (Querys) in XI?
How do I copy a data provider from one report to another?
merge reports
'Copy Data Provider' Rea-Intelligence Add In
Adding predefined conditions in VBA
How to Prompt for User Input and Add Document Variable
AddQueryConditions
Move a report into another report as tab

Posting an updated version of the utility that works with XI. Changes:[list]A slight syntax change is needed for referencing a universe … enterprise folder instead of domain.

Added an item to the Data menu that creates a default report from a data provider, like the Report Wizard.[/list]
BusObj Utilities XI.zip (108.0 KB)


Dwayne Hoffpauir :us: (BOB member since 2002-09-19)

I used the addin provided in BOBs downloads to copy data providers in BO 5.1.8.

I get a message saying

Multiple Universe.Please select repository.

Can someone help me in this regard.

Is this a limitation of BO 5.1.8.

Regards


Keepitsimple (BOB member since 2007-08-15)

That means you have more than one universe locally with the same name. This usually happens when someone has done a “save as…” and made a copy locally, that has not been exported to a repository. Delete (or rename) the duplicate and you should be fine.


Dwayne Hoffpauir :us: (BOB member since 2002-09-19)

I install this ADDINS … can you tell me how can I use it?
I receive this error :
“Error 20 : No Universe with this Name and Repository”

Thanks.
Giulia


Giulia :it: (BOB member since 2007-08-10)

What version of DeskI / Reporter and what version of the utility are you using?


Dwayne Hoffpauir :us: (BOB member since 2002-09-19)

I have installed the the updated XI version. I am on Deski R3, the addin has been registered in Deski, but copying Data-providers throws the following error:


Error 31: Not Implemented

then the next error comes up


Run-time error 91:
Object Variable or With block variable not set


ghostman :switzerland: (BOB member since 2006-01-12)

I can’t get the add-in to load automatically in 3.x, but otherwise than that it seems to work fine. Try disabling the error handling, or step through the code one line at a time to see which line is actually causing the error. That may give us a clue to the real problem.


Dwayne Hoffpauir :us: (BOB member since 2002-09-19)

This is where the debugger starts:

'DataProviderFrom.Unload (version 5.1.8 only allows one data provider to be loaded!
    DataProviderTo.Unload

Disabling the error handling on this sub means the list of dataproviders gets duplicated with every attempt. No successful copies. The Variables seem to be OK.


ghostman :switzerland: (BOB member since 2006-01-12)

DeskI 11.5.0.0
BusObj Utilities XI.zip


Giulia :it: (BOB member since 2007-08-10)

Just a theory here. The universe must be downloaded locally first. Try downloading a clean copy, just to be sure it has the right repository security attached to it.


Dwayne Hoffpauir :us: (BOB member since 2002-09-19)

THANK YOU FOR THIS!!!
This is the best thing ever! It just saved me hours of work. :smiley:
I love BOB!


2spots :us: (BOB member since 2008-07-29)

The result doesn’t change.


Giulia :it: (BOB member since 2007-08-10)

Ghostman,

Did you ever get a solution to your problem with using the Copy Data Providers routine (BusObj Utilities) - I also get the Error 31: Not Implemented with the “Run-time error `91:Object Variable or With block variable not set”!

I’m using BO XI R2

Emailed Dwaye Hoffpauir but have not yet received response.

TonyR


TonyR (BOB member since 2006-07-17)

I’m trying to copy a variable from one report to another (using XI R2, have used this utility successfully before) and am getting
Run-time error “9”
Subscript out of range.

Can you help?
Thanks!


2spots :us: (BOB member since 2008-07-29)

Can you try the steps suggested here?


Dwayne Hoffpauir :us: (BOB member since 2002-09-19)

Hi,

I got a requirement to merge two different BO reports.

I tried the Addin which has been provided here for XI.
But i don’t see any copy variable or copy data provider after adding addin .
i am using BO XI R2.

can anyone help ?

Thanks


lmp1 (BOB member since 2007-02-21)

hi,

finally I could make it to get copy Dataproviders and variables in Data menu and able to select dataproviders in source and destination.

but when i am checking my destination report, I don’t see the data provider which i have added from source report.

I think I am missing something here.

Can anyone help me please.

appreciate your help.

thanks,


lmp1 (BOB member since 2007-02-21)

Hi,

This actually worked great.
Thanks a lot for this addin.

Excellent work.

I am also looking to copy exact Report layout with format.
any ideas.

Thank you so much.


lmp1 (BOB member since 2007-02-21)

tht’s wonderful, thanks.
but i got an issue here data providers copied successfully with no error but when i open it the structure look something different from that of original.
Any idea? I’m using R3 is it because of that?


lahca_ac (BOB member since 2010-01-18)