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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Column does not exist ...
Power Apps
Suggested Answer

Column does not exist error

(0) ShareShare
ReportReport
Posted on by 24
Hi everyone, 
 
I am creating an app that has a text input and table, once I put the paragraph in the text input, the table should isolate dates and times with the format: DD\MM\YY HH:MM
I've done all this, and I connected the app with a Sharepoint list, the button submits the 5 date and time entries into 5 columns in the Sharepoint List. I tested it in a trial Sharepoint and it worked.
The problem came when I connected the app with the original Sharepoint list
The error is saying that the specified Column 'NotesAdded' does not exist, the most similar name is 'NotesAdded'
I made sure that the the name is correct, no spaces or special characters, I checked the name from the sharepoint list settings, I disconnected the sharepont and reconnected it to the app again 3 times, I even changed the name of the column and still same error.
 
The Button OnSelect formula is:
 
If(
    CountRows(SortedDates) >= 5, // Ensure there are at least 5 dates
    With(
        {
            recordToSubmit: {
 
     TimeRaised: DateValue(First(SortedDates).DateTime) + TimeValue(First(SortedDates).DateTime),    //
     TimeAssigned: DateValue(Last(FirstN(SortedDates, 2)).DateTime) + TimeValue(Last(FirstN(SortedDates, 2)).DateTime),  // Adjusted name if necessary
     TimeStarted: DateValue(Last(FirstN(SortedDates, 3)).DateTime) + TimeValue(Last(FirstN(SortedDates, 3)).DateTime),   // Third date
     NotesAdded: DateValue(Last(FirstN(SortedDates, 4)).DateTime) + TimeValue(Last(FirstN(SortedDates, 4)).DateTime), // Fourth date
     TimeCompleted: DateValue(Last(SortedDates).DateTime) + TimeValue(Last(SortedDates).DateTime)  // Fifth date
 
            }
        },
        Patch(
            'C Priority Lists',
            Defaults(' Priority Lists'),
            recordToSubmit
        )
    );
    Notify("All dates submitted successfully!", NotificationType.Success),
    Notify("Not enough dates to submit!", NotificationType.Error)
    & SubmitForm(Form3)
);
I have the same question (0)
  • Suggested answer
    Nandit Profile Picture
    1,568 Moderator on at
     
    Did you check the name of the column in the URL when you clicked on the column in SharePoint List settings? If not, then go to Settings, select the column and check the name at the end of the URL. This will give you name you need to use in your app.
     
    If this doesn't work, I'd suggest add a new column and see if it appears in your formula. 
     
    Hope this helps. 
     
    Kind regards, 
    Nandit
     
    If this answers your query, please mark this response as the answer.
    If its helpful, please leave a like. Thanks!
  • WarrenBelz Profile Picture
    153,084 Most Valuable Professional on at
    Mainly coming in here to point out some code reduction potential (DateTimeValue will convert the lot and Index is more compact than Last(FirstN()) . 
    If(
       CountRows(SortedDates) >= 5, 
       With(
          {
             recordToSubmit: 
             {
                TimeRaised: DateTimeValue(First(SortedDates).DateTime),
                TimeAssigned: DateTimeValue(Index(SortedDates, 2).DateTime),  
                TimeStarted: DateTimeValue(Index(SortedDates, 3).DateTime),
                NotesAdded: DateTimeValue(Index(SortedDates, 4).DateTime),
                TimeCompleted: DateTimeValue(Last(SortedDates).DateTime)
             }
          },
          Patch(
             'C Priority Lists',
             Defaults('C Priority Lists'),
             recordToSubmit
          )
       );
       Notify(
          "All dates submitted successfully!", 
      NotificationType.Success ), Notify( "Not enough dates to submit!",
      NotificationType.Error ) ); SubmitForm(Form3);
    Nandit is heading in the correct direction and it should work, however also consider rather than letting SharePoint sort out the Table, try being more explicit
    If(
       CountRows(SortedDates) >= 5, 
       Patch(
          'C Priority Lists',
          Defaults('C Priority Lists'),
          TimeRaised: DateTimeValue(First(SortedDates).DateTime),
          {	  
             TimeAssigned: DateTimeValue(Index(SortedDates, 2).DateTime),  
             TimeStarted: DateTimeValue(Index(SortedDates, 3).DateTime),
             NotesAdded: DateTimeValue(Index(SortedDates, 4).DateTime),
             TimeCompleted: DateTimeValue(Last(SortedDates).DateTime)
          }
       );
       Notify(
          "All dates submitted successfully!", 
      NotificationType.Success ), Notify( "Not enough dates to submit!",
    ​​​​​​​ NotificationType.Error ) ); SubmitForm(Form3);
     
  • Suggested answer
    Kellboy2243 Profile Picture
    51 on at

    Hi 

    1. Check Column Naming Consistency

    The error you’re seeing suggests that PowerApps might not be recognizing the column correctly. SharePoint column names can sometimes behave oddly in PowerApps, especially if they were renamed at some point. Here’s what you can try:

    • Verify Internal Name: Go to SharePoint, click on the column settings in "List settings" > "Column settings," and ensure that the internal column name is NotesAdded. The display name might differ from the internal name, especially if the column name was renamed after creation.

    • Re-add the List as a Data Source: You mentioned reconnecting to the data source, but try removing the data source entirely from PowerApps, saving and closing the app, then reopening it and re-adding the data source to ensure PowerApps refreshes the schema.

    2. Use Exact Column Names in Patch Function

    Ensure that column names in your recordToSubmit object exactly match the column names in SharePoint. This can sometimes require trial and error with the internal names. Here’s a way to modify your Patch function to confirm:

    Patch(
        'C Priority Lists',
        Defaults('C Priority Lists'),  // Ensure there is no typo or extra space in the list name
        {
            TimeRaised: DateValue(First(SortedDates).DateTime) + TimeValue(First(SortedDates).DateTime),
            TimeAssigned: DateValue(Last(FirstN(SortedDates, 2)).DateTime) + TimeValue(Last(FirstN(SortedDates, 2)).DateTime),
            TimeStarted: DateValue(Last(FirstN(SortedDates, 3)).DateTime) + TimeValue(Last(FirstN(SortedDates, 3)).DateTime),
            NotesAdded: DateValue(Last(FirstN(SortedDates, 4)).DateTime) + TimeValue(Last(FirstN(SortedDates, 4)).DateTime),
            TimeCompleted: DateValue(Last(SortedDates).DateTime) + TimeValue(Last(SortedDates).DateTime)
        }
    );
    

    Note: Confirm that 'C Priority Lists' is exactly how the list is named in PowerApps, including spaces, as even minor discrepancies can cause issues.

    3. Remove and Recreate the Column (If Feasible)

    If renaming and re-verifying do not resolve the issue, you might try deleting and recreating the NotesAdded column in the SharePoint list if feasible. This approach helps if there’s a deeper issue with how the column metadata is handled.

    4. Confirm Data Types

    Ensure that the NotesAdded column in SharePoint is set to accept Date/Time values if that’s the expected data type. PowerApps can sometimes throw errors if there’s a type mismatch between PowerApps and SharePoint.

    5. Test with Minimal Patch to Isolate the Issue

    To further isolate, try submitting only the NotesAdded field to SharePoint and see if it patches without errors. This test can help confirm if the issue lies specifically with that column or with the overall recordToSubmit.

    Patch(
        'C Priority Lists',
        Defaults('C Priority Lists'),
        {
            NotesAdded: DateValue(Last(FirstN(SortedDates, 4)).DateTime) + TimeValue(Last(FirstN(SortedDates, 4)).DateTime)
        }
    );
    

    6. Check PowerApps Naming Conflicts

    In some cases, PowerApps can have caching issues with old column names or fields that share similar names. If possible, rename the NotesAdded column in SharePoint to something unique (like NotesDateAdded), update the recordToSubmit formula accordingly, and test again.

    7. Log Output for Debugging

    To get more insights, you could set a label or Notify function to display the exact name that PowerApps is recognizing, which can help debug issues with naming.

    Notify("Detected column: " & Text('C Priority Lists'.NotesAdded), NotificationType.Information);
    

    Final Check

    After making these adjustments, test the button to see if the error persists. If it does, PowerApps may not be recognizing the updated schema for some reason, and further steps like recreating the form or using alternative approaches might be needed.

    Let me know if any of these suggestions solve the issue or if more troubleshooting is required!

  • WarrenBelz Profile Picture
    153,084 Most Valuable Professional on at
    Kellboy2243 we all appreciate and welcome responses with some thought and experience put into it, but if you are going to use ChatGPT to respond (I got almost exactly the same output), please make a note at the start that the content came from there.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard