Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
cassoli2019
Regular Visitor

Oracle PowerShell RealTime Push

Good night,

I have been trying to send Oracle data via PowerShell for some time to stream to PowerBI, unsuccessfully so far.

I would be very grateful if someone could help me.

Below the script that I tried to assemble:

$endpoint = "https://api.powerbi.com/beta/aabfeafc-82d3-42f6-bec6-dba6ddbc5428/datasets/6712ca6e-2054-4e18-9583-c..."
while($true)
{
Add-Type -Path C:\ODP.NET_Managed_ODAC122cR1\odp.net\managed\common\Oracle.ManagedDataAccess.dll
$username = "username"
$password = "password"
$datasource = "datasource"
$connectionString = "User Id=$username;Password=$password;Data Source=$datasource"
$Qtde = "SELECT COUNT(CONHECIMENTO_ID) FROM FISCAL.CONHECIMENTO WHERE DATA_EMISSAO >= SYSDATE-1"
$TCte = "SELECT SUM(TOTAL_CONHECIMENTO) FROM FISCAL.CONHECIMENTO WHERE DATA_EMISSAO >= SYSDATE-1"
$payload = @{
"QTDE" =$Qtde
"TOTAL_CTE" =$TCte
}
Invoke-RestMethod -Method Post -Uri "$endpoint" -Body (ConvertTo-Json @($payload))
sleep 20
}

Tks
1 REPLY 1
v-diye-msft
Community Support
Community Support

Hi @cassoli2019 

 

Sorry, I can't fix it on my side, please kindly raise your issue to support team for better advice:

https://powerbi.microsoft.com/en-us/support/

Support Ticket.gif

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.