Skip to main content
NetApp Knowledge Base

'Duplicate entry for key 'PRIMARY' error in WFA while AIQUM datasource acquisition

Last Updated:

Applies to

  • OnCommand Workflow Automation (WFA) 5.1.1
  • Active IQ Unified Manager (AIQUM) 9.8 P1
  • ONTAP System Manager (OSM)
  • ONTAP 9 


  • We got the below error message in WFA and it says: Duplicate entry '156317' for key 'PRIMARY' of qtree
  • The error can be seen in <install_directory>\Program Files\NetApp\WFA\jboss\standalone\log\wfa.log
021-09-28 06:33:53,219 ERROR [com.netapp.wfa.job.backend.JobsExecutionInterceptor] (Thread-2326 (ActiveMQ-client-global-threads)) Job CacheJob{, dataSourceId=DataSourceInfo{id=26, name='ActiveIQUM9.8', connectionDetails=ConnectionDetails{id=69, ip='AIQUM_IP', port=3306, userName='wfa', password='******', databaseName='', timeoutInMinutes=10, lastUpdateTime=0}, dataProviderType=DataProviderType{id=19, productType='Active IQ Unified Manager', productVersion='9.7,9.8', scheme='cm_storage'}}, schemeId=Scheme{id=3, name='cm_storage'}, dataSourceName='ActiveIQUM9.8', schemeName='cm_storage'} failed: javax.ejb.EJBException: com.netapp.wfa.util.SqlShellException: Failed to load from 'C:\Program Files\NetApp\WFA\jboss\standalone\tmp\wfa\address=(host=AIQUM_Ip)(port=3306)(type=master)-cm_storage.qtree-6935224624235622313.dump' into wfa_staging.cm_storage_qtree
Caused by: java.sql.SQLIntegrityConstraintViolationException: (conn=15935) Duplicate entry '156317' for key 'PRIMARY'
Caused by: java.sql.SQLException: Duplicate entry '156317' for key 'PRIMARY'
Query is: LOAD DATA INFILE 'C:/Program Files/NetApp/WFA/jboss/standalone/tmp/wfa/address=(host)(port=3306)(type=master)-cm_storage.qtree-6935224624235622313.dump' INTO TABLE wfa_staging.cm_storage_qtree

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.