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 / __PowerAppsId__ value ...
Power Apps
Answered

__PowerAppsId__ value will not auto-generate until after a value is manually entered into it

(1) ShareShare
ReportReport
Posted on by 15

I am using Power Apps to create a simple entry log that is connected to an Excel Spreadsheet hosted on a Sharepoint site. When making the connection I selected the option for Power Apps to automatically generate a unique record ID (__PowerAppsId__). This is by default a required field. When I create a new entry the __PowerAppsId__ field is blank. Once I finish entering data into the other fields and click the Submit button, the __PowerAppsId__ field border turns red and it doesn't allow me to submit the entry. Then I enter a random value into the field and hit Submit and it works. The value that I enter changes into a value Power Apps auto-generated. (For example, I enter '1', hit submit and it changes to 'f001d48c-73b2-4995-ac27-8139c23b9b23').

This isn't so much a problem but is confusing to users. As a workaround I tried defining the Default property, but that only had intermittently success. Sometimes the record would submit properly and sometimes it would give me an error that I "could not save." Also, if a Default value is defined, the field always displays that value ('1), regardless of the actual underlying value 'f001d48c-73b2-4995-ac27-8139c23b9b23' in the spreadsheet.

 

Why do I have to enter any value at all if it overwrites with an auto-generated number?

Categories:
I have the same question (0)
  • narayan225 Profile Picture
    2,547 Moderator on at

    @Scotticusprime 

     

    The value is auto-generated by PowerApps when you add a new item. You don't need to make it visible and required to the users. It is something that is defined and populated by PowerApps.

     

    I suggest, you hide that field from both gallery and forms and removed the required flag.

     

    Hope this helps!

     

    Cheers!

  • Scotticusprime Profile Picture
    15 on at

    That is not the behavior I am seeing. I have reproduced the following examples many times.

     

    If the __PowerAppsId__ 'Visible' property is set to 'off', data is entered into the other fields and checkmark is pressed to submit a new record, it does not write the new record and the following message appears, "Cannot save. Please check if there are errors in the form."

     

    If the __PowerAppsId__ 'Visible' property is set to 'on', but the field is left blank, data is entered into the other fields and the checkmark to submit a new record is pressed, the same message comes up, "Cannot save. Please check if there are errors in the form." and the __PowerAppsId__ border turns red showing it is a required field.

     

    If the __PowerAppsId__ field is removed entirely it will not write new records and the following message appears, "Cannot save. Please check if there are errors in the form."

     

    If the __PowerAppsId__ 'Visible' property is set to 'on', any value is entered into it and the checkmark is pressed to submit a new record, it accepts the entry and writes the record to the Excel spreadsheet on Sharepoint with a new auto-generated identification number.

  • narayan225 Profile Picture
    2,547 Moderator on at

    @Scotticusprime 

     

    That field should not appear when you add a form and fields in your form.

    narayan225_0-1692948739329.png

    These are my fields in my test excel table. Even though _PowerAppsId_ is a column, it still doesn't display when adding forms.

     

    Not sure why the field is coming up in your form.

     

    Cheers!

  • shanshan Profile Picture
    3 on at

    Hi,

    Same issue here, have you found any solution for this issue?

  • Verified answer
    Scotticusprime Profile Picture
    15 on at

    No. I rebuilt from scratch a few times and the issue was still there. My solution was to go to change the structure from a PowerApp<->Excel Spreadsheet(in Sharepoint) to a PowerApp<->Sharepoint List<->Excel Spreadsheet(local). My thinking is that PowerApps and Sharepoint Lists are both fully cloud-based whereas Excel is more of a local tool.

  • Ictericia Profile Picture
    2 on at

    I did something that might not be the best solution but it works for now. I change the textbox for a dropdown list with just one random value and then put the field not visible and it works. It generates the _PowerAppsId_ automatically with this value. If you found another solution let me know.

  • MatthewAdian Profile Picture
    12 on at

    But when it comes with a template generated from Excel, the PowerAppsId is there on the EditForm field and then when I remove and add the connection again the PowerAppsId is gone. Why creating app from excel data source template still require to remove and connect to the excel again ?

  • andrewsanjaya Profile Picture
    18 on at

    is there any updates about this problem ?

  • Scotticusprime Profile Picture
    15 on at

    As mentioned earlier, I rebuilt from scratch using PowerApp<->Sharepoint List. Haven't had any problems with it. My assumption is that PowerApps and Sharepoint Lists are more recent developments built for the cloud and have better compatibility.

  • Bruno_Santana Profile Picture
    2 on at

    @Scotticusprime, I encountered the same issue, but I’ve resolved it now.

    I modified the ‘Default’ field of the Text Input as follows:

    If(IsBlank(Parent.Default);GUID();Parent.Default)

    By doing this, existing records retain the value of the PowerAppsId from the table, while new entries receive a new unique ID.

     

    I hope this helps! ✌️

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 610

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard