Robotask stuck

Discuss RoboTask here
gremlin
Posts: 36
Joined: Sun Jan 08, 2023 3:13 pm

Robotask stuck

Post by gremlin »

Hello, I have the problem that robotask simply stops at step 10 or 11. The task shows Active and will not continue until Robotask is ended via the task manager. After that everything goes back to normal. But after a few hours (mostly at night) it gets stuck again and only responds again after a restart.
I have the task attached

It's a very simple task. Do you have a solution for this?

Best regards
Steve

Code: Select all

;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************
 
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|0
CatID=INTEGER|976360944
Comment=STRINGLIST
ContinueOnError=INTEGER|1
DisableOnError=INTEGER|0
DoNotStopWhenShutdown=INTEGER|0
Events=FOLDER
ExternalName=STRING|"Task21"
Hide=INTEGER|0
ID=INTEGER|1749369426
LogOnAsUser=INTEGER|1
Name=STRING|"Copy of FTP - Bestandsdaten von Gautzsch herunterladen"
OnErrorTaskID=INTEGER|0
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
StepPause=INTEGER|0
ToLog=INTEGER|3
UnicodeFormat=INTEGER|1
WriteGeneralLog=INTEGER|0

[Actions]
Action1=FOLDER
Action10=FOLDER
Action11=FOLDER
Action12=FOLDER
Action13=FOLDER
Action14=FOLDER
Action2=FOLDER
Action3=FOLDER
Action4=FOLDER
Action5=FOLDER
Action6=FOLDER
Action7=FOLDER
Action8=FOLDER
Action9=FOLDER

[Actions\Action1]
ActionID=STRING|"A_FILE_SEARCH"
Enabled=INTEGER|-1
Name=STRING|"Create File List (variable: CSVVORHANDEN)"
Params=FOLDER

[Actions\Action1\Params]
_rt_variables_produced=STRING|"CSVVORHANDEN"
After=STRING|"0"
aftercount=STRING|"0"
AfterLine=STRING|"0"
Before=STRING|"0"
beforecount=STRING|"0"
BeforeLine=STRING|"0"
createmode=STRING|"1"
date1=STRING|"20240206"
date2=STRING|"20240206"
destvar=STRING|"CSVVORHANDEN"
DuringDays=STRING|"1"
DuringHours=STRING|"1"
DuringMinutes=STRING|"1"
DuringMonths=STRING|"1"
file0=STRING|"C:\JTL-TMP\Gautzsch\FTP_IN\*.csv"
filecount=STRING|"1"
OlderDays=STRING|"1"
OlderHours=STRING|"1"
OlderMinutes=STRING|"1"
OlderMonths=STRING|"1"
savetofile=STRING|"0"
savetovar=STRING|"1"
searchkind=STRING|"0"
sort=STRING|"0"
sortby=STRING|"0"
sortorder=STRING|"0"
subdirs=STRING|"0"
WithoutPath=STRING|"0"

[Actions\Action10]
ActionID=STRING|"A_FILE_SEARCH"
Enabled=INTEGER|-1
Name=STRING|"Prüfen ob eine Bestandsdatei heruntergeladen wurde"
Params=FOLDER

[Actions\Action10\Params]
_rt_variables_produced=STRING|"dateiheruntergeladen"
After=STRING|"0"
aftercount=STRING|"0"
AfterLine=STRING|"0"
Before=STRING|"0"
beforecount=STRING|"0"
BeforeLine=STRING|"0"
createmode=STRING|"1"
date1=STRING|"20240129"
date2=STRING|"20240129"
destvar=STRING|"dateiheruntergeladen"
DuringDays=STRING|"1"
DuringHours=STRING|"1"
DuringMinutes=STRING|"1"
DuringMonths=STRING|"1"
file0=STRING|"c:\JTL-TMP\Gautzsch\FTP_IN\*.csv"
filecount=STRING|"1"
OlderDays=STRING|"1"
OlderHours=STRING|"1"
OlderMinutes=STRING|"1"
OlderMonths=STRING|"1"
savetofile=STRING|"0"
savetovar=STRING|"1"
searchkind=STRING|"0"
sort=STRING|"0"
sortby=STRING|"0"
sortorder=STRING|"0"
subdirs=STRING|"0"
WithoutPath=STRING|"0"

