cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pinya
Frequent Visitor

DataSource has diffrent items in Sharepoint and in App

Hi,

 

i am back with next error.

My app which i 3 times recreated because it was corrupted has again some unexpected behaviour.

Look at this:

 

I have button, which has this "code" on property "OnSave":

 

Set(varZvolenePvOdpoved;ThisItem.ID);;ResetForm(frmVyplnitPV);;
Set(varUpozorneniePrilohaOdpoved;false);;Set(varNahravamDokumentOdpoved;false);;

ClearCollect(colOdpovedeParalelneVyjadrenie;Filter(AddColumns(Filter(listDotazyPV;PV_ParentID=Text(varZvolenePvOdpoved);'Typ obsahu'="Odpoved");"LowerEmail";Lower(Uživatel.Email));LowerEmail=varUserEmail));;

UpdateContext({ucvResetOdpovedi:true});;UpdateContext({ucvResetOdpovedi:false});;

If(CountRows(colOdpovedeParalelneVyjadrenie)>0;
Set(varVyplnovanePv;First(Filter(colParalelneVyjadrenia;ParentPvID=Text(ThisItem.ID);LowerEmailPv=varUserEmail;Stav="Položeno")).ID)).

 

My datasource "listDotazyPV" show no items. But in Sharepoint list are 16 items.

I tried Refresh datasource in App. Recreate the button. Nothing helps. Recreate Connection.
Look Attachment1

 
 
 

Near is label, which has Text property: "CountRows(listDotazyPV)".

It returns 16 ...????

Look Attachment2

Yeaterday it was work fine.

No idea.

 

On every step i find something similar.

Some advice, please?

Thanks...

 

 

 
 
1 REPLY 1
v-xida-msft
Community Support
Community Support

Hi @pinya ,

Could you please share a bit more about your scenario?

Do you mean the data source records displayed well before?

 

Please consider modify your formula as below:

Set(varZvolenePvOdpoved;ThisItem.ID);;ResetForm(frmVyplnitPV);;
Set(varUpozorneniePrilohaOdpoved;false);;Set(varNahravamDokumentOdpoved;false);;

ClearCollect(colOdpovedeParalelneVyjadrenie; Filter(listDotazyPV; PV_ParentID = Text(varZvolenePvOdpoved); 'Typ obsahu'="Odpoved"; Lower(Uživatel.Email)=varUserEmail);; // Modify formula here

UpdateContext({ucvResetOdpovedi:true});;UpdateContext({ucvResetOdpovedi:false});;

If(CountRows(colOdpovedeParalelneVyjadrenie)>0;
Set(varVyplnovanePv;First(Filter(colParalelneVyjadrenia;ParentPvID=Text(ThisItem.ID);LowerEmailPv=varUserEmail;Stav="Položeno")).ID))

please take a try with above formula, check if the issue is solved.

 

If the issue still exists, please consider re-store your app to previous version, then re-publish your app, check if the issue is solved.

More details about restoring app to previous version, please refer to the following article:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/restore-an-app

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,391)