{"record":{"id":"9b5cfab9514cfb85","repo":"microsoft/semantic-kernel","slug":"plugin-creation-failed-for-pluginname-9b5cfa","errorCode":null,"errorMessage":"Plugin creation failed for {pluginName}","messagePattern":"Plugin creation failed for (.+?)","errorType":"exception","errorClass":"AggregateException","httpStatus":null,"severity":"error","filePath":"dotnet/samples/Concepts/Plugins/CopilotAgentBasedPlugins.cs","lineNumber":296,"sourceCode":"\n        foreach (var pluginName in pluginNames)\n        {\n            try\n            {\n#pragma warning disable CA1308 // Normalize strings to uppercase\n                await kernel.ImportPluginFromCopilotAgentPluginAsync(\n                    pluginName,\n                    Path.Combine(manifestLookupDirectory, pluginName, $\"{pluginName[..^6].ToLowerInvariant()}-apiplugin.json\"),\n                    apiManifestPluginParameters)\n                    .ConfigureAwait(false);\n#pragma warning restore CA1308 // Normalize strings to uppercase\n                Console.WriteLine($\">> {pluginName} is created.\");\n#pragma warning restore SKEXP0040\n            }\n            catch (Exception ex)\n            {\n                Console.WriteLine(\"Plugin creation failed. Message: {0}\", ex.Message);\n                throw new AggregateException($\"Plugin creation failed for {pluginName}\", ex);\n            }\n        }\n    }\n}\n","sourceCodeStart":278,"sourceCodeEnd":301,"githubUrl":"https://github.com/microsoft/semantic-kernel/blob/c028a0c7dc4f0814cdcbaba9d998f187a41197bf/dotnet/samples/Concepts/Plugins/CopilotAgentBasedPlugins.cs#L278-L301","documentation":"Error \"Plugin creation failed for {pluginName}\" thrown in microsoft/semantic-kernel.","triggerScenarios":"Thrown at dotnet/samples/Concepts/Plugins/CopilotAgentBasedPlugins.cs:296 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check that the plugin name matches an entry in the Copilot agent manifest and that the manifest file exists and parses correctly.","Inspect the manifest for malformed entries and retry plugin creation after fixing them."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c028a0c7dc4f0814cdcbaba9d998f187a41197bf","analyzedAt":"2026-08-13T13:48:05.040Z","schemaVersion":2},"datasetVersion":"2026-08-13T14:17:21.547Z"}