I believe the error is because of the color and marker fields. If you run the command just with
Report(asdf)[Frame Box(1)] << Row Legend (:week);
this should work fine.
The legend will use the color settings in the column :week whic you would have to define in advance, best in the column properties as value labels or alternatively as Mark rows by column option using this column..