maikvandergaag / msft-extensions

Repository for extensions mainly used for Azure DevOps Extensions
https://msftplayground.com
MIT License
125 stars 80 forks source link

Power BI Report Parameters are not getting updated after the successful execution of the Azure DevOps CICD pipeline. #530

Closed anupkosh closed 7 months ago

anupkosh commented 9 months ago

Describe the issue Power BI Report Parameters are not getting updated after the successful execution of the Azure DevOps CICD pipeline using the Pipeline tasks - Power BI Actions : UpdateParameters(Ver: 5.4.48).

Extension

image

maikvandergaag commented 9 months ago

Could you share more info for example log files?

anupkosh commented 9 months ago
1 2 3 4 5

5.txt

Please find the attached log files.

anupkosh commented 9 months ago

Waiting for the response. https://github.com/maikvandergaag/msft-extensions/labels/needs-reply

maikvandergaag commented 9 months ago

Hi @anupkosh the label "needs-reply" is a internal thing that's why it was removed. If I look at your log images it seems that it does not find the report.

Could you maybe share the files?

anupkosh commented 9 months ago

Thanks for your response. Specific PowerBI report is already deployed to the respective workspace successfully using the CICD Pipeline tasks - Power BI Actions : Publish(Ver: 5.4.48). Once after the report got uploaded the parameters for the specific report are not getting updated. In the UpdateParameter task , I've selected the checkbox "Update all datasets in workspace the dataset name will be ignored" but no luck. (FYI. Initially I've unchecked this and tried, but no luck) Please find the below screenshot to show you the tasks that I have used in the CICD Pipeline. Please let me know how to proceed further. Thanks.

image

maikvandergaag commented 9 months ago

Please also share the log file for us to investigate

anupkosh commented 9 months ago

Hi Maik,

Please find the log files attached.Please review it and let me know how to proceed further.

Thanks & Regards, Anup Koshy Jacob

On Wed, Feb 14, 2024 at 9:07 PM Maik van der Gaag @.***> wrote:

Please also share the log file for us to investigate

— Reply to this email directly, view it on GitHub https://github.com/maikvandergaag/msft-extensions/issues/530#issuecomment-1944081749, or unsubscribe https://github.com/notifications/unsubscribe-auth/BGEDCCX4NZCA2IWUDHUR5YDYTTK3NAVCNFSM6AAAAABDGUYCASVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBUGA4DCNZUHE . You are receiving this because you were mentioned.Message ID: @.***>

anupkosh commented 9 months ago

Waiting for your response.Thanks

maikvandergaag commented 9 months ago

Hi @anupkosh: sorry can't see the log file

anupkosh commented 9 months ago

Yesterday I've sent the logs from my mail id to this email id : reply+BGEDCCWLYCDW3R7ZQPS2EMOD3IILNEVBNHHH6G4ELE@reply.github.com.

Could you please check your email and confirm?

maikvandergaag commented 9 months ago

Checked they are not there.

anupkosh commented 9 months ago

Hi Maik, Please find the attached log files.

Thanks.

On Wed, Feb 14, 2024 at 9:58 PM Anup Koshy Jacob @.***> wrote:

Hi Maik,

Please find the log files attached.Please review it and let me know how to proceed further.

Thanks & Regards, Anup Koshy Jacob

On Wed, Feb 14, 2024 at 9:07 PM Maik van der Gaag < @.***> wrote:

Please also share the log file for us to investigate

— Reply to this email directly, view it on GitHub https://github.com/maikvandergaag/msft-extensions/issues/530#issuecomment-1944081749, or unsubscribe https://github.com/notifications/unsubscribe-auth/BGEDCCX4NZCA2IWUDHUR5YDYTTK3NAVCNFSM6AAAAABDGUYCASVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBUGA4DCNZUHE . You are receiving this because you were mentioned.Message ID: @.***>

anupkosh commented 9 months ago

Just now I've sent the log files to the email id mentioned in earlier chat. Could you please check it and confirm?

maikvandergaag commented 9 months ago

Still not there try sending it to info at msftplaygound dot com

anupkosh commented 9 months ago

I've sent the logs file to info at msftplaygound dot com. Could you please check it and confirm.

Thanks

anupkosh commented 9 months ago

Still waiting for your response. Thanks

maikvandergaag commented 9 months ago

Hi @anupkosh: Two things:

anupkosh commented 9 months ago

ReleaseLogs_135.zip

Please find the attached logs. Thanks.

anupkosh commented 8 months ago

Please let me know if any update after reviewing the logs. Thanks.

maikvandergaag commented 8 months ago

Hi @anupkosh,

We use following api call on the datasets to retrieve the current parameters: https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/get-parameters

If we have replaced values and if the parameter names are correct. We use this api call: https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/update-parameters

To update the parameters. As the update call is not beign peformed there can be two problems. No found parameters on the dataset or the names are not correctly supplied. Are you maybe able to check by running the powershell locally or doing the api calls?

allankichowdary commented 8 months ago

Same issue for my side also. i am able to update using powershell call but not from task.

maikvandergaag commented 8 months ago

Could you share the code you used?

allankichowdary commented 8 months ago

logs.txt

task

Please find logs and task.

NOTE : same json is working using powershell.

allankichowdary commented 8 months ago

@maikvandergaag / @anupkosh Also i am looking for some suggestions for automating jobs :

1 . uploading reports and datasets

  1. take ownership
  2. updating parameters
  3. Update gateway 5 Bind the gateway
  4. rebind reports to dataset
  5. refresh dataset.

is my order correct or any changes are required ? i am having little doubtful about 4 & 5 points about order is correct or only update gateway is fine?

Some time connections are not mapping automatically and we need to select from drop down from setting . please guide here.

maikvandergaag commented 8 months ago

logs.txt task

Please find logs and task.

NOTE : same json is working using powershell.

Could you share the peace of powershell that worked for you? To see if there are differences.

allankichowdary commented 8 months ago
image

before there are 2 apis for fetching data set and workspace id

maikvandergaag commented 8 months ago

What result do you get when calling this api? https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/get-parameters

maikvandergaag commented 8 months ago

I have a change available in Beta. Would you be able to test? I then need your organization URL to give you access to the beta version.

allankichowdary commented 8 months ago

What result do you get when calling this api? https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/get-parameters

giving exisitng parameters in dataset

allankichowdary commented 8 months ago

giving existing parameters in dataset

maikvandergaag commented 7 months ago

Closing issues due to no response?

maikvandergaag commented 7 months ago

Issue fixed in new release