Looks like you are trying to send the parameters to setCode as one single string? You have to define each parameter in the action by using "Add Another Parameter" button, the first one is a number, the other two are strings. You can see what the command is expecting by looking at the device page.
I did do the actions like your above step in Select Actions to run. I even tried just doing a lock code by itself. That did not work either. I did a straight String for parameter type that looks like this,
Trigger event was "Mode Day", then did "Actions to Run", "New Action", "Set Variable, Mode or File, Run Custom Action", then "Run Custom Action", Selected "Lock" for Capability of action device", Selected the appropriate lock "Kwikset Lock 1", and "Kwikset Lock 2", Selected custom command "setCode", then parameter type was set to "string", the string value was "10,'1111','Test User'"
I then created the Wait in a separate Action and the deleteCode in another separate action.
But I get the error I mentioned above. I looked at the codes in the device and they were never put in from the Rule that I created.
Here is another related question: If you look at my string above, I added single quotes to both the lock code and the name of the code, but not to the slot. But when it shows after I created it, it shows '10,'1111','Test User''
that is single quote 10 comma, single quote 1111 single quote comma, single quote Test user single quote single quote.
Yes, that is wrong, you have to add the first as a number, then a second parameter as a string, then the last string. Each one is a separate parameter.