SparkleXrm icon indicating copy to clipboard operation
SparkleXrm copied to clipboard

Nullable object must have a value error

Open bwmodular opened this issue 2 years ago • 3 comments

Hi, running instrument-plugin-code.bat on an environment which I've not run it against for a long time and I'm getting a 'Nullable object must have a value' error.

spkl v1.0.640 Dynamics 365 online 2022 release wave 1

Here are the logs: Downloading Plugin/Workflow Activity Metadata Searching for classes in 'C:\blah\Plugins\spkl..' Found Plugin Type Registration blah.Plugins.AccountPlugin Found Plugin Type Registration blah.Plugins.Account_CreateTMExtractRecord The application terminated with an error. Nullable object must have a value. at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource) at SparkleXrm.Tasks.DownloadPluginMetadataTask.AddPluginAttributes(OrganizationServiceContext ctx, CodeParser parser, String pluginType) at SparkleXrm.Tasks.DownloadPluginMetadataTask.ExecuteInternal(String filePath, OrganizationServiceContext ctx) at SparkleXrm.Tasks.BaseTask.Execute(String folder) at SparkleXrmTask.Program.RunTask(CommandLineArgs arguments, IOrganizationService service, ITrace trace) at SparkleXrmTask.Program.Run(CommandLineArgs arguments) at SparkleXrmTask.Program.Main(String[] args) Error Code=1

I have run deploy-plugins.bat previously and that works ok.

Any ideas what might be causing this?

I can't see any issue with the plugin/step that it seems to be failing on.

Thanks as ever....

bwmodular avatar Mar 22 '22 12:03 bwmodular