Additional you shoud use the TASKID instead of using global variables... You did already SET them...
Hint:
Hint:
B4X:
Sub sql_QueryResult(data As List, meta As Map)
Dim m As Map = meta
Log("Task: "&m.Get("TaskID"))