-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f4c1059
commit ed4d10b
Showing
1 changed file
with
36 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,52 @@ | ||
# RDL Migration | ||
This is a migration Tool to convert RDL with shared Data Source to ones with Embedded Data Sourcce | ||
|
||
## Usage: | ||
# RdlMigration | ||
This is a Tool that takes files from the report server and convert the shared component in the report files, save the converted files and push them to a specified Power BI Workspace. | ||
|
||
In command window, run RdlMigration \<url> \<path> \<saveDirectory>(Optional), for example: | ||
|
||
RdlMigration http://ericpbi /Report_test/Shared/Shared_report | ||
###Usage: | ||
|
||
OR | ||
# RdlMigration <your Base url endpoint> <file Path> <WorkspaceName> <client-id> | ||
|
||
RdlMigration http://ericpbi /Report_test/Shared/Shared_report ./OutputFiles | ||
It will save all the converted files to local disk and display the status of each file | ||
The status would be displayed in the command window as well as a file called *ConversionLog.txt* | ||
|
||
The default save Directory is in ./test/ | ||
**NOTE:** it will **NOT** take the correpond datasource or dataset down and thus will **NOT** push any datasource or dataset to PBI Workspace. | ||
###Input details: | ||
|
||
* ### If successfully converted you will see a sucessful massage in command window and a file called **S2D_Filename.rdl** in the specificed folder/Directory | ||
##### Base url endpoint: | ||
It's usually set in the report server configuration manager under Web Service Url -> Report server web service url | ||
|
||
* ### If error occured it will throw the error massage in the command window | ||
![image](https://user-images.githubusercontent.com/52690905/62327114-9ae5ee00-b464-11e9-9bf1-0fe399bcd152.png) | ||
|
||
##### File Path: | ||
The relative path to your file or folder on the report server | ||
if the path is a file then the tool would convert and push it only. | ||
If the path is a folder then the tool would convert and try to push all the report files in that folder. | ||
|
||
## Unit Testing: | ||
##### Workspace Name: | ||
The name of the workspace you want to upload your files to. use "" is there is space in the name | ||
For example: | ||
|
||
In the solution there is a unit test project called UnitTestForRdlMigration. | ||
"Eric's Workspace" | ||
|
||
It reads a file "./test.txt" (by default) and take each line as two input arguments(seperated by space) as above. It iternatively runs all lines. | ||
##### client-id: | ||
The Application Client ID that give you permissions to read and write with Power BI API: | ||
|
||
**Only one space allowed each line otherwise a error would be thrown** | ||
The way to get it is simple: | ||
|
||
Still, it would save the output file to ./test/ with all S2D_*.rdl | ||
1. Go to dev.powerbi.com/apps. | ||
|
||
2. Select Sign in with your existing account then select Next. | ||
|
||
3. Provide an Application Name you want to call it. | ||
|
||
4. Select Native for Application Type | ||
|
||
5. Select the access permissions, for this application the minimum access are **Read all Workspaces, Read and write all datasets, Read and write all reports** | ||
|
||
![image](https://user-images.githubusercontent.com/52690905/62328377-d9c97300-b467-11e9-8625-775a6e23c314.png) | ||
|
||
then click Register an application ID (Client-ID) would be provided to you! | ||
link : https://docs.microsoft.com/en-us/power-bi/developer/register-app | ||
|
||
**NOTE:** In some cases you may need an admin's approval for that app-id to work. | ||
|