During CMDB CI Class Models and Discovery and Service Mapping Patterns application installation/update, some tables under TPP hierarchy are created in TPC structureDescriptionWhen additional CMDB Class tables are added as part of the installation of the CMDB CI Class Models [sn_cmdb_ci_class] or Discovery and Service Mapping Patterns [sn_itom_pattern] applications, some of the tables can be unusable. These apps are also automatically upgraded during an instance upgrade, and these upgrades adding additional tables has also caused the problem. When a table is created wrongly, an additional SQL table may be created, and some storage alias entries mapped to that table, as if it were a Table-Per-Class extended table hierarchy, when the CMDB is in fact Table-Per-Partition hierarchy. You can confirm if this affects you by checking the sys_storage_alias table in the instance. All the tables within cmdb_ci that are added by these apps have "Table" names starting "cmdb_ci_..", and the "Storage table name" should be cmdb, or cmdb$par1, cmdb$par2 etc. only. The "Storage table name" should not be the same as the "Table" name in a TPP CMDB. Symptoms: When opening a CI form or list view, you may see one or more red errors along the top of the form like this (but probably a different field/column and conn number): Syntax Error or Access Rule Violation detected by database ((conn=23113) Unknown column 'cmdb0.duplicate_of' in 'where clause') It is necessary to look in the app node localhost logs for the full error. Records may fail to be inserted into the affected table during Discovery, and that can be confirmed by attempting to insert a record from a form. Inserts by Discovery into these tables, are most likely being done by Patterns, via the IRE, and so the Discovery log may show something like: Failed Exploring CI Pattern, Pattern name: <some pattern name>, To Check Pattern Log... And looking in that Pattern log, you may see the errors from the pattern point of view, possibly for failure to Insert the application CI. Identification CI Errors:Insertion failed with error Error during insert of cmdb_ci_... The detailed IRE and database error logs in the App node localhost log will show more detail, in this case due to duplicate values. This error has also been seen on forms. FAILED TRYING TO EXECUTE ON CONNECTION ... Duplicate entry '<some value>' for key '<column name>' Alternatively, a Discovery Sensor (for probes or patterns) may fail at a particular line of code, leaving the error in the ecc_queue input Error field and discovery log. The error may not actually state the error. e.g. Sensor error when processing Horizontal Pattern: -----------------------------Stack:Message:----------------------------- (sys_script_include.778011130a0a0b2500c4595ad1d1d768.script; line 53) CMDB Dashboard Health jobs may also display no data, and show errors in the localhost log like the following: SEVERE *** ERROR *** FAILED TRYING TO EXECUTE ON CONNECTION glide.3 (connpid=366537): SELECT cmdb0.`attested_date`, cmdb0.`operational_status`, cmdb...Syntax Error or Access Rule Violation detected by database ((conn=366537) Unknown column 'cmdb0.attested_date' in 'field list')com.glide.db.GlideSQLException: FAILED TRYING TO EXECUTE ON CONNECTION glide.3 (connpid=366537): SELECT cmdb0.`attested_date`, cmdb0.`operational_status`, ...FROM (cmdb cmdb0 INNER JOIN cmdb$par1 cmdb_par10 ON cmdb0.`sys_id` = cmdb_par10.`sys_id` ) WHERE cmdb0.`sys_class_name_1` = 'cmdb_ci_db_ora_pdb_instance' AND c...Syntax Error or Access Rule Violation detected by database ((conn=366537) Unknown column 'cmdb0.attested_date' in 'field list')at com.glide.db.DBIError.wrapAndThrow(DBIError.java:153)at com.glide.db.DBIError.handleException(DBIError.java:86)at com.glide.db.DBI.executeStatement(DBI.java:1110)...at com.snc.cmdb.health.MetricManager.getTotals(MetricManager.java:256)at com.snc.cmdb.health.ScoreProcessorCmdb.getTotals(ScoreProcessorCmdb.java:94)at com.snc.cmdb.health.ScoreCalculator.calculateScoreForEachSubMetric(ScoreCalculator.java:171)at com.snc.cmdb.health.ScoreCalculator.calculateScores(ScoreCalculator.java:143)at com.snc.cmdb.health.ScoreCalculator.calculateScoresSynchronized(ScoreCalculator.java:96)at com.snc.cmdb.health.ScoreManager.processCmdbScoreCalculation(ScoreManager.java:58)at com.snc.cmdb.health.ScoreManager.processScoreCalculation(ScoreManager.java:25)at com.snc.cmdb.health.MetricProcessor.process(MetricProcessor.java:141)... Potentially affected tables: CMDB CI Class Models [sn_cmdb_ci_class] adds these tables (as of v1.13.0): LabelNameExtends tableAircraftcmdb_ci_aircraftTransport TypeAVI Controllercmdb_ci_avi_controllerVirtual Machine ObjectAVI Controller Clustercmdb_ci_avi_controller_clusterVirtual Machine ObjectAVI Service Enginecmdb_ci_avi_service_engineVirtual Machine ObjectUnique Certificatecmdb_ci_certificateConfiguration ItemOpenStack Domaincmdb_ci_cloud_openstack_domainVirtual Machine ObjectOpenStack Endpointcmdb_ci_cloud_openstack_endpointVirtual Machine ObjectOpenStack Servicecmdb_ci_cloud_openstack_serviceVirtual Machine ObjectConverged Infrastructurecmdb_ci_converged_infraHardwareCustom Applicationcmdb_ci_custom_applicationConfiguration ItemDisplay Devicecmdb_ci_displayIoT DeviceDronecmdb_ci_droneIoT DeviceFirewall Clustercmdb_ci_firewall_clusterClusterFortinet Firewall Clustercmdb_ci_firewall_cluster_fortinetFirewall ClusterJuniper Firewall Clustercmdb_ci_firewall_cluster_juniperFirewall ClusterFirewall Devicecmdb_ci_firewall_deviceIP FirewallFortinet Firewall Devicecmdb_ci_firewall_device_fortinetFirewall DeviceFirewall Device Groupcmdb_ci_firewall_device_groupConfiguration ItemJuniper Firewall Devicecmdb_ci_firewall_device_juniperFirewall DevicePalto Alto Firewall Devicecmdb_ci_firewall_device_palo_altoFirewall DeviceFirewall Managercmdb_ci_firewall_managerConfiguration ItemPanorama Firewall Managercmdb_ci_firewall_manager_panoramaFirewall ManagerFirewall Security Policycmdb_ci_firewall_sec_policyConfiguration ItemPanorama Firewall Security Policycmdb_ci_firewall_sec_policy_panoramaFirewall Security PolicyGame Consolecmdb_ci_game_consoleMultimedia DeviceIBM HMC Servercmdb_ci_hmc_serverServerHuman Machine Interfacecmdb_ci_hmiManufacturing DeviceIBM Framecmdb_ci_ibm_frameServerImaging Devicecmdb_ci_imagingIoT DeviceIoT Devicecmdb_ci_iotHardwareIoT Gatewaycmdb_ci_iot_gatewayConverged InfrastructureIP Cameracmdb_ci_ip_cameraImaging DeviceKubernetes Clustercmdb_ci_kubernetes_clusterKubernetes ComponentKubernetes Componentcmdb_ci_kubernetes_componentConfiguration ItemKubernetes Namespacecmdb_ci_kubernetes_namespaceKubernetes ComponentKubernetes Nodecmdb_ci_kubernetes_nodeKubernetes ComponentKubernetes Podcmdb_ci_kubernetes_podKubernetes ComponentKubernetes Servicecmdb_ci_kubernetes_serviceKubernetes ComponentKubernetes Volumecmdb_ci_kubernetes_volumeKubernetes ComponentIBM LPAR Instancecmdb_ci_lpar_instanceVirtual Machine InstanceLPAR Resourcecmdb_ci_lpar_resourceConfiguration ItemCustom Application Configuration Itemcmdb_ci_m2m_custom_application_ci Manufacturing Devicecmdb_ci_manufacturingIoT DeviceMedia Playercmdb_ci_media_playerMultimedia DeviceMedical Devicecmdb_ci_medicalIoT DeviceMedical Diagnostic Devicecmdb_ci_med_diagnosticMedical DeviceMedical Measuring Devicecmdb_ci_med_measuringMedical DeviceMedical Monitoring Devicecmdb_ci_med_monitoringMedical DeviceMedical Support Devicecmdb_ci_med_supportMedical DeviceMedical Therapeutic Devicecmdb_ci_med_theraputicMedical DeviceDisplay Monitor Controlcmdb_ci_monitor_controlMultimedia DeviceMultimedia Devicecmdb_ci_multimediaIoT DeviceNSX Load Balancercmdb_ci_nsx_lbLoad BalancerNutanix Clustercmdb_ci_nutanix_clusterVirtual Machine ObjectNutanix Controller VMcmdb_ci_nutanix_controller_vmApplicationNutanix Hostcmdb_ci_nutanix_hostVirtualization ServerNutanix Prism Centralcmdb_ci_nutanix_prism_centralVirtual Machine ObjectNutanix Storage Containercmdb_ci_nutanix_storage_containerStorage VolumeNutanix Storage Poolcmdb_ci_nutanix_storage_poolStorage PoolNutanix Virtual Machine Instancecmdb_ci_nutanix_vm_instanceVirtual Machine InstancePayment Devicecmdb_ci_paymentIoT DeviceProcess Logic Controllercmdb_ci_plcManufacturing DevicePoint of Sale Devicecmdb_ci_posPayment DeviceIBM HMC Processor poolcmdb_ci_processor_poolVirtual Machine ObjectRHV Clustercmdb_ci_rhv_clusterRHV ObjectRHV LDCcmdb_ci_rhv_ldcLogical DatacenterRHV Managercmdb_ci_rhv_managerApplicationRHV Objectcmdb_ci_rhv_objectVirtual Machine ObjectRHV Servercmdb_ci_rhv_serverVirtualization ServerRHV Virtual Machine Instancecmdb_ci_rhv_vm_instanceVirtual Machine InstanceSingle Board Computingcmdb_ci_sbcIoT DeviceSecurity Devicecmdb_ci_securityIoT DeviceShipcmdb_ci_shipTransport TypeSmart Televisioncmdb_ci_stvDisplay DeviceTraincmdb_ci_trainTransport TypeTransport Typecmdb_ci_transportConfiguration ItemVehiclecmdb_ci_vehicleTransport TypeWearable Technologycmdb_ci_wearableIoT Device Discovery and Service Mapping Patterns [sn_itom_pattern] adds these (as of v1.0.66): LabelNameExtends tableAPIGee EP to get targets host by source urlcmdb_ci_apigee_endpointEndpointApplication Server Resourcecmdb_ci_application_server_resourceApplicationAPIGee Servicecmdb_ci_appl_apigee_srvApplicationJboss Fusecmdb_ci_appl_jboss_fuseApplicationOracle Golden Gatecmdb_ci_appl_oracle_golden_gateApplicationOracle Golden Gate Extract Processcmdb_ci_appl_ora_gg_extractApplicationOracle Golden Gate Replicat Processcmdb_ci_appl_ora_gg_replicatApplicationAWS S3 Endpointcmdb_ci_aws_s3_endpointEndpointColdfusion Applicationcmdb_ci_cf_applicationApplication Server ResourceCloud Authenticationcmdb_ci_cloud_authenticationApplicationAWS Cloud ECS Clustercmdb_ci_cloud_ecs_clusterVirtual Machine ObjectAWS Cloud ECS Servicecmdb_ci_cloud_ecs_serviceVirtual Machine ObjectAWS Cloud ECS Taskcmdb_ci_cloud_ecs_taskVirtual Machine ObjectAWS Cloud ECS TaskDefinitioncmdb_ci_cloud_ecs_task_definitionVirtual Machine ObjectCloud Functioncmdb_ci_cloud_functionApplicationCloud Gatewaycmdb_ci_cloud_gatewayApplicationCloud Key Paircmdb_ci_cloud_key_pairConfiguration ItemCloud Location Groupcmdb_ci_cloud_location_groupVirtual Machine ObjectCloud Object Storagecmdb_ci_cloud_object_storageApplicationIBM Cloud Organizationscmdb_ci_cloud_orgConfiguration ItemCloud Service Accountcmdb_ci_cloud_service_accountVirtual Machine ObjectIBM Cloud Spacecmdb_ci_cloud_spaceConfiguration ItemCluster Resource Groupcmdb_ci_cluster_resource_groupConfiguration ItemColdfusion App Inclusioncmdb_ci_coldfusion_app_inclusionInclusion EndpointColdfusion Servercmdb_ci_coldfusion_serverApplication ServerSecurity Group Rulecmdb_ci_compute_security_group_ruleVirtual Machine ObjectHardware Typecmdb_ci_compute_templateVirtual Machine ObjectInformix Catalogcmdb_ci_db_informix_catalogDatabase InstanceInformix Catalog Inclusioncmdb_ci_db_informix_catalog_inclusionInclusion EndpointInformix Instancecmdb_ci_db_informix_instanceDatabase InstanceDB Instance Sizecmdb_ci_db_instance_sizeDatabase InstanceOracle PDB Instancecmdb_ci_db_ora_pdb_instanceDatabase InstanceCloud Disk Typecmdb_ci_disk_typeVirtual Machine ObjectDocker Containercmdb_ci_docker_containerOperating-system-level Virtualization ContainerDynamoDB Global Tablecmdb_ci_dynamodb_global_tableDatabase InstanceDynamoDB Tablecmdb_ci_dynamodb_tableDatabase InstanceAWS Resource Name Endpointcmdb_ci_endpoint_arnEndpointInformix Server Endpointcmdb_ci_endpoint_informix_serverEndpointGoogle Datacentercmdb_ci_google_datacenterLogical DatacenterIBM Datacentercmdb_ci_ibm_datacenterLogical DatacenterInstance templatecmdb_ci_instance_templateVirtual Machine ObjectCloud Load Balancer Health Servicecmdb_ci_lb_health_serviceVirtual Machine ObjectLoad Balancer Servicecmdb_ci_lb_serviceConfiguration ItemNetwork ACL Rulecmdb_ci_network_acl_ruleVirtual Machine ObjectOpenShift Build Configcmdb_ci_openshift_build_confKubernetes ComponentOpenShift Deployed Configcmdb_ci_openshift_dep_confKubernetes ComponentOpenShift Docker Image Repositorycmdb_ci_openshift_docker_images_repositoryKubernetes ComponentOpenShift Groupcmdb_ci_openshift_groupKubernetes ComponentOpenShift Imagecmdb_ci_openshift_imagesKubernetes ComponentOpenShift Image Streamcmdb_ci_openshift_images_streamKubernetes ComponentOpenShift Projectcmdb_ci_openshift_projectKubernetes ComponentOpenShift Routecmdb_ci_openshift_routeKubernetes ComponentOpenShift Source2Imagecmdb_ci_openshift_source_2_imageKubernetes ComponentOpenShift Usercmdb_ci_openshift_userKubernetes ComponentCloudFoundry Applicationcmdb_ci_pcf_applCloudFoundry ComponentCloudFoundry Componentcmdb_ci_pcf_componentConfiguration ItemCloudFoundry Domaincmdb_ci_pcf_domainCloudFoundry ComponentCloudFoundry Clustercmdb_ci_pcf_foundationCloudFoundry ComponentCloudFoundry Organizationcmdb_ci_pcf_organizationCloudFoundry ComponentCloudFoundry Quotacmdb_ci_pcf_quotaCloudFoundry ComponentCloudFoundry Routecmdb_ci_pcf_routeCloudFoundry ComponentCloud Foundry Servicecmdb_ci_pcf_serviceCloudFoundry ComponentCloud Foundry Service Plancmdb_ci_pcf_service_planCloudFoundry ComponentCloudFoundry Spacecmdb_ci_pcf_spaceCloudFoundry ComponentCloudFoundry Space Service Instancecmdb_ci_pcf_space_instanceCloudFoundry ComponentResource Groupcmdb_ci_resource_groupVirtual Machine ObjectSAP Systemcmdb_ci_sap_sidApplicationPure Storage File Sharecmdb_ci_storage_fileshare_pureStorage File SharePure Storage Processorcmdb_ci_storage_processor_pureConfiguration ItemVirtual Machine Instancecmdb_ci_vm_instanceVirtual Machine ObjectSteps to Reproduce This hasn't so far been reproduced in controlled conditions. Where this has happened, 1 or more tables are affected, but not the same tables in each case.WorkaroundThis problem is currently under review and has no workaround. To receive notifications when more information will become available, subscribe to this Known Error article by clicking the Subscribe button at the top right of this form. If you are able to upgrade, review the Fixed In or Intended Fix Version fields to determine whether any versions have a planned or permanent fix. If the production instance is not affected, then sub-production instances can be fixed by re-cloning over them from production. Each case has been different, and required a fix designed specifically for the tables affected and the instance configuration, and so no generic fix script is available. Please contact Tech Support as soon as you have identified this issue, as help will be needed for a low-level fix.Related Problem: PRB1406482