WaelHamze / dyn365-ce-vsts-tasks

VSTS Extension for Dynamics 365 Customer Engagement
https://marketplace.visualstudio.com/items?itemName=WaelHamze.xrm-ci-framework-build-tasks
GNU General Public License v3.0
117 stars 56 forks source link

NullReferenceException on Plugin registration #249

Open kazur97 opened 3 years ago

kazur97 commented 3 years ago

Task Version: 12.* Registration Type: Upsert Solution Name: None Mapping File Path: None Assembly Path: From Pipeline Artifacts Connection String: From secret variable

When running the MSCRM Plugin Registration task, it fails with the error "Object reference not set to an instance of an object". No further info is given.

Millberg commented 2 years ago

@kazur97, have you been able to find a solution? I'm struggling with a similar one, but it just gives me a generic error. image

When I run the powershell script stand alone it works great.

Task Version: 12.* Registration Type: Upsert Solution Name: None Mapping File Path: From Pipeline Artifacts Assembly Path: From Pipeline Artifacts Connection String: From secret variable

kazur97 commented 2 years ago

@Millberg, unfortunately not, but haven't worked on it for a while

balatroy commented 2 years ago

@Millberg Could you pls share the mapping file structure? I'm trying to use this but it only updates the assembly but not the new plugin class. SO i guess the mapping file is required here?

Millberg commented 2 years ago

@Millberg Could you pls share the mapping file structure? I'm trying to use this but it only updates the assembly but not the new plugin class. SO i guess the mapping file is required here?

I used the GetPluginRegistration ps script to get the mapping file structure. I highly recommend that method because then you will get the correct id's on the existing steps/images

WaelHamze commented 2 years ago

@kazur97 are you still having an issue with this?

kazur97 commented 1 year ago

@kazur97 are you still having an issue with this?

Just tested it again, still the same error image

Back when I created the issue, I tried this on my local machine and on the build server and it worked just fine