Hello,
You should be able to do this without any problem. I have attached a small example that works. Please look at the custom data types that have been set up for both error out and test data. Remember that you will need to specify that each of these data types will be able to be passed as structs. You can see this by right clicking on the data type and selecting Properties>>Struct Passing. Let me know if you have any questions.
Hope this helps,
Bob