[Actions\Action11]
ActionID=STRING|"A_FLOW_IF"
Enabled=INTEGER|-1
Name=STRING|"If Then"
Params=FOLDER

[Actions\Action11\Params]
case=STRING|"0"
connection=STRING|"0"
count=STRING|"1"
operator=STRING|"8"
type=STRING|"0"
value1=STRING|"{dateiheruntergeladen}"

[Actions\Action12]
ActionID=STRING|"A_TASKS_START"
Enabled=INTEGER|-1
Name=STRING|"Start Task ""Artikelstammdaten CSV einlesen"""
Params=FOLDER

[Actions\Action12\Params]
abort=STRING|"0"
parametercount=STRING|"0"
required=STRING|"0"
saveresult=STRING|"0"
taskid=STRING|"1537574101"
wait=STRING|"0"

[Actions\Action13]
ActionID=STRING|"A_FLOW_ENDIF"
Enabled=INTEGER|-1
Name=STRING|"End If"

[Actions\Action14]
ActionID=STRING|"A_FLOW_ENDIF"
Enabled=INTEGER|-1
Name=STRING|"End If"

[Actions\Action2]
ActionID=STRING|"A_FLOW_IF"
Enabled=INTEGER|-1
Name=STRING|"Wenn keine Datei mehr da ist neue herunterladen"
Params=FOLDER

[Actions\Action2\Params]
case=STRING|"0"
connection=STRING|"1"
count=STRING|"1"
operator=STRING|"7"
type=STRING|"0"
value1=STRING|"{CSVVORHANDEN}"
value2=STRING|"4"

[Actions\Action3]
ActionID=STRING|"A_SFTP_LOGON"
Enabled=INTEGER|-1
Name=STRING|"SFTP Verbinden"
Params=FOLDER

[Actions\Action3\Params]
host=STRING|"xxxxx"
output=STRING|"0"
password=STRING|"8504685161851618516185161"
port=STRING|"22"
usecertificate=STRING|"0"
username=STRING|"xxxx"

[Actions\Action4]
ActionID=STRING|"A_SFTP_DIR"
Enabled=INTEGER|-1
Name=STRING|"Loop CSV Dateien"
Params=FOLDER

[Actions\Action4\Params]
_rt_variables_produced=STRING|"FTPCSV"
createmode=STRING|"1"
date1=STRING|"18991230"
date2=STRING|"18991230"
DuringDays=STRING|"1"
DuringHours=STRING|"1"
DuringMinutes=STRING|"1"
DuringMonths=STRING|"1"
filenameonly=STRING|"1"
folder=STRING|"/ARTIKEL/*.*"
kind=STRING|"0"
linecount=STRING|"1"
OlderDays=STRING|"1"
OlderHours=STRING|"1"
OlderMinutes=STRING|"1"
OlderMonths=STRING|"1"
sizesave=STRING|"0"
sort=STRING|"1"
sortby=STRING|"1"
sortorder=STRING|"0"
subfolders=STRING|"0"
timesave=STRING|"0"
varname=STRING|"FTPCSV"

[Actions\Action5]
ActionID=STRING|"A_SFTP_GET"
Enabled=INTEGER|-1
Name=STRING|"Datei(en) herunterladen (von alt nach neu)"
Params=FOLDER

[Actions\Action5\Params]
file=STRING|"/ARTIKEL/{FTPCSV}"
folder=STRING|"c:\JTL-TMP\Gautzsch\FTP_IN\"
ifexists=STRING|"1"
recursive=STRING|"0"

[Actions\Action6]
ActionID=STRING|"A_FILE_RENAME"
Enabled=INTEGER|-1
Name=STRING|"Datei lokal umbennen"
Params=FOLDER

