{"record":{"id":"9e0cdd08643d6114","repo":"SigNoz/signoz","slug":"could-not-create-dashboard-for-slug-s-w","errorCode":null,"errorMessage":"could not create dashboard for slug %s: %w","messagePattern":"could not create dashboard for slug (.+?): %w","errorType":"http","errorClass":null,"httpStatus":500,"severity":"error","filePath":"pkg/query-service/app/integrations/manager.go","lineNumber":441,"sourceCode":"\tcreator valuer.UUID,\n\tintegrationID string,\n\tintegration *IntegrationDetails,\n) error {\n\tbareIntegrationID := strings.TrimPrefix(integrationID, \"builtin-\")\n\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)","sourceCodeStart":423,"sourceCodeEnd":459,"githubUrl":"https://github.com/SigNoz/signoz/blob/5069bf80b08f1f00d7e014eccc09902f9871004f/pkg/query-service/app/integrations/manager.go#L423-L459","documentation":"Error returned by provisionDashboards when the dashboard module's CreateV2 call fails while creating a dashboard defined by an integration (identified by slug). Wraps the CreateV2 error; runs inside the install transaction so install aborts.","triggerScenarios":"Installing an integration whose dashboard definition fails to create — invalid definition payload, dashboard module/DB errors, or duplicate-slug conflicts not covered by the existing-check.","commonSituations":"Version drift between integration definitions and dashboard module schema, DB constraints, or corrupted dashboard JSON in the integration package.","solutions":["Check the wrapped CreateV2 error in logs","Validate dashboard definition schema for that integration version","Clear conflicting partial dashboard rows and retry install","Align integration and query-service versions"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"err := m.provisionDashboards(...)\nif err != nil && strings.Contains(err.Error(), \"could not create dashboard\") { log wrapped CreateV2 error; clean partial state; retry install }","preventionTips":["Keep versions aligned","Validate dashboard definitions in integration packages"],"tags":["integrations","dashboards","provisioning"],"backgroundTag":"provisioning-failed","analyzedSha":"5069bf80b08f1f00d7e014eccc09902f9871004f","analyzedAt":"2026-08-28T06:22:12.824Z","schemaVersion":2},"datasetVersion":"2026-08-28T11:17:15.048Z"}