Error: "Must define profile for class"
Cause
You defined a class to split the stream of traffic into multiple flows, but you didn't define the QoS profile that will process that flow of traffic.
You will trigger this command if you use a command like this:
set policy qos name <policy-name> shaper class <class-id> match ...
without a corresponding command like this:
set policy qos name <policy-name> shaper class <class-id> profile <profile-name>