web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Use Lookup In EditForm...
Power Apps
Answered

Use Lookup In EditForm: Network Error when using Patch function. Record not found.

(1) ShareShare
ReportReport
Posted on by 116

Hey guys,

I ve tried a lot over many hours and I am not getting what exactly I am doing wrong. Hopefully someone of you have a solution.

I have two sql tables one table where I have articles with data like article_ID, Title, manufacturer, types.Type_ID and so on.

The second table has types in it such as notebook, tablet etc. data: Type_ID, Title, icon

 

I use an edit form where people can create new articles and also shall put in the type via an dropdown or an combobox but I am not able to Connect the two tables. 

 

My Dropdown Item Funktion mention the type table with the title as Value

 

The Update function is a LookUp(TypeTable,DataCardValue49.Selected.Title = Title, Type_ID)

 

Any help is much appreciated.

With best regards Leon

Categories:
I have the same question (0)
  • Shaheer Ahmad Profile Picture
    2,194 Moderator on at

    Here are a few things to check and consider:

    1. Network connectivity: Verify that you have a stable network connection. Network errors can occur if there are connectivity issues between Power Apps and your SQL database. Ensure that you have a reliable and consistent network connection to prevent network errors.

    2. SQL database connection: Double-check your SQL database connection in Power Apps. Ensure that the connection is properly established and authenticated. If the connection is not set up correctly, it can lead to network errors or difficulties retrieving data from the SQL tables.

    3. DataCardValue49.Selected.Title: Confirm that the DataCardValue49 represents the control (dropdown or combobox) where you're selecting the type. Check if the Selected property is correctly referring to the dropdown or combobox control and that it contains the expected value. You can use the UpdateContext function to store the selected value in a variable for better readability and debugging.

    4. Lookup function syntax: Review the syntax of the Lookup function. The first argument should be the name of the table or data source you want to search in, followed by the condition to match against. In your case, it seems like the condition is DataCardValue49.Selected.Title = Title. However, ensure that Title corresponds to the correct column name in your TypeTable.

    5. Patch function: Ensure that the Patch function is properly configured to update the article record with the selected type. Verify that you're using the correct table and columns in the Patch function to update the article's type based on the Lookup result.

     

    If this does not help. Kindly share screenshots of the formula. And please add your lookup formula to a testing gallery and see if it returns a row.

  • Verified answer
    Xeon0021 Profile Picture
    116 on at

    Oh I found the solution, it is much simpler than I thought. Here is my Solution:

    In The Update Property u must do a:

    DataCardValue49.SelectedText.TypID

    No lookup needed.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 742

#2
Valantis Profile Picture

Valantis 474

#3
Haque Profile Picture

Haque 358

Last 30 days Overall leaderboard