I encountered a scenario where effects might reference shader parameters that may not potentially exist, this isn't particularly a bad thing that needs to return failure. It just needs to gracefully ignore it.