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 / Network Error When Usi...
Power Apps
Answered

Network Error When Using Patch Function

(0) ShareShare
ReportReport
Posted on by 67

I've been meaning to create a Time Tracker app and stumbled upon this great video from Randy Hayes: (25) PowerApps Time Tracker - YouTube 

 

I was following his video every step of the way in a test environment and when I got to the part where I'm supposed to run the app and Check In, Lunch Out so that records are created in the SharePoint list I get this error message: "Network Error When Using Patch Function: Title field is mandatory."

 

My code is exactly like his in the video, but I can't seem to get it to work.

 

 

Patch(TimeTracker; Defaults(TimeTracker);
{
Title: glbUser;
ActivityType:ThisItem.display;
ActivityDateTime: Text(Now(); "yyyymmddhhmm"); ActivityDate: Now()
}
)

 

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,064 Most Valuable Professional on at

    Hi @vinidegrandi ,

    The error suggests that nothing is being written to the Title field - have you checked that glbUser has content when this is written ?

  • vinidegrandi Profile Picture
    67 on at

    I have this set up as the OnStart of the app:

     

    Set(glbUser; Lower(User().Email))

     

    But it does say that glbUser is blank... 

  • Verified answer
    WarrenBelz Profile Picture
    156,064 Most Valuable Professional on at

    @vinidegrandi ,

    OK you have found your problem - it is not the Patch, but the Variable not containing data to write to the required field. Your code should work, however try this

    Patch(
     TimeTracker; 
     Defaults(TimeTracker);
     {
     Title: Lower(User().Email);
     ActivityType: ThisItem.display;
     ActivityDateTime: Text(Now(); "yyyymmddhhmm"); 
     ActivityDate: Now()
     }
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • vinidegrandi Profile Picture
    67 on at

    I have found the issue! I hadn't run the variable so it definitely wasn't going to work haha

     

    Thank you for your time and help!

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 366 Most Valuable Professional

#2
11manish Profile Picture

11manish 184

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 99 Super User 2026 Season 1

Last 30 days Overall leaderboard