On Tue, Jun 19, 2012 at 11:20 AM, Tim Anderson <tja...@gmail.com> wrote:

> Greetings,
>      foreach my $new_role (@{$roles}) {
>        $c->log->debug("Creating new role: " . Dumper($new_role));
>
>        $existing_record->create_related ('portal_user_roles', { role_id =>
> $new_role });  #first time through works, but fails on second pass
>

[snip]


> When I set DBIC_TRACE=1, I see the following stack trace:
>
>
> DBIx::Class::Schema::throw_exception('Portal::Schema=HASH(0x35fd380)',
> 'Unknown error: execute() returned false, but error flags were...') called
> at /usr/local/share/perl5/DBIx/Class/Storage.pm line 111
>
> DBIx::Class::Storage::throw_exception('DBIx::Class::Storage::DBI::Sybase::Microsoft_SQL_Server::Free...',
> 'Unknown error: execute() returned false, but error flags were...') called
> at /usr/local/share/perl5/DBIx/Class/Storage/DBI.pm line 1594
>
> DBIx::Class::Storage::DBI::_dbh_execute('DBIx::Class::Storage::DBI::Sybase::Microsoft_SQL_Server::Free...',
> 'DBI::db=HASH(0x51679a0)', 'INSERT INTO PORTAL_USER_ROLE ( client_id,
> role_id, user_id) V...', 'ARRAY(0x4fa0490)', 'ARRAY(0x533ea30)') called at
> /usr/local/share/perl5/DBIx/Class/Storage/DBI.pm line 789
>

I see that you send $new_role to the log. What is the value when it
crashes? An invalid value may cause unhelpful errors.

-- 
Robert Wohlfarth
_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Reply via email to