41
Views
4
Comments
Solved
how to solve this error
Application Type
Traditional Web

how to solve this error

2020-11-25 10-45-32
Mostafa Othman
Champion
Solution

Hello Dilmi,

You are trying to update record into table but you forget to set value of Id attribute into record that you use it as input to UpdateUser Action you need to add assignment before action for example like:

 if you need to update current logged in user: User.Id = GetUserId()

may be also if you display users into list or table widget and edit one of them then you need to use for example: User.Id = Users.List.Current.Id

2022-12-09 04-50-17
Shubham Doshi

Hello Dilmi,

You are passing Null value as user identifier for updating record. You need to pass the correct userId to update.


UserImage.jpg
Alexandre Yip

Hi Dilmi Amarasingha, 

If you are executing that code in a timer or process GetUserId() will not work. 

In that case provide an user explicitly,userid can be an input parameter. 

Hope that it helps you, 


2025-04-17 05-42-16
Ajit Kurane

You are trying to update a record with Null userId, In other words, you're trying to update a user who does not exist.

In the UpdateUser action, you need to make sure the User.Id is filled in:

Hope it helps you.

Thanks.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.