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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors