Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

I tried to run, but it is not working . I erased grup id and dataset id #8

Open
acstaffa opened this issue Feb 27, 2018 · 0 comments
Open

Comments

@acstaffa
Copy link

acstaffa commented Feb 27, 2018

PS C:\WINDOWS\system32> C:\Users\alexandre.staffa\SUHAI SEGURADORA\Informações de Gestão - Documentos\Atualizar Vendas.ps1
Exceção ao chamar "LoadFrom" com "1" argumento(s): "Não foi possível carregar arquivo ou assembly 'file:///C:\Program Files
(x86)\Microsoft SDKs\Azure\PowerShell\ServiceManagement\Azure\Services\Microsoft.IdentityModel.Clients.ActiveDirectory.dll' ou uma
de suas dependências. O sistema não pode encontrar o arquivo especificado."
No C:\Users\alexandre.staffa\SUHAI SEGURADORA\Informações de Gestão - Documentos\Atualizar Vendas.ps1:11 caractere:8

  •    [System.Reflection.Assembly]::LoadFrom($adal) | Out-Null
    
  •    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : FileNotFoundException

Exceção ao chamar "LoadFrom" com "1" argumento(s): "Não foi possível carregar arquivo ou assembly 'file:///C:\Program Files
(x86)\Microsoft
SDKs\Azure\PowerShell\ServiceManagement\Azure\Services\Microsoft.IdentityModel.Clients.ActiveDirectory.WindowsForms.dll' ou uma de
suas dependências. O sistema não pode encontrar o arquivo especificado."
No C:\Users\alexandre.staffa\SUHAI SEGURADORA\Informações de Gestão - Documentos\Atualizar Vendas.ps1:13 caractere:8

  •    [System.Reflection.Assembly]::LoadFrom($adalforms) | Out-Null
    
  •    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : FileNotFoundException

New-Object : Não é possível localizar o tipo [Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext]: verifique se o
o assembly contendo o tipo está carregado.
No C:\Users\alexandre.staffa\SUHAI SEGURADORA\Informações de Gestão - Documentos\Atualizar Vendas.ps1:21 caractere:23

  • ... thContext = New-Object "Microsoft.IdentityModel.Clients.ActiveDirecto ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidType: (:) [New-Object], PSArgumentException
    • FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.NewObjectCommand

Não é possível chamar um método em uma expressão de valor nulo.
No C:\Users\alexandre.staffa\SUHAI SEGURADORA\Informações de Gestão - Documentos\Atualizar Vendas.ps1:23 caractere:8

  •    $authResult = $authContext.AcquireToken($resourceAppIdURI, $cl ...
    
  •    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull

Não é possível chamar um método em uma expressão de valor nulo.
No C:\Users\alexandre.staffa\SUHAI SEGURADORA\Informações de Gestão - Documentos\Atualizar Vendas.ps1:29 caractere:1

  • $authHeader = @{
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : InvokeMethodOnNull
    
    

MODO DETALHADO: POST https://api.powerbi.com/v1.0/myorg/groups/erased4/datasets/erades/refreshes with 0-byte payload
Invoke-RestMethod : O servidor remoto retornou um erro: (403) Proibido.
No C:\Users\alexandre.staffa\SUHAI SEGURADORA\Informações de Gestão - Documentos\Atualizar Vendas.ps1:40 caractere:1

  • Invoke-RestMethod -Uri $uri –Headers $authHeader –Method POST –Verbos ...
  •   + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
      + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand32> 
    
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant