Forum Discussion
unable to scheduale refresh to on premise SQL
- 10 years ago
It seems that using my own parameter configuration (as described above) does not work for schedualing refresh.
I replaced the connection parameters with the new build in functionality in query editor and now it works fine.
Hi dimazaid,
My connections in pbix file are arranged as followed :
1. have a local table in the model CONNEX_PARAMS : Table.FromRows(Json.Document)... that has the following :
| Server | DB_Name | Files_Location |
| <My Server> | <SQL DB NAME> | f:\powerbi\ |
2. all other tables are using this parameter table instade of hard coded.
for example for files :
Files_Location=CONNEX_PARAMS{0}[Files_Location],
File_Name="FILE1.xls",
File_Full_Path= Files_Location & File_Name,
Source = Excel.Workbook(File.Contents(File_Full_Path), null, true)
for example for SQL tables :
Server=CONNEX_PARAMS{0}[Server],
DB_Name=CONNEX_PARAMS{0}[DB_Name],
Source = Sql.Database(Server, DB_Name)
thanks
It seems that using my own parameter configuration (as described above) does not work for schedualing refresh.
I replaced the connection parameters with the new build in functionality in query editor and now it works fine.