cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kattesang
Regular Visitor

Azure DevOps for Powerapps

I am trying to implement DevOps pipeline for Power Apps by referring the link. In manual deployment, usually we will export the app and import on another app by updating it. And then we publish it.

 

But when the trigger the pipeline,  I am getting the error as "Cannot bind argument to parameter 'String' because it is an empty string." for the import and export task.

 

Anyone please help me to solve this issue. And want to know how publish will happen.

 

Thanks.

5 REPLIES 5
v-monli-msft
Community Support
Community Support

Hi @kattesang ,

 

What is the full error message when putting tracing on?

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Below is the log of my pipeline.

 

2020-01-10T07:19:57.3457633Z ##[debug]Evaluating condition for step: 'PowerApps Export Solution '
2020-01-10T07:19:57.3458422Z ##[debug]Evaluating: succeeded()
2020-01-10T07:19:57.3458578Z ##[debug]Evaluating succeeded:
2020-01-10T07:19:57.3458823Z ##[debug]=> True
2020-01-10T07:19:57.3459069Z ##[debug]Result: True
2020-01-10T07:19:57.3459318Z ##[section]Starting: PowerApps Export Solution
2020-01-10T07:19:57.3577954Z ==============================================================================
2020-01-10T07:19:57.3578076Z Task : PowerApps Export Solution
2020-01-10T07:19:57.3578147Z Description : PowerApps Export Solution
2020-01-10T07:19:57.3578230Z Version : 0.1.10
2020-01-10T07:19:57.3578295Z Author : Microsoft
2020-01-10T07:19:57.3578385Z Help : [More Info](https://aka.ms/buildtoolsdoc)
2020-01-10T07:19:57.3578476Z ==============================================================================
2020-01-10T07:19:57.3781349Z ##[debug]tf vc resolvePath $\Surveytest /loginType:OAuth /login:.,*** /noprompt
2020-01-10T07:19:57.8187774Z ##[debug]D:\a\8\s
2020-01-10T07:19:58.5995322Z ##[debug]VstsTaskSdk 0.11.0 commit 7ff27a3e0bdd6f7b06690ae5f5b63cb84d0f23f4
2020-01-10T07:19:58.7278205Z ##[debug]Entering D:\a\_tasks\PowerAppsExportSolution_a5d28227-9530-4bb4-af3f-0ec0bf30e418\0.1.10\ExportSolution.ps1.
2020-01-10T07:19:58.7396749Z ##[debug]Loading module from path 'D:\a\_tasks\PowerAppsExportSolution_a5d28227-9530-4bb4-af3f-0ec0bf30e418\0.1.10\PowerApps-SharedFunctions.psm1'.
2020-01-10T07:19:58.7567283Z ##[debug]Exporting function 'Get-ServiceConnection'.
2020-01-10T07:19:58.7568077Z ##[debug]Exporting function 'Get-PSCredentialFromServiceConnection'.
2020-01-10T07:19:58.7568562Z ##[debug]Exporting function 'Get-ServicePrincipalInfoFromServiceConnection'.
2020-01-10T07:19:58.7569003Z ##[debug]Exporting function 'Get-BoolFromString'.
2020-01-10T07:19:58.7569468Z ##[debug]Exporting function 'Get-IntFromString'.
2020-01-10T07:19:58.7625850Z ##[debug]Exporting function 'Get-VstsInputWithDefault'.
2020-01-10T07:19:58.7626737Z ##[debug]Exporting function 'Get-DomainNameFromUrl'.
2020-01-10T07:19:58.7627240Z ##[debug]Exporting function 'Import-PowerAppsToolsPowerShellModule'.
2020-01-10T07:19:58.7640755Z ##[debug]Exporting function 'Get-InstalledNuGetPackageRootPath'.
2020-01-10T07:19:58.7660626Z ##[debug]Exporting function 'Get-OrgInfo'.
2020-01-10T07:19:58.7682253Z ##[debug]Exporting function 'Wait-CrmOperation'.
2020-01-10T07:19:58.7703980Z ##[debug]Exporting function 'Wait-EnvironmentAvailability'.
2020-01-10T07:19:58.7724174Z ##[debug]Exporting function 'Invoke-SolutionPackager'.
2020-01-10T07:19:58.7743508Z ##[debug]Exporting function 'Get-BindingRedirector'.
2020-01-10T07:19:58.7767832Z ##[debug]Importing function 'Get-BindingRedirector'.
2020-01-10T07:19:58.7787505Z ##[debug]Importing function 'Get-BoolFromString'.
2020-01-10T07:19:58.7807717Z ##[debug]Importing function 'Get-DomainNameFromUrl'.
2020-01-10T07:19:58.7829229Z ##[debug]Importing function 'Get-InstalledNuGetPackageRootPath'.
2020-01-10T07:19:58.7850965Z ##[debug]Importing function 'Get-IntFromString'.
2020-01-10T07:19:58.7872021Z ##[debug]Importing function 'Get-OrgInfo'.
2020-01-10T07:19:58.7895529Z ##[debug]Importing function 'Get-PSCredentialFromServiceConnection'.
2020-01-10T07:19:58.7916792Z ##[debug]Importing function 'Get-ServiceConnection'.
2020-01-10T07:19:58.7938731Z ##[debug]Importing function 'Get-ServicePrincipalInfoFromServiceConnection'.
2020-01-10T07:19:58.7961682Z ##[debug]Importing function 'Get-VstsInputWithDefault'.
2020-01-10T07:19:58.7981685Z ##[debug]Importing function 'Import-PowerAppsToolsPowerShellModule'.
2020-01-10T07:19:58.8001351Z ##[debug]Importing function 'Invoke-SolutionPackager'.
2020-01-10T07:19:58.8020932Z ##[debug]Importing function 'Wait-CrmOperation'.
2020-01-10T07:19:58.8042058Z ##[debug]Importing function 'Wait-EnvironmentAvailability'.
2020-01-10T07:19:58.8064701Z ##[debug]Loading module from path 'D:\a\_tasks\PowerAppsExportSolution_a5d28227-9530-4bb4-af3f-0ec0bf30e418\0.1.10\Get-ParameterValue.ps1'.
2020-01-10T07:19:58.9656694Z ##[debug]Dot-sourcing the script file 'D:\a\_tasks\PowerAppsExportSolution_a5d28227-9530-4bb4-af3f-0ec0bf30e418\0.1.10\Get-ParameterValue.ps1'.
2020-01-10T07:19:58.9800899Z ##[debug]POWERAPPSTOOLS_MICROSOFT_XRM_INPROCBINDINGREDIRECT_PS: 'D:\a\_tasks\PowerAppsToolInstaller_70e9ed60-670f-11e9-be16-a150d2ff01e4\0.1.10\ps_modules'
2020-01-10T07:19:58.9821549Z ##[debug]Importing PowerAppsTools PowerShell Module: Microsoft.Xrm.InProcBindingRedirect.PS from: D:\a\_tasks\PowerAppsToolInstaller_70e9ed60-670f-11e9-be16-a150d2ff01e4\0.1.10\ps_modules
2020-01-10T07:19:58.9902041Z ##[debug]Adding D:\a\_tasks\PowerAppsToolInstaller_70e9ed60-670f-11e9-be16-a150d2ff01e4\0.1.10\ps_modules to PSModulePath
2020-01-10T07:19:58.9931682Z ##[debug]PSModPath: C:\Users\VssAdministrator\Documents\WindowsPowerShell\Modules;C:\Modules\azurerm_2.1.0;C:\Modules\azure_2.1.0;C:\Users\packer\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Modules;C:\windows\system32\WindowsPowerShell\v1.0\Modules;C:\Program Files\Microsoft SQL Server\130\Tools\PowerShell\Modules\;D:\a\_tasks\PowerAppsToolInstaller_70e9ed60-670f-11e9-be16-a150d2ff01e4\0.1.10\ps_modules
2020-01-10T07:19:58.9955364Z ##[debug]Loading module from path 'D:\a\_tasks\PowerAppsToolInstaller_70e9ed60-670f-11e9-be16-a150d2ff01e4\0.1.10\ps_modules\Microsoft.Xrm.InProcBindingRedirect.PS\Microsoft.Xrm.InProcBindingRedirect.PS.psd1'.
2020-01-10T07:19:59.0037104Z ##[debug]Loading 'Assembly' from path 'D:\a\_tasks\PowerAppsToolInstaller_70e9ed60-670f-11e9-be16-a150d2ff01e4\0.1.10\ps_modules\Microsoft.Xrm.InProcBindingRedirect.PS\Microsoft.Xrm.InProcBindingRedirect.PS.dll'.
2020-01-10T07:19:59.0074715Z ##[debug]Loading 'Assembly' from path 'D:\a\_tasks\PowerAppsToolInstaller_70e9ed60-670f-11e9-be16-a150d2ff01e4\0.1.10\ps_modules\Microsoft.Xrm.InProcBindingRedirect.PS\Microsoft.Xrm.InProcBindingRedirect.PS.dll'.
2020-01-10T07:19:59.0121160Z ##[debug]Loading module from path 'D:\a\_tasks\PowerAppsToolInstaller_70e9ed60-670f-11e9-be16-a150d2ff01e4\0.1.10\ps_modules\Microsoft.Xrm.InProcBindingRedirect.PS\Microsoft.Xrm.InProcBindingRedirect.PS.dll'.
2020-01-10T07:19:59.0150077Z ##[debug]Exporting cmdlet 'Get-Redirector'.
2020-01-10T07:19:59.0170989Z ##[debug]Importing cmdlet 'Get-Redirector'.
2020-01-10T07:19:59.0295596Z ##[debug]POWERAPPSTOOLS_MICROSOFT_XRM_WEBAPI_POWERSHELL: 'D:\a\_tasks\PowerAppsToolInstaller_70e9ed60-670f-11e9-be16-a150d2ff01e4\0.1.10\ps_modules'
2020-01-10T07:19:59.0315278Z ##[debug]Importing PowerAppsTools PowerShell Module: Microsoft.Xrm.WebApi.PowerShell from: D:\a\_tasks\PowerAppsToolInstaller_70e9ed60-670f-11e9-be16-a150d2ff01e4\0.1.10\ps_modules
2020-01-10T07:19:59.0344656Z ##[debug]Loading module from path 'D:\a\_tasks\PowerAppsToolInstaller_70e9ed60-670f-11e9-be16-a150d2ff01e4\0.1.10\ps_modules\Microsoft.Xrm.WebApi.PowerShell\Microsoft.Xrm.WebApi.PowerShell.psd1'.
2020-01-10T07:19:59.0408393Z ##[debug]Loading 'Assembly' from path 'D:\a\_tasks\PowerAppsToolInstaller_70e9ed60-670f-11e9-be16-a150d2ff01e4\0.1.10\ps_modules\Microsoft.Xrm.WebApi.PowerShell\Microsoft.Xrm.WebApi.PowerShell.dll'.
2020-01-10T07:19:59.0438925Z ##[debug]Loading 'Assembly' from path 'D:\a\_tasks\PowerAppsToolInstaller_70e9ed60-670f-11e9-be16-a150d2ff01e4\0.1.10\ps_modules\Microsoft.Xrm.WebApi.PowerShell\Microsoft.Xrm.WebApi.PowerShell.dll'.
2020-01-10T07:19:59.0475293Z ##[debug]Loading module from path 'D:\a\_tasks\PowerAppsToolInstaller_70e9ed60-670f-11e9-be16-a150d2ff01e4\0.1.10\ps_modules\Microsoft.Xrm.WebApi.PowerShell\Microsoft.Xrm.WebApi.PowerShell.dll'.
2020-01-10T07:19:59.0507242Z ##[debug]Exporting cmdlet 'Export-Solution'.
2020-01-10T07:19:59.0526590Z ##[debug]Exporting cmdlet 'Get-Organizations'.
2020-01-10T07:19:59.0546900Z ##[debug]Exporting cmdlet 'Import-Solution'.
2020-01-10T07:19:59.0565457Z ##[debug]Exporting cmdlet 'Publish-AllCustomizations'.
2020-01-10T07:19:59.0585261Z ##[debug]Exporting cmdlet 'Set-SolutionVersion'.
2020-01-10T07:19:59.0606708Z ##[debug]Exporting cmdlet 'Get-Who'.
2020-01-10T07:19:59.0625989Z ##[debug]Importing cmdlet 'Export-Solution'.
2020-01-10T07:19:59.0645367Z ##[debug]Importing cmdlet 'Get-Organizations'.
2020-01-10T07:19:59.0663259Z ##[debug]Importing cmdlet 'Get-Who'.
2020-01-10T07:19:59.0683187Z ##[debug]Importing cmdlet 'Import-Solution'.
2020-01-10T07:19:59.0701247Z ##[debug]Importing cmdlet 'Publish-AllCustomizations'.
2020-01-10T07:19:59.0719641Z ##[debug]Importing cmdlet 'Set-SolutionVersion'.
2020-01-10T07:19:59.0995128Z ##[debug]INPUT_POWERAPPSENVIRONMENT: '890c9fea-3512-425f-ab52-744c40b63a91'
2020-01-10T07:19:59.1153324Z ##[debug]ENDPOINT_URL_890c9fea-3512-425f-ab52-744c40b63a91: 'https://make.powerapps.com/'
2020-01-10T07:19:59.1181582Z ##[debug]ENDPOINT_AUTH_890c9fea-3512-425f-ab52-744c40b63a91: '********'
2020-01-10T07:19:59.1226759Z ##[debug]ENDPOINT_DATA_890c9fea-3512-425f-ab52-744c40b63a91: '{}'
2020-01-10T07:19:59.2140443Z ##[debug]INPUT_SOLUTIONNAME: 'MyApp'
2020-01-10T07:19:59.2217344Z ##[debug]INPUT_SOLUTIONOUTPUTFILE: 'D:\a\8\s'
2020-01-10T07:19:59.2290888Z ##[debug]INPUT_MANAGED: 'false'
2020-01-10T07:19:59.2427565Z ##[debug]INPUT_EXPORTAUTONUMBERINGSETTINGS: 'false'
2020-01-10T07:19:59.2480585Z ##[debug]INPUT_EXPORTCALENDARSETTINGS: 'false'
2020-01-10T07:19:59.2538288Z ##[debug]INPUT_EXPORTCUSTOMIZATIONSETTINGS: 'false'
2020-01-10T07:19:59.2592652Z ##[debug]INPUT_EXPORTEMAILTRACKINGSETTINGS: 'false'
2020-01-10T07:19:59.2650518Z ##[debug]INPUT_EXPORTGENERALSETTINGS: 'false'
2020-01-10T07:19:59.2704016Z ##[debug]INPUT_EXPORTISVCONFIG: 'false'
2020-01-10T07:19:59.2760355Z ##[debug]INPUT_EXPORTMARKETINGSETTINGS: 'false'
2020-01-10T07:19:59.2817671Z ##[debug]INPUT_EXPORTOUTLOOKSYNCHRONIZATIONSETTINGS: 'false'
2020-01-10T07:19:59.2872086Z ##[debug]INPUT_EXPORTRELATIONSHIPROLES: 'false'
2020-01-10T07:19:59.2926576Z ##[debug]INPUT_EXPORTSALES: 'false'
2020-01-10T07:19:59.6760589Z ##[debug]Leaving D:\a\_tasks\PowerAppsExportSolution_a5d28227-9530-4bb4-af3f-0ec0bf30e418\0.1.10\ExportSolution.ps1.
2020-01-10T07:19:59.6909534Z ##[debug]Caught exception from task script.
2020-01-10T07:19:59.6944756Z ##[debug]Error record:
2020-01-10T07:19:59.7546905Z ##[debug]Export-Solution : Organization cannot be null or empty.
2020-01-10T07:19:59.7560837Z ##[debug]Parameter name: Organization Name
2020-01-10T07:19:59.7575259Z ##[debug]At D:\a\_tasks\PowerAppsExportSolution_a5d28227-9530-4bb4-af3f-0ec0bf30e418\0.1.10\ExportSolution.ps1:32 char:19
2020-01-10T07:19:59.7591077Z ##[debug]+ ... $output = Export-Solution -ApiUrl $EnvironmentURL -Credential $PSCr ...
2020-01-10T07:19:59.7604984Z ##[debug]+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2020-01-10T07:19:59.7619524Z ##[debug] + CategoryInfo : NotSpecified: (:) [Export-Solution], ArgumentNullException
2020-01-10T07:19:59.7635587Z ##[debug] + FullyQualifiedErrorId : System.ArgumentNullException,Microsoft.Xrm.WebApi.PowerShell.ExportSolution
2020-01-10T07:19:59.7651683Z ##[debug]
2020-01-10T07:19:59.7675678Z ##[debug]Script stack trace:
2020-01-10T07:19:59.7715968Z ##[debug]at Invoke-ExportSolution<Process>, D:\a\_tasks\PowerAppsExportSolution_a5d28227-9530-4bb4-af3f-0ec0bf30e418\0.1.10\ExportSolution.ps1: line 32
2020-01-10T07:19:59.7730739Z ##[debug]at <ScriptBlock>, D:\a\_tasks\PowerAppsExportSolution_a5d28227-9530-4bb4-af3f-0ec0bf30e418\0.1.10\ExportSolution.ps1: line 69
2020-01-10T07:19:59.8507082Z ##[debug]at <ScriptBlock>, <No file>: line 1
2020-01-10T07:19:59.8508474Z ##[debug]at <ScriptBlock>, <No file>: line 22
2020-01-10T07:19:59.8567435Z ##[debug]at <ScriptBlock>, <No file>: line 18
2020-01-10T07:19:59.8567763Z ##[debug]at <ScriptBlock>, <No file>: line 1
2020-01-10T07:19:59.8567888Z ##[debug]Exception:
2020-01-10T07:19:59.8568017Z ##[debug]System.ArgumentNullException: Organization cannot be null or empty.
2020-01-10T07:19:59.8728557Z ##[debug]Parameter name: Organization Name
2020-01-10T07:19:59.8800285Z ##[debug] at Microsoft.Xrm.Tooling.Connector.CrmServiceClient.ConnectToCrmWebService(String crmConnectionString)
2020-01-10T07:19:59.8801105Z ##[debug] at Microsoft.Xrm.Tooling.Connector.CrmServiceClient..ctor(String crmConnectionString)
2020-01-10T07:19:59.8801388Z ##[debug] at Microsoft.Xrm.WebApi.PowerShell.BaseCmdletAuth.BeginProcessing()
2020-01-10T07:19:59.8801631Z ##[debug] at System.Management.Automation.Cmdlet.DoBeginProcessing()
2020-01-10T07:19:59.8801856Z ##[debug] at System.Management.Automation.CommandProcessorBase.DoBegin()
2020-01-10T07:19:59.8953242Z ##[error]Organization cannot be null or empty.
Parameter name: Organization Name
2020-01-10T07:19:59.8963683Z ##[debug]Processed: ##vso[task.logissue type=error]Organization cannot be null or empty.%0D%0AParameter name: Organization Name
2020-01-10T07:19:59.8984409Z ##[debug]Processed: ##vso[task.complete result=Failed]
2020-01-10T07:19:59.9410917Z ##[section]Finishing: PowerApps Export Solution

Anonymous
Not applicable

Hi,

@kattesang 

 

It seems that the Export-Solution was not described alright. Can you please provide also the yaml pipeline description?

 

Did you installed also the PowerAppsToolInstaller before running in the pipeline the Export?

 

Gabriel

Hi I am also facing almost the same problem but my export solution step is working.It just runs for 1 hour and later shows pipeline has taken more than 60 mins and fianlly fails.Please help !!!

last few lines as follows:

 

##[debug]BoundParams: ExportOutlookSynchronizationSettings = False
##[debug]BoundParams: ExportRelationshipRoles = False
##[debug]BoundParams: ExportSales = False
VERBOSE: InProcBindingRedirect: 3 - looking to resolve assembly: Microsoft.mshtml, Version=7.0.3300.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a

 

Hi @shantanu123456 ,

 

Can you confirm that the Test Connection task is working fine - how long does it take ?-  before running the Export task?

 

What parameters did you use for Export task? 60minutes for an export is not alright.

 

Gabriel Soare

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (2,600)