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 / Trouble with a Datacar...
Power Apps
Answered

Trouble with a Datacard and Update

(0) ShareShare
ReportReport
Posted on by 716 Moderator

So I cannot for the life of me figure out why a datacard is not updating the record in the SP list from a form.

I have three simple fields. User, Comment and a TicketID.

I have User and Comment populating correctly when the form is submitted.

TicketID needs to be updated with the number held in varItem. This record ID is used all over the app, it's the ID of the parent record in the main list.

 

This second list is a normalized comments list. User is being set with Claims on datacard which passes to the control as the default selected items and then when the form submits, it updates based on the selected items. Which can never even change because the datacard is hidden. It's just there to hold the current user.

The comments field is a straightforward multiline text field and works a treat.

The ID field...my goodness why can't I make this work?

 

The datacard autopopulates the Datafield when the card is added to the form: "TicketID"

Default on this card defaults to ThisItem.TicketID which is meaningless since we're on the form in New mode so there is no ThisItem.

Required = true

Update = Value(DataCardValue31.Text)

 

DatacardValue31.Default = varItem (which I can see in the editor is a number. 156 specifically and btw I can see the 156 is the control since I haven't hidden it yet)

 

But no matter what I change the Update property to on the datacard, the column does not populate in the SP list.

And what is really odd is that when I was trying to resolve, I ended up trying to submit with NOTHING which actually resulted in an error because the datacard is marked as required AND the SP list column is required.

 

But when I submit, I get no error which seems to indicate to me that the app believes it has a value to update/create the record with but doesn't in fact use it.

 

I'm truly stumped about what is happening. I have exactly the same functions working in other apps but I can't for the life of me figure out what is going on with the datacard.

 

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,720 Super User 2026 Season 1 on at

    Hi @DCHammer ,

     

    Have you tried hard coding a value in the Update property for testing purposes? If this works, it may be that during the submission of the form something happens to varItem or DatacardValue31, making either of them lose value momentarily. 

  • Verified answer
    DCHammer Profile Picture
    716 Moderator on at

    Well I figured it out and the lesson is worth knowing.

    When I created the list, I created TicketID as a lookup from the ID column in the main list. I could not make this work and decided that I'd just use a number column as I have in other apps. This lookup thing seemed like a good idea at the time but is really meaningless since no user is ever doing the lookup, the value is being populated by a variable and the card is hidden.

    So I deleted the original column and created a new one WITH THE SAME NAME. That was the mistake. Somehow PowerApps just could not figure out how to update that field properly despite multiple refreshes of all the content and datasources. Closing browsers etc. The one thing I didn't try was clearing my browser cache.

    What finally worked was deleting the TicketID column from the list and adding a TicketNo column.

    Then all of what I had set up previously suddenly worked.

    So the lesson I got was to never change the data type of a column other than changing a text field from single line to multiline which has never broken.

  • DCHammer Profile Picture
    716 Moderator on at

    I didn't actually try hardcoding a value but I did test putting varItem which holds a number in there and that failed too which REALLY confused me. Which is why I decided to delete the entire column, recreate it with a different name and then add the card back in. That solved it.

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