Symptoms
After making some changes and tried to deploy the workflow receive the following error.
1 Error(s)
(FMC) Task Error: System.UriFormatException: Invalid URI: The URI is empty.
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at SourceCode.Workflow.Common.Authentication.ADCredentials.AddCredentials(CredentialCache currentCache, NetworkCredential newCredentials, String serverUrl, Boolean useIntegratedCredentials)
at SourceCode.DeploymentTasks.SharePoint.WorkflowIntegration.WorkflowIntegrationTask.UpdateWorkflowIntegration()
at SourceCode.DeploymentTasks.SharePoint.WorkflowIntegration.WorkflowIntegrationTask.Execute()
0 Warnings(s)
Diagnoses
The issue was caused by the environment field for the SharePoint site the package trying to deploy to was blank
Resolution
Updating the value for this field allow the package to deploy successfully.