ILMT - Failed scan at Linux clients

At some Linux clients, ILMT fails to scan, the task initiate software scan gives:

Completed parameter “RETCODE_PKG_1” = "{if exist exit code of action then exit code of action as integer else 0}"
Completed if {parameter “RETCODE_PKG_1” as integer != 0}
Completed delete __appendfile
Completed delete "{parameter “resultPath” as string}sua_package_data.info"
Completed appendfile 2:{parameter “RETCODE_PKG_1” as integer}
Completed move __appendfile "{parameter “resultPath” as string}sua_package_data.info"
Failed exit {parameter “RETCODE_PKG_1” as integer}
endif
endif

Looks like the move of appendfile to the file …\sua_package_data.info went wrong. The resultPath should be known because the former delete (2 lines up) is completed

Does anyone have some ideas what can be wrong here?

What is the exit code for the action? If it is non-zero, it means that the RECODE_PKG_1 is also non-zero. What entries precede the first line of your snippet?