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 / Patch SharePoint Onlin...
Power Apps
Unanswered

Patch SharePoint Online list Offline Online

(0) ShareShare
ReportReport
Posted on by 43

Hi

 

I found something "strange" :

 

I have simple list NameraneHodnoty with Column IDMeraca

I put simple timer with for example 5second duration and repeating

OnTimerStart is function

 

If(Connection.Connected,
Refresh(NameraneHodnoty);Revert(NameraneHodnoty);
Patch(NameraneHodnoty,{IDMeraca:9123})
)

 

  • When App runs with internet, it works fine (putting new value into List)
  • When App runs with internet, lost connection, get connection back, it works fine (like above)
  • But - When app runs without internet, and then connection get back, on function Patch it is returningThe data source supplied to the function is invaliddataSourceSupplied.png

I tried it without Refresh / Revert but same resut.

(from I tested .. when powerapps run without internet, and then connect to internet, when it try to Patch value)

 

 

I tried to retrieve datasourceinfo but with no luck .. again same error message

If(Connection.Connected,

DataSourceInfo(NameraneHodnoty, DataSourceInfo.DisplayName, "IDMeraca");

Patch(NameraneHodnoty,{IDMeraca:9123})

)

 

 

Usage is when user add new items, it added just to collection and SaveData. When connection get back data are automatically send to server even if app is closed.

 

 

Maybe I am doing something wrong, just i found this issue.

Please, is there some workaround. Thanks

Categories:
I have the same question (0)
  • Meneghino Profile Picture
    6,949 on at

    Hi @Marek

    Your usage of Patch seems strange, in the case of writing to a data source you should have three parameters.

    How is it working with just two?

  • Marek Profile Picture
    43 on at

    Hi

     

    yes sorry its wrong syntax

    (hm it behave as as parameter is collection (puts new item into list))

     

    my production code is

    Clear(ClearCollect(NameraneHodnotyRefresh;Filter(NameraneHodnoty;ID=122)));;

    Patch(NameraneHodnoty;NameraneHodnoty_NotSent);;

     

    I tried to retrieve some existing data from data source via ClearCollect NameraneHodnoty before Patch but still error.

  • Meneghino Profile Picture
    6,949 on at

    Hi @Marek, but I still don't understand the use of the Patch function with two parameters in your case and not the more usual three parameters.

    Can you please supply the full OnTimeStart code?

    Thanks.

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 846

#2
Valantis Profile Picture

Valantis 532

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard