in reply to A doubt about DBIx::Class

It seems like you already know exactly what's going on(?). When-

$schema->resultset("UserScenario")->search({ "name" =>$user_scenario->{name}, })->first

-finds no UserScenario record, you get an error trying to call the method "description" on nothing. Bit like trying to do undef->do_something.