list_deployment_pipeline_stage_items Error #380
-
|
Hi Team, Has anyone tried to get list of items for deployment pipeline, Getting pipelines & Stages is working fine but when using Stage_items. I am getting below error. Actual API works with stage order but wrapper has been programmed to be name, I tried both name and order still getting error. API Call: list_deployment_pipeline_stage_items(deployment_pipeline="XYZ",stage_name="Production") |
Beta Was this translation helpful? Give feedback.
Replies: 14 comments 2 replies
-
|
Thanks for raising the issue. Made a fix for the next release. |
Beta Was this translation helpful? Give feedback.
-
|
This has been fixed. Try this in the latest release 0.9.0. |
Beta Was this translation helpful? Give feedback.
-
|
Hello, I am still facing same issue, I have updated my version. Should it be stage name or number? I tried both without success. VijayOn 23 Jan 2025, at 1:02 am, m-kovalsky ***@***.***> wrote:
This has been fixed. Try this in the latest release 0.9.0.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Please send the full error message in text |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Which API are you calling? You seem to be getting different properties than normal. This is the API which is wrapped by this function. |
Beta Was this translation helpful? Give feedback.
-
|
The one you mentioned is working I am looking at next step down calling funciton list_deployment_pipeline_stage_items which I believe is calling API GET https://api.powerbi.com/v1.0/myorg/pipelines/{pipelineId}/stages/{stageOrder}/artifacts |
Beta Was this translation helpful? Give feedback.
-
|
List_deployment_pipeline_stage_items is calling the api I sent in my previous message. It’s different from the one you are using. |
Beta Was this translation helpful? Give feedback.
-
|
Looks like I am missing something. list_deployment_pipelines() wrapper for https://learn.microsoft.com/en-au/rest/api/fabric/core/deployment-pipelines/list-deployment-pipelines?tabs=HTTP - Lists all pipelines - This one is working great list_deployment_pipeline_stages() wrapper for https://learn.microsoft.com/en-au/rest/api/fabric/core/deployment-pipelines/list-deployment-pipeline-stages?tabs=HTTP - This one list all stages in a pipeline - Which is working great - this is the one you shared earlier list_deployment_pipeline_stage_items wrapper for https://learn.microsoft.com/en-au/rest/api/fabric/core/deployment-pipelines/list-deployment-pipeline-stage-items?tabs=HTTP - This one is expected to return all artifacts in the pipeline. The column headers returned by this are aligned to output of API only last deployment time is coming up as NULL |
Beta Was this translation helpful? Give feedback.
-
|
Please run the following code (filling in the 2 parameters) and show me the result for a deployment pipeline stage where the last deployment time shows as not null. import sempy.fabric as fabric
client = fabric.FabricRestClient()
deployment_pipeline_id = ''
stage_id = ''
response = client.get(f'/v1/deploymentPipelines/{deployment_pipeline_id}/stages/{stage_id}/items')
response.json() |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Yes that’s what I got too. It looks like it’s an issue with the api itself. It’s not showing the last deployment time. You should raise an issue with Microsoft support. |
Beta Was this translation helpful? Give feedback.
-
|
You are comparing 2 different APIs. You are running a power bi api. The function in Semantic link labs is running the fabric api which I specified earlier in this thread. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks, confirming that Microsoft has advised they will fix fabric API in March. |
Beta Was this translation helpful? Give feedback.







Thanks for raising the issue. Made a fix for the next release.