[Actions\Action6\Params]
count=STRING|"1"
file0=STRING|"c:\JTL-TMP\Gautzsch\FTP_IN\{FTPCSV}"
ifexists=STRING|"1"
mask=STRING|"Gautzsch.csv"
subdirs=STRING|"0"

[Actions\Action7]
ActionID=STRING|"A_SFTP_DEL"
Enabled=INTEGER|-1
Name=STRING|"SFTP Datei vom Server löschen"
Params=FOLDER

[Actions\Action7\Params]
file=STRING|"/ARTIKEL/{FTPCSV}"

[Actions\Action8]
ActionID=STRING|"A_LOOP_END"
Enabled=INTEGER|-1
Name=STRING|"Loop End"

[Actions\Action9]
ActionID=STRING|"A_SFTP_LOGOFF"
Enabled=INTEGER|-1
Name=STRING|"SFTP Trennen"

[Events]
Event1=FOLDER

[Events\Event1]
Enabled=INTEGER|-1
EventID=STRING|"E_GENERAL_SHEDULER"
Name=STRING|"Scheduler(29.01.2024 17:00:00)"
Params=FOLDER
UniqueID=INTEGER|-733358138

[Events\Event1\Params]
periodicity=STRING|"0"
startdate=STRING|"45320"
time0=STRING|"0"
time1=STRING|"300000"
time10=STRING|"3000000"
time100=STRING|"30000000"
time101=STRING|"30300000"
time102=STRING|"30600000"
time103=STRING|"30900000"
time104=STRING|"31200000"
time105=STRING|"31500000"
time106=STRING|"31800000"
time107=STRING|"32100000"
time108=STRING|"32400000"
time109=STRING|"32700000"
time11=STRING|"3300000"
time110=STRING|"33000000"
time111=STRING|"33300000"
time112=STRING|"33600000"
time113=STRING|"33900000"
time114=STRING|"34200000"
time115=STRING|"34500000"
time116=STRING|"34800000"
time117=STRING|"35100000"
time118=STRING|"35400000"
time119=STRING|"35700000"
time12=STRING|"3600000"
time120=STRING|"36000000"
time121=STRING|"36300000"
time122=STRING|"36600000"
time123=STRING|"36900000"
time124=STRING|"37200000"
time125=STRING|"37500000"
time126=STRING|"37800000"
time127=STRING|"38100000"
time128=STRING|"38400000"
time129=STRING|"38700000"
time13=STRING|"3900000"
time130=STRING|"39000000"
time131=STRING|"39300000"
time132=STRING|"39600000"
time133=STRING|"39900000"
time134=STRING|"40200000"
time135=STRING|"40500000"
time136=STRING|"40800000"
time137=STRING|"41100000"
time138=STRING|"41400000"
time139=STRING|"41700000"
time14=STRING|"4200000"
time140=STRING|"42000000"
time141=STRING|"42300000"
time142=STRING|"42600000"
time143=STRING|"42900000"
time144=STRING|"43200000"
time145=STRING|"43500000"
time146=STRING|"43800000"
time147=STRING|"44100000"
time148=STRING|"44400000"
time149=STRING|"44700000"
time15=STRING|"4500000"
time150=STRING|"45000000"
time151=STRING|"45300000"
time152=STRING|"45600000"
time153=STRING|"45900000"
time154=STRING|"46200000"
time155=STRING|"46500000"
time156=STRING|"46800000"
time157=STRING|"47100000"
time158=STRING|"47400000"
time159=STRING|"47700000"
time16=STRING|"4800000"
time160=STRING|"48000000"
time161=STRING|"48300000"
time162=STRING|"48600000"
time163=STRING|"48900000"
time164=STRING|"49200000"
time165=STRING|"49500000"
time166=STRING|"49800000"
time167=STRING|"50100000"
time168=STRING|"50400000"
time169=STRING|"50700000"
time17=STRING|"5100000"
time170=STRING|"51000000"
time171=STRING|"51300000"
time172=STRING|"51600000"
time173=STRING|"51900000"
time174=STRING|"52200000"
time175=STRING|"52500000"
time176=STRING|"52800000"
time177=STRING|"53100000"
time178=STRING|"53400000"
time179=STRING|"53700000"
time18=STRING|"5400000"
time180=STRING|"54000000"
time181=STRING|"54300000"
time182=STRING|"54600000"
time183=STRING|"54900000"
time184=STRING|"55200000"
time185=STRING|"55500000"
time186=STRING|"55800000"
time187=STRING|"56100000"
time188=STRING|"56400000"
time189=STRING|"56700000"
time19=STRING|"5700000"
time190=STRING|"57000000"
time191=STRING|"57300000"
time192=STRING|"57600000"
time193=STRING|"57900000"
time194=STRING|"58200000"
time195=STRING|"58500000"
time196=STRING|"58800000"
time197=STRING|"59100000"
time198=STRING|"59400000"
time199=STRING|"59700000"
time2=STRING|"600000"
time20=STRING|"6000000"
time200=STRING|"60000000"
time201=STRING|"60300000"
time202=STRING|"60600000"
time203=STRING|"60900000"
time204=STRING|"61200000"
time205=STRING|"61500000"
time206=STRING|"61800000"
time207=STRING|"62100000"
time208=STRING|"62400000"
time209=STRING|"62700000"
time21=STRING|"6300000"
time210=STRING|"63000000"
time211=STRING|"63300000"
time212=STRING|"63600000"
time213=STRING|"63900000"
time214=STRING|"64200000"
time215=STRING|"64500000"
time216=STRING|"64800000"
time217=STRING|"65100000"
time218=STRING|"65400000"
time219=STRING|"65700000"
time22=STRING|"6600000"
time220=STRING|"66000000"
time221=STRING|"66300000"
time222=STRING|"66600000"
time223=STRING|"66900000"
time224=STRING|"67200000"
time225=STRING|"67500000"
time226=STRING|"67800000"
time227=STRING|"68100000"
time228=STRING|"68400000"
time229=STRING|"68700000"
time23=STRING|"6900000"
time230=STRING|"69000000"
time231=STRING|"69300000"
time232=STRING|"69600000"
time233=STRING|"69900000"
time234=STRING|"70200000"
time235=STRING|"70500000"
time236=STRING|"70800000"
time237=STRING|"71100000"
time238=STRING|"71400000"
time239=STRING|"71700000"
time24=STRING|"7200000"
time240=STRING|"72000000"
time241=STRING|"72300000"
time242=STRING|"72600000"
time243=STRING|"72900000"
time244=STRING|"73200000"
time245=STRING|"73500000"
time246=STRING|"73800000"
time247=STRING|"74100000"
time248=STRING|"74400000"
time249=STRING|"74700000"
time25=STRING|"7500000"
time250=STRING|"75000000"
time251=STRING|"75300000"
time252=STRING|"75600000"
time253=STRING|"75900000"
time254=STRING|"76200000"
time255=STRING|"76500000"
time256=STRING|"76800000"
time257=STRING|"77100000"
time258=STRING|"77400000"
time259=STRING|"77700000"
time26=STRING|"7800000"
time260=STRING|"78000000"
time261=STRING|"78300000"
time262=STRING|"78600000"
time263=STRING|"78900000"
time264=STRING|"79200000"
time265=STRING|"79500000"
time266=STRING|"79800000"
time267=STRING|"80100000"
time268=STRING|"80400000"
time269=STRING|"80700000"
time27=STRING|"8100000"
time270=STRING|"81000000"
time271=STRING|"81300000"
time272=STRING|"81600000"
time273=STRING|"81900000"
time274=STRING|"82200000"
time275=STRING|"82500000"
time276=STRING|"82800000"
time277=STRING|"83100000"
time278=STRING|"83400000"
time279=STRING|"83700000"
time28=STRING|"8400000"
time280=STRING|"84000000"
time281=STRING|"84300000"
time282=STRING|"84600000"
time283=STRING|"84900000"
time284=STRING|"85200000"
time285=STRING|"85500000"
time286=STRING|"85800000"
time287=STRING|"86100000"
time29=STRING|"8700000"
time3=STRING|"900000"
time30=STRING|"9000000"
time31=STRING|"9300000"
time32=STRING|"9600000"
time33=STRING|"9900000"
time34=STRING|"10200000"
time35=STRING|"10500000"
time36=STRING|"10800000"
time37=STRING|"11100000"
time38=STRING|"11400000"
time39=STRING|"11700000"
time4=STRING|"1200000"
time40=STRING|"12000000"
time41=STRING|"12300000"
time42=STRING|"12600000"
time43=STRING|"12900000"
time44=STRING|"13200000"
time45=STRING|"13500000"
time46=STRING|"13800000"
time47=STRING|"14100000"
time48=STRING|"14400000"
time49=STRING|"14700000"
time5=STRING|"1500000"
time50=STRING|"15000000"
time51=STRING|"15300000"
time52=STRING|"15600000"
time53=STRING|"15900000"
time54=STRING|"16200000"
time55=STRING|"16500000"
time56=STRING|"16800000"
time57=STRING|"17100000"
time58=STRING|"17400000"
time59=STRING|"17700000"
time6=STRING|"1800000"
time60=STRING|"18000000"
time61=STRING|"18300000"
time62=STRING|"18600000"
time63=STRING|"18900000"
time64=STRING|"19200000"
time65=STRING|"19500000"
time66=STRING|"19800000"
time67=STRING|"20100000"
time68=STRING|"20400000"
time69=STRING|"20700000"
time7=STRING|"2100000"
time70=STRING|"21000000"
time71=STRING|"21300000"
time72=STRING|"21600000"
time73=STRING|"21900000"
time74=STRING|"22200000"
time75=STRING|"22500000"
time76=STRING|"22800000"
time77=STRING|"23100000"
time78=STRING|"23400000"
time79=STRING|"23700000"
time8=STRING|"2400000"
time80=STRING|"24000000"
time81=STRING|"24300000"
time82=STRING|"24600000"
time83=STRING|"24900000"
time84=STRING|"25200000"
time85=STRING|"25500000"
time86=STRING|"25800000"
time87=STRING|"26100000"
time88=STRING|"26400000"
time89=STRING|"26700000"
time9=STRING|"2700000"
time90=STRING|"27000000"
time91=STRING|"27300000"
time92=STRING|"27600000"
time93=STRING|"27900000"
time94=STRING|"28200000"
time95=STRING|"28500000"
time96=STRING|"28800000"
time97=STRING|"29100000"
time98=STRING|"29400000"
time99=STRING|"29700000"
timecount=STRING|"288"
wakeup=STRING|"0"

Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Robotask stuck

