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 / A value must be provid...
Power Apps
Answered

A value must be provided for item, server error excel patch function

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi Everyone,

I think I just may need a second set of eyes on my code, I'm sure it's an oversight.

 

Patch(
DailyRepairDataTable,
EditDailyRepair.LastSubmit,
{
EditBy: User().FullName,
DateModified: Now(),
PreviousQTY: varPrevQTY
}
);

 

My data source is an excel file. When I substitute text for my variable 'varPrevQTY' I get the text I put to patch successfully into my excel table so I was thinking it could have been that my excel column was formatted "general" so I changed it to "Number". But that does not seem to have worked even after I remove and add back my excel data source to make sure everything is refreshed.  Any ideas? Appreciate any feed back.

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Ok, I'm certain it's not a cell formatting problem, as I successfully replaced my variable with the number 9 and it worked. So passing text works, passing a number works, passing my variable doesn't. My variable does contain a numeric value I checked that by setting a label to the variable and it shows the number I expect. So I just must not understand how to patch a variable to excel.  

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    not sure if a screen shot will help.... But here it is....

    ScreenShot.png
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Ok, for my future self and anyone else looking for the same solution. The problem was as follows: 

    1) I don't need a variable.

    2) You can use one but it should look like this:

     

    Patch(
    DailyRepairDataTable,
    EditDailyRepair.LastSubmit,
    {
    EditBy: User().FullName,
    DateModified: Now(),
    PreviousQTY: Value(varPrevQTY.Text)
    }
    );

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 883

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 477

Last 30 days Overall leaderboard