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 / unknown error occured
Power Apps
Unanswered

unknown error occured

(0) ShareShare
ReportReport
Posted on by

Hello,

 

I am patching data form a collection to an Excel file located on my One drive.

My app ahs been working fine for the last 2 months. But since yesterday, when I patch the data I sometimes get a message in a red band saying "an unknown error occured".

WHen the patch was finished, I checked, and the data had not been patched in my Excel file.

It was lost!!!

Does anyone know where this error is coming from / how to solve it?

And how to avoid losing data. This is really a big problem...

Many thanks,

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Anonymous 

    This can happen for a variety of reasons from the Excel file through the OneDrive connection to the connection for the App itself.

    Unfortunately you have to plan for those potential issues in your app by using functions like Errors and checking connections.

    Also, Excel tends to be a bit temperamental when used as a DataSource - you might consider moving to SharePoint or SQL if possible for the future as you'll have a little more control over them and there will be less temperamental issues.

     

    I hope this is informative and helpful for you.

  • Community Power Platform Member Profile Picture
    on at

    I see...


    How can I test for errors while it is patching?

    The patch of the collections happens in one go.

    It's not like there is a loop where I can test for error between each record being patched...Can you provide any guidance?

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Anonymous 

    This is going to depend entirely on how you are doing your Patch.  Can you share your formula that you are using and perhaps that will lead to some suggestions?

  • Community Power Platform Member Profile Picture
    on at

    ForAll(offline_records,Patch(l_data,Defaults(l_data),{
    date:c_date,
    dir:Text(c_dir),
    var:Text(c_var),
    per:Value(c_per),
    for:Text(c_for)}))

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Anonymous 

    I know we kind of hit on this subject in some of your other posts, but are you still having issues with this function and formula?

  • dyee4613 Profile Picture
    301 on at

    nvm

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @dyee4613 

    What issue or error are you experiencing with it?

  • dyee4613 Profile Picture
    301 on at

    I was dumb and named the columns in my data set the same as the fields in my app.  I realized I had those confused.  I fixed the names and it started working again.

  • seadude Profile Picture
    1,855 on at

    Hi @dyee4613 ,

    Please consider posting your findings. Believe it or not, there are times when full fledged PowerApps solutions will incorporate Excel Data as a Production-grade solution (not synced to OneDrive per se, but definitely stand alone Excel static data).

     

    Any lessons you learn could help others.

     

    Thanks for being part of the community!

  • dyee4613 Profile Picture
    301 on at

    @seadude.  I'm happy to post my findings.  I don't know how enlightening it will be.  I had a collection that was something like

     

    ForAll(Data1,Patch(Table1,Defaults(Table1),
    {Date:Date,
    Company: Company1,
    Commodity: Commodity1,
    Pack: Pack1,
    Label: Label,
    CrewSize: CrewSize,
    }))

     

    In my brilliance, I named my dataset columns and app field columns the same thing so I didn't realize I was referencing the wrong thing until I changed my app field names to company1.  After that, it fixed the problem

     

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard