Looks like everything has been setup correctly. Without seeing the contents of your data table its difficult to understand why this would now be failing. The error displays the card names and if they are the correct card names that align with the row names in the data tables, then there may be other variables at play.
I will suggest that you go ahead and make the change this function to below. Detach the current code and add the follow. This will save you the hassle of the spaghetti lines everywhere and make it a lot easier for you to add new cards sets to your game. With this change, as long as your card set is in the data table array and the card names are the same, then you shouldn’t see any other issues.
If you continue to get this, even after this change, send an email to and we can continue this discussion more specific to your project.