Forum Discussion

4 Replies

Replies have been turned off for this discussion
  • Hey,

    Can you please share the overall code that you are using and the error message when executed via powershell rather than just the image?

  • Script PowerShell : 

    $body=@{
        updateDetails=@(
            @{
                name = "DTF TEST Pipeline 1.0.2"
            }
        )
    }
    
    $jsonPostBody = $body | convertTo-JSON
    
    $url = "https://api.powerbi.com/v1.0/myorg/groups/8569358a-549c-466a-894c-de113f5c4fb1/dataflows/8774dad3-3f17-4444-b73b-b82cea0812b6"
    
    Invoke-PowerBIRestMethod -Url $url -Method Post -Body $jsonPostBody -Verbose -ContentType 'application/json'

     

    Error Message : 

    Invoke-PowerBIRestMethod : Une ou plusieurs erreurs se sont produites.
    Au caractère Ligne:28 : 1
    + Invoke-PowerBIRestMethod -Url $url -Method Post -Body $jsonPostBody - ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : WriteError: (Microsoft.Power...werBIRestMethod:InvokePowerBIRestMethod) [Invoke-PowerBIRestMethod], AggregateException
        + FullyQualifiedErrorId : Une ou plusieurs erreurs se sont produites.,Microsoft.PowerBI.Commands.Profile.InvokePowerBIRestMethod
     
    VERBOSE: Request Uri: https://api.powerbi.com/v1.0/myorg/groups/8569358a-549c-466a-894c-de113f5c4fb1/dataflows/8774dad3-3f17-4444-b73b-b82cea0812b6
    VERBOSE: Status Code: NotFound (404)
    • NandanHegde's avatar
      NandanHegde
      Super User

      which authentication are you using?
      Is it service principal or user token for triggering the API?

      Based on the error messgae, it seems that the particular account/app doesnt have access to that workspace which contains the dataflow