Post by Oleg »

Step #10 "Search for files"
Step #11 "if..then" action
Is this correct?

What RoboTask edition do you use: x86 or x64?
Send the system info: menu Help -> system information
How many CSV files in your folder?
Oleg Yershov
gremlin
Posts: 36
Joined: Sun Jan 08, 2023 3:13 pm

Re: Robotask stuck

Post by gremlin »

Hy,
yes, step 10 and 11 are correct.

I use Robotask x64.

Here are my system information:

Code: Select all

RoboTask version 9.8.1.1135 (x64 edition)
Assembly version 9.8.1.292
Plugins
  "General" version 9.8.0.372
  "Dialogs and Notifications" version 9.8.0.272
  "Files and Folders" version 9.8.0.367
  "Zip" version 9.8.0.226
  "Internet" version 9.8.0.275
  "FTP Commands" version 9.8.0.225
  "SSL FTP Commands" version 9.8.0.199
  "SFTP (SSH FTP)" version 9.8.0.138
  "Dial-Up" version 9.8.0.187
  "Variables" version 9.8.0.227
  "Task Commands" version 9.8.0.206
  "Remote Task" version 9.8.0.39
  "Loops And Flows" version 9.8.0.243
  "Window" version 9.8.0.241
  "System Events" version 9.8.0.227
  "System Functions" version 9.8.0.216
  "RoboTask Commands" version 9.8.0.190
  "Clipboard" version 9.8.0.200
  "Mouse" version 9.8.0.202
  "Registry" version 9.8.0.187
  "Network" version 9.8.0.184
  "eMail" version 9.8.0.214
  "Strings" version 9.8.0.132
  "Embedded Chromium Browser" version 9.8.0.71
  "Regular Expressions" version 9.8.0.153
  "ScreenShot" version 9.8.0.113
  "INI files" version 9.8.0.29
  "XML Document" version 9.8.0.88
  "Script Tools" version 9.8.0.45
  "Excel" version 9.8.0.79
  "Sound Volume" version 9.8.0.60
  "DataBase" version 9.8.0.77
  "CSV Data" version 9.8.0.11
  "Graphics" version 9.8.0.40
  "WebSockets" version 9.8.0.40
  "Console Application" version 9.8.0.28
  "Converter" version 9.8.0.4
  "HDD S.M.A.R.T." version 9.8.0.3

