{"record":{"id":"cc494365662997fe","repo":"SigNoz/signoz","slug":"could-not-create-integration-dashboard-row-for-slu","errorCode":null,"errorMessage":"could not create integration_dashboard row for slug %s: %w","messagePattern":"could not create integration_dashboard row for slug (.+?): %w","errorType":"http","errorClass":null,"httpStatus":500,"severity":"error","filePath":"pkg/query-service/app/integrations/manager.go","lineNumber":446,"sourceCode":"\tfor _, dd := range integration.Assets.Dashboards {\n\t\tif dd.ID == \"\" {\n\t\t\tcontinue\n\t\t}\n\t\tslug := cloudintegrationtypes.InstalledIntegrationDashboardSlug(bareIntegrationID, dd.ID)\n\n\t\texisting, err := m.installedIntegrationsRepo.getIntegrationDashboardBySlug(ctx, orgID.StringValue(), slug)\n\t\tif err == nil && existing != nil {\n\t\t\tcontinue\n\t\t}\n\n\t\tcreatedDashboard, err := m.dashboardModule.CreateV2(ctx, orgID, createdBy, creator, dashboardtypes.SourceIntegration, dd.Definition)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"could not create dashboard for slug %s: %w\", slug, err)\n\t\t}\n\n\t\trow := cloudintegrationtypes.NewStorableIntegrationDashboard(createdDashboard.ID.StringValue(), cloudintegrationtypes.IntegrationDashboardInstalledIntegrationProvider, slug)\n\t\tif err := m.installedIntegrationsRepo.createIntegrationDashboard(ctx, row); err != nil {\n\t\t\treturn fmt.Errorf(\"could not create integration_dashboard row for slug %s: %w\", slug, err)\n\t\t}\n\t}\n\treturn nil\n}\n\nfunc (m *Manager) deprovisionDashboards(\n\tctx context.Context,\n\torgID valuer.UUID,\n\tintegrationID string,\n) error {\n\tintegrationID = strings.TrimPrefix(integrationID, \"builtin-\")\n\tslugPrefix := cloudintegrationtypes.InstalledIntegrationDashboardSlugPrefix(integrationID)\n\trows, err := m.installedIntegrationsRepo.listIntegrationDashboardsBySlugPrefix(ctx, orgID.StringValue(), slugPrefix)\n\tif err != nil {\n\t\treturn err\n\t}\n\n\tfor _, row := range rows {","sourceCodeStart":428,"sourceCodeEnd":464,"githubUrl":"https://github.com/SigNoz/signoz/blob/5069bf80b08f1f00d7e014eccc09902f9871004f/pkg/query-service/app/integrations/manager.go#L428-L464","documentation":"Error returned by provisionDashboards when createIntegrationDashboard fails to insert the integration_dashboard row linking the newly created dashboard to the integration. Aborts the install transaction.","triggerScenarios":"DB insert failure (constraint violation, connectivity, unique-key conflict on an existing row) after the dashboard was successfully created.","commonSituations":"Leftover integration_dashboard rows from a previous partial install colliding with unique constraints; DB outage mid-install.","solutions":["Check logs for the wrapped DB error","Remove stale integration_dashboard rows for that slug/org, then retry","Verify DB connectivity and constraints","Retry the install (transaction rolls back the created dashboard)"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":"if err := m.installedIntegrationsRepo.createIntegrationDashboard(ctx, row); err != nil { check unique violation; delete stale row; retry once; else abort }","preventionTips":["Clean stale integration_dashboard rows before reinstalling","Idempotency-check prior installs"],"tags":["integrations","dashboards","database"],"backgroundTag":"provisioning-failed","analyzedSha":"5069bf80b08f1f00d7e014eccc09902f9871004f","analyzedAt":"2026-08-28T06:22:12.824Z","schemaVersion":2},"datasetVersion":"2026-08-28T11:17:15.048Z"}