Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Same connection and user setup returns ERROR on PROD environment

(0) ShareShare
ReportReport
Posted on by 93

Hello, I have a Solution that has 2 Flows. 1 checks a record in Oracle DB, while the other does UPDATE after the check.

 

The problem is we have a 100% working Solution when using same user with same privileges on TEST environment. But, once I change the gateway, connection, connection reference and then replace the connection in the flows I get failed UPDATE. The check flow works fine. But the UPDATE flow does not. It just fails to do the UPDATE action without any error message.

 

Do you have any idea what might be causing this behaviour? The setup is exactly the same as on the Test Oracle DB, but not on the Production DB.

  • Verified answer
    GeorgiGeorgiev Profile Picture
    93 on at
    Re: Same connection and user setup returns ERROR on PROD environment

    Solution:

    The solution was a bit mixed up. The reason I could not get the Production flow working was because Oracle connector requires and works with Row ID column identifier. For TEST environment the views that I used were constrained for the columns I use as Primary Keys (fakturanr and belegnummer). So the TEST environment was working.

     

    When switching to Production env. I tried working with base tables, not views. But, base tables did not have the same PK constraint on the same fields (PK columns are ID and IDFAKTURA). So the workaround was to use GET ROWS action in Oracle connector to match a specific row and return only the PK column, which after that was SET in a flow variable. Details on the setup now can be found in this thread:

     

    https://powerusers.microsoft.com/t5/Building-Flows/Oracle-SELECT-PK-based-on-variable-input/m-p/1734393/thread-id/191954#M192387

    GeorgiGeorgiev_0-1661513640211.png

     

  • GeorgiGeorgiev Profile Picture
    93 on at
    Re: Same connection and user setup returns ERROR on PROD environment

    Hi @v-jefferni , I am still working on a workaround as things are more complicated, but once I do make the final setup I will post an answer and accept it as solution.

  • v-jefferni Profile Picture
    on at
    Re: Same connection and user setup returns ERROR on PROD environment

    Hi @GeorgiGeorgiev ,

     

    Nice work! Please accept your reply as solution and help other users easily find it.

     

    Best regards,

  • GeorgiGeorgiev Profile Picture
    93 on at
    Re: Same connection and user setup returns ERROR on PROD environment

    I think I finally figured out why. Since we are using VIEWs we have not set a constraint so that the view can have a PK. And Flow requires a constraint PK for the view to be allowed to make a change.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,552 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,928 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow