{"record":{"id":"f02028a18cd60647","repo":"microsoft/semantic-kernel","slug":"plugin-creation-failed-for-pluginname","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/ApiManifestBasedPlugins.cs","lineNumber":169,"sourceCode":"        var manifestLookupDirectory = Path.Combine(Directory.GetCurrentDirectory(), \"..\", \"..\", \"..\", \"Resources\", \"Plugins\", \"ApiManifestPlugins\");\n\n        foreach (var pluginName in pluginNames)\n        {\n            try\n            {\n                KernelPlugin plugin =\n                await kernel.ImportPluginFromApiManifestAsync(\n                    pluginName,\n                    Path.Combine(manifestLookupDirectory, pluginName, \"apimanifest.json\"),\n                    apiManifestPluginParameters)\n                    .ConfigureAwait(false);\n                Console.WriteLine($\">> {pluginName} is created.\");\n#pragma warning restore SKEXP0040\n            }\n            catch (Exception ex)\n            {\n                kernel.LoggerFactory.CreateLogger(\"Plugin Creation\").LogError(ex, \"Plugin creation failed. Message: {0}\", ex.Message);\n                throw new AggregateException($\"Plugin creation failed for {pluginName}\", ex);\n            }\n        }\n    }\n}\n\n/// <summary>\n/// Retrieves a token via the provided delegate and applies it to HTTP requests using the\n/// \"bearer\" authentication scheme.\n/// </summary>\npublic class BearerAuthenticationProviderWithCancellationToken(Func<Task<string>> bearerToken)\n{\n    private readonly Func<Task<string>> _bearerToken = bearerToken;\n\n    /// <summary>\n    /// Applies the token to the provided HTTP request message.\n    /// </summary>\n    /// <param name=\"request\">The HTTP request message.</param>\n    /// <param name=\"cancellationToken\"></param>","sourceCodeStart":151,"sourceCodeEnd":187,"githubUrl":"https://github.com/microsoft/semantic-kernel/blob/c028a0c7dc4f0814cdcbaba9d998f187a41197bf/dotnet/samples/Concepts/Plugins/ApiManifestBasedPlugins.cs#L151-L187","documentation":"Error \"Plugin creation failed for {pluginName}\" thrown in microsoft/semantic-kernel.","triggerScenarios":"Thrown at dotnet/samples/Concepts/Plugins/ApiManifestBasedPlugins.cs:169 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check that the plugin name matches an entry in the API manifest and that the manifest file exists and parses correctly.","Enable detailed logging around plugin creation to see the underlying parse or resolution error for the failing plugin."],"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"}