@ERROR/@SERROR will always contain the error/status code of the last KiXtart function/command that was executed. In your case, it's READPROFILESTRING and not COPY. This is by design.
_________________________
There are two types of vessels, submarines and targets.