Power Platform Build Tools automate common build and deployment tasks related to Power Platform. This includes synchronization of solution metadata (a.k.a. solutions) between development environments and source control, generating build artifacts, deploying to downstream environments, provisioning/de-provisioning of environments, and the ability to perform static analysis checks against your solution using the PowerApps checker service.
MIT License
198
stars
40
forks
source link
"Invalid URI: The hostname could not be parsed" error with pac pages upload/download #1006
Whe trying to upload a Power Pages site (modelVersion 2), we get the following error (as shown in pac-log.txt)
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
at bolt.module.paportal.PAPortalCommon.AddAttributeByType(Dictionary`2 values, String attributeName, Object attributeValue, XmlNode fieldNode, String entityName, String recordId, String filePath, ILocalizedStrings`1 locale)
at bolt.module.paportal.core.PortalDirectoryParser.JsonEntityToDictionary(Dictionary`2 entityData, XmlNode entitySchemaNode, String entityFileName, String entityFolderPath)
at bolt.module.paportal.core.PortalDirectoryParser.ParseEntitySingleFolder(String entityFolderPath, PortalExportImportMetaData metadata, XmlNode entitySchemaNode)
at bolt.module.paportal.core.PortalDirectoryParser.ParseEntityFolder(PortalExportImportMetaData entityMetadata, XmlNode entityXMLNode)
at bolt.module.paportal.PortalDataImporter.IterateSchema(String rootFolderPath, PortalDeploymentConfigProvider portalDeploymentConfigProvider, PortalDataManifestProvider portalManifestProvider, Guid websiteId, XmlNode xn)
at bolt.module.paportal.PortalDataImporter.<>c__DisplayClass32_0.<IterateSchemaAndUploadData>b__1(XmlNode xn)
at System.Threading.Tasks.Parallel.<>c__DisplayClass42_0`2.<PartitionerForEachWorker>b__1()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object <p0>)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at bolt.module.paportal.PortalDataImporter.IterateSchemaAndUploadData(AuthProfile authProfile, String rootFolderPath)
at bolt.module.paportal.PortalDataImporter.UploadData(AuthProfile authProfile)
To Reproduce
Steps to reproduce the behavior:
run pac command run pac pages upload -env https://ENVIRONMENT.crm6.dynamics.com -p ./Pages/name-of-portal -mv 2 -f
Expected behaviorpac pages upload should not fail. Note: exporting and importing the Power Pages site a Solution works fine.
Describe the bug (note, this issue is also described here: https://github.com/microsoft/powerplatform-build-tools/discussions/971)
Whe trying to upload a Power Pages site (modelVersion 2), we get the following error (as shown in pac-log.txt)
To Reproduce Steps to reproduce the behavior: run pac command
run pac pages upload -env https://ENVIRONMENT.crm6.dynamics.com -p ./Pages/name-of-portal -mv 2 -f
Expected behavior
pac pages upload
should not fail. Note: exporting and importing the Power Pages site a Solution works fine.Additional context: pac cli: Version: 1.33.5+g1621296