# SMT DB error?

**URL:** <https://forums.suse.com/t/smt-db-error/22449>\
**Category:** SLES Updates\
**Created:** [March 28, 2012, 12:28pm UTC](https://forums.suse.com/t/smt-db-error/22449 "2012-03-28T12:28:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![J.M](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@J.M](https://forums.suse.com/u/J.M)\
**Post date:** [March 28, 2012, 12:28pm UTC](https://forums.suse.com/t/smt-db-error/22449/1 "2012-03-28T12:28:03Z")

</div>

Hi,

The daily run of smt-gen-report outputs the following at the top:

DBD::mysql::db do failed: Duplicate entry ‘somebighash-anotherhash’ for key 1 at /usr/lib/perl5/vendor\_perl/5.10.0/SMT/NCCRegTools.pm line 699.

That line performs an insert:

[CODE] $statement = sprintf(“INSERT INTO ClientSubscriptions (GUID, SUBID) VALUES(%s, %s)”,  
$self-\>{DBH}-\>quote($data-\>{GUID}),  
$self-\>{DBH}-\>quote($subid));

```
            $self->{DBH}->do($statement);

```

[/CODE]

Can anybody explain what’s the problem and how to clean it up?

Thanks

---

<div class="post-metadata">

**Author:** ![dirkmueller](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/dirkmueller/32/11354_2.png) [@dirkmueller](https://forums.suse.com/u/dirkmueller)\
**Post date:** [April 4, 2012, 4:02pm UTC](https://forums.suse.com/t/smt-db-error/22449/2 "2012-04-04T16:02:13Z")

</div>

[QUOTE=jmroth;3702]Hi,

Can anybody explain what’s the problem and how to clean it up?

[/QUOTE]

This looks like a code bug in the SMT server. Please contact Novell/SUSE Support Services, they will be able to provide you with a fix.
