XIOFEN_LIM
Hola a todos,
En el proceso de cargar la transmisión de datos desde el servidor SQL para monitorear los datos en vivo y posiblemente crear un tablero. Sin embargo, después de configurar el tablero y un script de PowerShell para enviar datos a Power Bi, se muestra el error.
Invoke-RestMethod: El servidor remoto devolvió un error: (404) No encontrado.
En C: Users EEM02117 OneDrive – Escatec Projects Power BI POC PushData.ps1: 46 char: 2
+ Invoke-RestMethod -Method Post -Uri «$ Endpoint» -Body (ConvertTo- …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
+ CategoryInfo: InvalidOperation: (System.Net.HttpWebRequest: HttpWebRequest) [Invoke-RestMethod], WebExc
eption
+ FullyQualifiedErrorId: WebCmdletWebResponseException, Microsoft.PowerShell.Commands.InvokeRestMethodCommand
Aquí está el script de PowerShell que empuja los datos:
$ Punto final = https: //api.powerbi.com/beta/1ee0c8fe-fb94-4c61-80fa-6d0ec79dc31f/Datasets/6062d4fe-7200-4b41-87f5-4 …
while ($ Dataset.Read ()) {# empujar datos a Power BI
$ carga útil = @ {
«UnitId» = $ Conjunto de datos[‘UnitId’]
«SerialNumberInternal» = $ Conjunto de datos[‘SerialNumberInternal’]
«SaleQuantityAmount» = $ Conjunto de datos[‘Quantity’]
«DateCreated» = $ Conjunto de datos[‘DateCreated’]
}
Invoke-RestMethod -Method Post -Uri «$ Endpoint» -Body (ConvertTo-Json @ ($ payload))
}
¿Algunas ideas? ¿Necesitaría configurar una puerta de enlace de Power BI?
V-lianl-msft
Si se trata de una fuente de datos que no es de la nube, debe configurar una puerta de enlace.
Asegúrate de no inhabilitar el «análisis de datos históricos«.
También puede consultar los pasos de este blog:
https: //sqlitybi.com/streaming-data-from-sql-server-to-power-bi-using-powershell/? doing_wp_cron = 1617 …
V-lianl-msft
Si se trata de una fuente de datos que no es de la nube, debe configurar una puerta de enlace.
Asegúrate de no inhabilitar el «análisis de datos históricos«.
También puede consultar los pasos de este blog:
https: //sqlitybi.com/streaming-data-from-sql-server-to-power-bi-using-powershell/? doing_wp_cron = 1617 …
XIOFEN_LIM
En respuesta a V-lianl-msft
@ V-lianl-msft
¡Lo tengo. Gracias!