MySQL query error [1062]: Duplicate entry '9738' for key 'PRIMARY'

Affected version
2.2.7 Patch 1
https://prnt.sc/1v2tkxc
I'm trying to re-export my faulty website.
What is the solution?

Xenforo 2.2.7 Patch 1 to Xenforo 2.2.7 Patch 1
İmporter 1.5.1

Code:
server error log
XF\Db\DuplicateKeyException: MySQL query error [1062]: Duplicate entry '9738' for key 'PRIMARY' src/XF/Db/AbstractStatement.php:230
Tarafından: gökhan 6 Eki 2021 23:36'de
Yığın izleme
INSERT  INTO `xf_attachment` (`attachment_id`, `data_id`, `content_type`, `content_id`, `attach_date`, `temp_hash`, `unassociated`, `view_count`) VALUES (?, ?, ?, ?, ?, ?, ?, ?)
------------

#0 src/XF/Db/Mysqli/Statement.php(198): XF\Db\AbstractStatement->getException('MySQL query err...', 1062, '23000')
#1 src/XF/Db/Mysqli/Statement.php(79): XF\Db\Mysqli\Statement->getException('MySQL query err...', 1062, '23000')
#2 src/XF/Db/AbstractAdapter.php(96): XF\Db\Mysqli\Statement->execute()
#3 src/XF/Db/AbstractAdapter.php(220): XF\Db\AbstractAdapter->query('INSERT  INTO `x...', Array)
#4 src/XF/Import/Data/EntityEmulator.php(329): XF\Db\AbstractAdapter->insert('xf_attachment', Array)
#5 src/XF/Import/Data/Attachment.php(92): XF\Import\Data\EntityEmulator->insert(9738, Object(XF\Db\Mysqli\Adapter))
#6 src/XF/Import/Data/AbstractData.php(129): XF\Import\Data\Attachment->write(9738)
#7 src/addons/XFI/Import/Importer/XenForo2.php(1951): XF\Import\Data\AbstractData->save(9738)
#8 src/XF/Import/Runner.php(244): XFI\Import\Importer\XenForo2->stepAttachments(Object(XF\Import\StepState), Array, 8)
#9 src/XF/Import/Runner.php(61): XF\Import\Runner->runStep('attachments', Object(XF\Import\StepState), 8)
#10 src/XF/Admin/Controller/Import.php(234): XF\Import\Runner->run()
#11 src/XF/Mvc/Dispatcher.php(352): XF\Admin\Controller\Import->actionRun(Object(XF\Mvc\ParameterBag))
#12 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF:Import', 'Run', Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\Import), NULL)
#13 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Admin\Controller\Import), NULL)
#14 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#15 src/XF/App.php(2345): XF\Mvc\Dispatcher->run()
#16 src/XF.php(512): XF\App->run()
#17 admin.php(13): XF::runApp('XF\\Admin\\App')
#18 {main}
Durum isteği
array(4) {
  ["url"] => string(29) "/xenforo/admin.php?import/run"
  ["referrer"] => string(58) "https://www.*******.com/xenforo/admin.php?import/run"
  ["_GET"] => array(1) {
    ["import/run"] => string(0) ""
  }
  ["_POST"] => array(1) {
    ["_xfToken"] => string(8) "********"
  }
}
 
Top