API pour modifier le nom d'un dataflow

Étiquetté : , , ,

  • API pour modifier le nom d'un dataflow

    Posté par Charline sur 4 janvier 2023 à 7h54

    Bonjour,
    J’aimerais pouvoir modifier le nom d’un dataflow en utilisant cette API :

    Voici mon code :

    $body=@{n            name = "DTF TEST Pipeline 1.0.1"n        }nnInvoke-PowerBIRestMethod -Url "https://api.powerbi.com/v1.0/myorg/groups/8569358a-549c-466a-894c-de113f5c4fb1/dataflows/8774dad3-3f17-4444-b73b-b82cea0812b6" -Method Patch -Body $body

    Cependant quand j’exécute la commande j’ai ce message d’erreur :

    Invoke-PowerBIRestMethod : Une ou plusieurs erreurs se sont produites.nAu caractère Ligne:12 : 1n+ Invoke-PowerBIRestMethod -Url "https://api.powerbi.com/v1.0/myorg/gro ...n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~n    + CategoryInfo          : WriteError: (Microsoft.Power...werBIRestMethod:InvokePowerBIRestMethod) [Invoke-PowerBIRestMethod], AggregateExceptionn    + FullyQualifiedErrorId : Une ou plusieurs erreurs se sont produites.,Microsoft.PowerBI.Commands.Profile.InvokePowerBIRestMethodn nInvoke-PowerBIRestMethod : Encountered errors when invoking the command: {n  "code": "BadRequest",n  "message": "Bad Request",n  "details": [n    {n      "message": "Unexpected character encountered while parsing value: S. Path '', line 0, position 0.",n      "target": "dataflowUpdateInformation"n    }n  ]n}nAu caractère Ligne:12 : 1n+ Invoke-PowerBIRestMethod -Url "https://api.powerbi.com/v1.0/myorg/gro ...n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~n    + CategoryInfo          : WriteError: (Microsoft.Power...werBIRestMethod:InvokePowerBIRestMethod) [Invoke-PowerBIRestMethod], Exceptionn    + FullyQualifiedErrorId : Encountered errors when invoking the command: {n  "code": "BadRequest",n  "message": "Bad Request",n  "details": [n    {n      "message": "Unexpected character encountered while parsing value: S. Path '', line 0, position 0.",n      "target": "dataflowUpdateInformation"n    }n  ]n},Microsoft.PowerBI.Commands.Profile.InvokePowerBIRestMethod

    PostID=si1ccBvC1a4va32

    Charline a répondu Il y a 7 mois, 4 semaines 1 Membre · 0 Réponses
  • 0 Réponses

Désolé, aucune réponse n’a été trouvée.

Connectez-vous pour répondre.