DBIx::Class::Schema::throw_exception(): Can't locate object method "result_source_instance" via package ... #### Can't locate method result_source_instance For some reason the table class in question didn't load fully, so the ResultSource object for it hasn't been created. Debug this class in isolation, then try loading the full schema again. #### package TA::CP::DB::Schema::Result::CustomTest; use strict; use warnings; use base qw/DBIx::Class::Core/; __PACKAGE__->table_class('DBIx::Class::ResultSource::View'); __PACKAGE__->result_source_instance->is_virtual(1); __PACKAGE__->result_source_instance->view_definition(\"select 2*2");