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 / Data card blank values...
Power Apps
Unanswered

Data card blank values becomes not editable after patching to share point list

(0) ShareShare
ReportReport
Posted on by 10

Hi guys,

I am facing a really strange bug

Basically, I have an "offline" form that uses a local Collection as Data Source, that Updates the data back to a SharePoint list at the press of a button, and then Clear Collects the collection again and shows it in the Gallery

What I am experiencing is that, after I update the Collection to SharePoint, if there is a Data card Value (Text Input) which is Blank, when the collection is Clear Collected again from SharePoint, the text written as input does not get saved into the Collection.

This does not happen if the field, before being patched to SharePoint, was not blank, and I am able to edit it freely.

This doesn't happen either if the Data card Value is a control like a Toggle Button: the value gets edited and saved in the collection normally.

What am I doing wrong? There's something strange happening with Blank values?

Thanks in advanced.

Categories:
  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @Dave_,

     

    Can you share more details with you issue? some formulas and screenshots could be more helpful.

    Also I want to know that how did you set collection to the data source of Form? For the moment, Form won't show the data of collection. so I feel strange with it.


    Best regards,

    Sik

     

  • Dave_ Profile Picture
    10 on at

    Hi,

    thanks for replying.

     

    Yes you a right, I use the Form just as a container but then everything is done manually via "Patch" and "Form.Updates" statements

    For example to save Locally: 

     

     

    Patch(
     Raccolta;
     If(Form1.Mode = FormMode.New; Defaults(Raccolta); Galleria.Selected);
     Form1.Updates)

     

    To submit changes:

    IfError(
     ForAll(
     Raccolta;
     If(!IsBlank(Raccolta[@ID]);
     Patch(
     'SOURCE';
     First(Filter('SOURCE'; ID = Raccolta[@ID]));
     {
     MACCHINA : MACCHINA;
     .... \\etc for every field
     ); 
     Patch( 
     'SOURCE';
     Defaults(SOURCE);
     {
     
     MACCHINA : MACCHINA;
     .... \\etc for every field
     }
     ) 
     )
    
     );;
     ClearCollect(Raccolta; LastN('SOURCE';25))
     \\other stuff
     )

     

    Tell me if it's clear enough...
    All the Update proprieties of the Datacards are properly set to the right DataCardValue...
    And again, the strange fact here is that if the  DataCardValue is not blank before submitting everything work out well...

    Do you think the problem is the Form.Updates statement?

    Regards.

     

  • Dave_ Profile Picture
    10 on at

    Hey guys,

    still no solution here..... Have u managed to reproduce the problem?

    looking forward some advise. Thanks

  • Dave_ Profile Picture
    10 on at

    Still no solution here.... wondering if anybody actually knows

    Ty.

  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @Dave_ ,

    Apologize for my omission.

    Could your try to toggle on the feature ” Formula-level error management”, and check if your issue still remains?

    Snipaste_2019-11-13_18-23-58.png

    Best regards,

    Sik

  • Dave_ Profile Picture
    10 on at

    Hi,

    unfortunately, it's  already activated.

    No errors are shown.

    Dave.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard