Failure during "Send to Server" of a Bare Metal profile

Problem description
From the Image Library dashboard, when a "Send to Server" of a profile is started through the corresponding button, the action "Bare Metal Profile Properties" is triggered. If the last statement of the action fails with the following message displayed in the action info:
Failed continue if {exists file ((parameter "AGENTFOLDER" of action) & 
"\mkgenericsysprof.log") whose (exists lines whose
 (it as string contains "[AGTRC:0]") of it)} 

To troubleshoot the cause of the failure, on the Bare Metal Server open the file C:\Program Files\BigFix OSD\mkgenericsysprof.log. In this file you can find details about the cause of the error. Correct the problem and repeat the "Send to Server" operation.