Processor Info
Manufacturer: GenuineIntel
Type:  8664
Count: 16
Level: 6
Model: 165, Step: 5
Speed: 2904 MHz
Processor name: Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz

Memory Info
Physical memory:        16.875.368.448
Physical memory avail:  6.015.827.968
Physical memory Load:   64%
Total virtual Memory:   26.002.173.952
Avail virtual Memory:   8.343.912.448
Virtual Memory Load:    68%
RoboTask's working set: 81912 Kb

OS Info
OS version: 10.0 () x64 edition
Build: 22631
Platform: Windows NT

Monitors count 2
Monitor 0 resolution: 1920x1200 (primary)
Monitor 1 resolution: 1920x1200 

Disks Info
C: Fixed
   Total 509.357.322.240 bytes; Free 185.211.486.208 bytes; Cluster size 4.096
D: Removable

System folders
Windows path: "C:\WINDOWS"
Program Files path: "C:\Program Files"
Temporary folder path: "C:\Users\STRAND~1\AppData\Local\Temp"
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Robotask stuck

Post by Oleg »

Hm-m-m...
I afraid that your disk has some logical problem

Try to check and fix problems on disk. Command line is:

Code: Select all

chkdsk c: /f
Since drive C is the system drive, the system will need to be rebooted. Checking the system on the disk before booting the system.

