Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pac fails with Could not load provider of type 'DLaB.ModelBuilderExtensions.CodeWriterFilterService,DLaB.ModelBuilderExtensions' #396

Closed
skfd opened this issue Apr 6, 2023 · 2 comments
Labels

Comments

@skfd
Copy link
Contributor

skfd commented Apr 6, 2023

Tool and Version
EarlyBoundGenerator V 2.2023.4.6

Describe the bug
Running the pac command from terminal fails with error below.

I am trying to attach the debugger to extension to maybe catch the previous issue i have, but can't figure out how to run pac correctly...

To Reproduce
Steps to reproduce the behavior:

  1. Copy paste pac command from Early Bound Generator v2 log. See below

Output

PS C:\Users\skfd\AppData\Roaming\MscrmTools\XrmToolBox\Plugins\DLaB.EarlyBoundGenerator> PAC modelbuilder build --outdirectory "C:\Users\skfd\Code\CRM\solutions\project\plugin-src\project.Plugins" --settingsTemplateFile "C:\Users\skfd\Code\CRM\solutions\project\plugin-src\project.Plugins\builderSettings.json"
Microsoft PowerPlatform CLI
Version: 1.21.13+g348c5e9

Error: Model generation failed.
System.NotSupportedException: Could not load provider of type 'DLaB.ModelBuilderExtensions.CodeWriterFilterService,DLaB.ModelBuilderExtensions'
   at Microsoft.PowerPlatform.Dataverse.ModelBuilderLib.ServiceFactory.CreateInstance[TIService](TIService defaultServiceInstance, String parameterValue, ModelBuilderInvokeParameters parameters)
   at Microsoft.PowerPlatform.Dataverse.ModelBuilderLib.ServiceProvider.InitializeServices(ModelBuilderInvokeParameters parameters)
   at Microsoft.PowerPlatform.Dataverse.ModelBuilderLib.ProcessModelInvoker.get_ServiceProvider()
   at Microsoft.PowerPlatform.Dataverse.ModelBuilderLib.ProcessModelInvoker.get_IsLiveConnectionRequired()
   at bolt.module.modelbuilder.verbs.ModelBuilderVerb.Execute(IContext context, Command command)
@skfd skfd added the bug label Apr 6, 2023
@daryllabar
Copy link
Owner

I should probably add instructions. You'll need to copy the DLaB. ModelbuilderExtensions.dll and files from the DLaB.EarlyblundGeneratorV2 folder to the PAC directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants