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

PowerPlatformExportSolution task error "You cannot call a method on a null-valued expression." #126

Closed
umerjaved opened this issue Jun 7, 2020 · 1 comment

Comments

@umerjaved
Copy link

Hi,

I have been following the guideline given in the PDF document. I created a build pipeline however it seems to fail on the export solution task with following error, any ideas for fix will be highly appreciated.

##[debug] + CategoryInfo : InvalidOperation: (:) [ExportSolution.ps1], RuntimeException
##[debug] + FullyQualifiedErrorId : InvokeMethodOnNull,ExportSolution.ps1
##[debug]
##[debug]Script stack trace:
##[debug]at , D:\a_tasks\PowerPlatformExportSolution_16f6dae7-e6ef-4629-ae75-7988463cb6a6\0.0.1\ExportSolution.ps1: line 75
##[debug]at , : line 1
##[debug]at , : line 22
##[debug]at , : line 18
##[debug]at , : line 1
##[debug]Exception:
##[debug]System.Management.Automation.RuntimeException: You cannot call a method on a null-valued expression.
##[debug] at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
##[debug] at System.Management.Automation.Interpreter.ActionCallInstruction2.Run(InterpretedFrame frame) ##[debug] at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) ##[debug] at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame) ##[debug] at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame) ##[debug] at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0) ##[debug] at System.Management.Automation.PSScriptCmdlet.RunClause(Action1 clause, Object dollarUnderbar, Object inputToProcess)
##[debug] at System.Management.Automation.PSScriptCmdlet.DoEndProcessing()
##[debug] at System.Management.Automation.CommandProcessorBase.Complete()
##[error]You cannot call a method on a null-valued expression.
##[debug]Processed: ##vso[task.logissue type=error]You cannot call a method on a null-valued expression.
##[debug]Processed: ##vso[task.complete result=Failed]
Finishing: Power Platform Export Solution

@umerjaved
Copy link
Author

Found the issue with export, i missed the task "Power platform tool installer" from the documentation

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

No branches or pull requests

1 participant