I tried these actions with large folder (~70000 files). It works in a few seconds
Oleg Yershov
gremlin
Posts: 36
Joined: Sun Jan 08, 2023 3:13 pm

Re: Robotask stuck

Post by gremlin »

I've already run checkdisk.
It's all right.
Already restarted the PC.
The task normally downloads 1 .csv file via FTP.
This is renamed and then checked to see if a file exists.
I'm surprised he hangs himself doing this.

I have other tasks that also check for files.
These have no problem and work perfectly.

Only this task causes problems, but only after several hours. e.g. This morning it not worked again, then I restarted Robotask and so far it's been running without any problems...
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Robotask stuck

Post by Oleg »

I have other tasks that also check for files.
For your information
To check file existence by mask use {FileExists(<FileName>)} variable
It returns True or False
for example

Code: Select all

{FileExists(D:\incoming\large\*.txt)}
Oleg Yershov
gremlin
Posts: 36
Joined: Sun Jan 08, 2023 3:13 pm

Re: Robotask stuck

Post by gremlin »

Snipaste_2024-02-09_13-34-59.png
Snipaste_2024-02-09_13-34-59.png (13.39 KiB) Viewed 782 times
You mean so ?
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Robotask stuck

Post by Oleg »

You mean so ?
Yes
Oleg Yershov
gremlin
Posts: 36
Joined: Sun Jan 08, 2023 3:13 pm

Re: Robotask stuck

Post by gremlin »

Ok, I`ll try
gremlin
Posts: 36
Joined: Sun Jan 08, 2023 3:13 pm

Re: Robotask stuck

Post by gremlin »

Hy,

look here. It crashed ...
Screenshot_2024_02_11-2.png
Screenshot_2024_02_11-2.png (349.5 KiB) Viewed 771 times
Screenshot_2024_02_11-1.png
Screenshot_2024_02_11-1.png (353.12 KiB) Viewed 771 times
Post Reply