maikvandergaag / msft-extensions

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

Update parameters Task successful but doesn't update the parameters in dataset #548

Closed gopinaralasetty closed 3 months ago

gopinaralasetty commented 4 months ago

Describe the issue A clear and concise description of what the issue is.

Extension

Expected behavior Should update the dataset parameters

Situation (please complete the following information):

Log info Please add the log file of the agent in debug mode [Add the variable system.debug with the value 'true ' to your pipeline]

Additional information Add any other context about the problem here.

gopinaralasetty commented 4 months ago

@maikvandergaag - The Task is successful, but it doesn't update the parameter in the dataset.

Datasource type is azure databricks and we are using the databricks SQL serverless

nhvduy commented 4 months ago

I ran into the same issue. The Update Parameters task in ADO run successfuly but the Parameters in Admin Portal do not change.

maikvandergaag commented 4 months ago

Could you share logs after you have done with the variable system.debug added with the value true

nhvduy commented 4 months ago

log.txt This is part of the logs after I changed some values, Maik.

maikvandergaag commented 4 months ago

@nhvduy thanks but is this the whole file. I think I miss a part.

gopinaralasetty commented 4 months ago

@maikvandergaag - i have attached all the log in zip file- can you please have a look

pphidev commented 4 months ago

Hi @gopinaralasetty,

Do you 'takeover' the dataset with the service principal before updating the parameters?

Kind regards,

Pim

nhvduy commented 4 months ago

Hi @pphidev how can we takeover the dataset with the service principal? From the workspace setting, user can takeover the dataset, but we cannot loggin as service principal.

pphidev commented 4 months ago

Hi @nhvduy,

You can use the TakeOwnership action.

Example if you use a yml file setup:

- task: PowerBIActions@5
   displayName: 'Take dataset ownership'
   inputs: 
      PowerBIServiceEndpoint: ${{ variables.serviceConnection }}
      Action: 'TakeOwnership'
      DatasetName: ${{ variables.dataSetName }}

Next to that, make sure the parameter type is not set to any in Power BI (Desktop) but to e.g. text. As far as I know, type = any will not work.

Kind regards,

Pim

gopinaralasetty commented 4 months ago

Hi @gopinaralasetty,

Do you 'takeover' the dataset with the service principal before updating the parameters?

Kind regards,

Pim

Hi @pphidev i am using the classic pipeline yes i did takeover the dataset

below are the steps of the task in my release pipeline Screenshot 2024-05-07 150134

pphidev commented 4 months ago

Hi @gopinaralasetty, Do you 'takeover' the dataset with the service principal before updating the parameters? Kind regards, Pim

Hi @pphidev i am using the classic pipeline yes i did takeover the dataset

below are the steps of the task in my release pipeline Screenshot 2024-05-07 150134

Hi @gopinaralasetty,

What is the type of your parameter?

image

gopinaralasetty commented 4 months ago

Hi @pphidev

The parameter Type is Test

pphidev commented 4 months ago

Hi @pphidev

The parameter Type is Test

Test is (I guess) the value of the parameter. But I refer to the parameter type. The default value for the type is Any. However, Any is not supported by the Power BI API (and therefore also not supported by the Power BI Actions).

Available types are: 328534585-d862a414-4e41-4a62-9ce9-0dc1817aa362

gopinaralasetty commented 4 months ago

Sorry for the Typo -- The parameter is Text only

gopinaralasetty commented 4 months ago

@maikvandergaag , can you please check on it

maikvandergaag commented 4 months ago

Still missing some parts in the log.

github-actions[bot] commented 3 months ago

It looks like there hasn't been a reply in 30 days, so I'm closing this issue.