Tasks fail and/or bug
Options
![Daniel Rjeili](https://us.v-cdn.net/6037124/user_avatars/1510658.jpg)
Daniel Rjeili
Member ✭
I believe that in the difficulty in making a task to work that I created I found a bug. For the sake of demonstration I created a similar (EssayToTestTask #6)but simple task:
1) Query all users
2) For each user it updates a field: countURC with a value from variable created (3)
3) Create a variable "paramToTest"
Then i tried 2 scenarios:
3.1) update the variable value from/with addons (would be "1000").
3.2) update the variable value with static value ("2000").
The point is: I tested BOTH 3.1 and 3.2 with "Run and Debug" and it works PERFECTLY and UPDATES users table. But when runs through schedule the task at "Task History" I have 2 different unsuccessful results one for each scenario:
3.1) error: "Unable to locate var: each_user.AppUserSet.AppSet.paramToTest" : WITHOUT UPDATES on users table.
3.2) "success" also : WITHOUT UPDATES on users table.
I am missing something🤔 or there is something to diagnose and correct 🔍 🛠️ on Xano side? Thanks in advance in any attention invest 🙂
[xano_bug_001.jpg]
1) Query all users
2) For each user it updates a field: countURC with a value from variable created (3)
3) Create a variable "paramToTest"
Then i tried 2 scenarios:
3.1) update the variable value from/with addons (would be "1000").
3.2) update the variable value with static value ("2000").
The point is: I tested BOTH 3.1 and 3.2 with "Run and Debug" and it works PERFECTLY and UPDATES users table. But when runs through schedule the task at "Task History" I have 2 different unsuccessful results one for each scenario:
3.1) error: "Unable to locate var: each_user.AppUserSet.AppSet.paramToTest" : WITHOUT UPDATES on users table.
3.2) "success" also : WITHOUT UPDATES on users table.
I am missing something🤔 or there is something to diagnose and correct 🔍 🛠️ on Xano side? Thanks in advance in any attention invest 🙂
[xano_bug_001.jpg]
Comments
-
Hey how are you parsing through your data for each_user.AppUserSet.AppSet.paramToTest? Are you using dot notation? I suspect that it could be failing because sometimes that path may not exist. If you are using dot notation could you try using the GET filter to grab the path and setting a default value such as null. If that's, the case this will help it from failing.
-
I am using dot notation, but as I said I tried without “dynamic data” just a variable with static value and the task show succes but dont update user table
-
In parallel I will try take of dot notation and try GET. And see what we have as result of the task.
-
Ah yes I see what you mean now... I'll need to take a closer look at your task to see if we can pinpoint why that's doing that
-
Case solved ! The response speed of this team is unbelievable! Congratulations and thank you all so much!
-
What was the solution here? I might be running into similar issues.
-
in the time I had this issue the Xano team solved internally. I think can help you also.
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback