$RCWAsourcelength required setting tag the number of the light sources. This number needs to be set in the beginning of input file.
Example
$RCWAsourcelength 1