cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pinya
Level: Powered On

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
Community Support Team
Community Support Team

Re: DataSource has diffrent items in Sharepoint and in App

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
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (4,447)