Solution
This error is expected if the new input frame has a payload different that 8 bytes. This occurs because the Frame Cluster Constant in the example Loopback is initialized with a payload of 8 bytes, this causes the XNET Write (Frame CAN) VI to error out because it is expecting a different payload value. To bypass this issue modify the payload constant within the Frame Cluster Constant to match the payload Array defined by the Frame you want to test out.

The CAN Loopback test is an example developed by NI to verify hardware functionality, if you want to test out different CAN frames from your database then the CAN Frame Ouput Single Point.vi would be a more suitable example since the payload of the frames is not defined as constant and can be changed at any time without editing the code.