Replies: 7 comments 14 replies
-
+follow Same issue annoyingly if you manually import then update you get |
Beta Was this translation helpful? Give feedback.
-
We also facing exactly the same issue, When we deploy solution into new production environment. Note: When we deploy the same solution in test environment (sandbox) below error did not occur. [ ' info: bolt.dataverse.client.actions.SolutionImportAction[0]' ] |
Beta Was this translation helpful? Give feedback.
-
same here... :(' |
Beta Was this translation helpful? Give feedback.
-
By the way, I forgot to mention—I believe I've found the solution. Check your environmental variables and set the advanced export variable to false. *Also ensure if you are using DevOps and setting the connection references that you have shared the connection with the SPN if you have a SPN perform the import activitiy |
Beta Was this translation helpful? Give feedback.
-
thank you for reporting. This is going to be fixed in next version of PAC CLI |
Beta Was this translation helpful? Give feedback.
-
We have work around solution here, |
Beta Was this translation helpful? Give feedback.
-
Thank you, i will close this issue here |
Beta Was this translation helpful? Give feedback.
-
We tried to make first import of solution to a new environment using release pipeline and Az DevOps PP Build Tools and got this error even before solution import started. This hinted us that something was wrong with the solution zip file. However when tried to import the solution to an existing environment (where the solution was already earlier imported), this error did not occur.
On debugging, we found that recently something changed in solution export process, for environment variables. If an env variable is defined with a default value is set in Source Environment, the environmentvariablevalues.json file does not have the environmentvariablevalueid attribute, so the JSON looks like following.
{
"environmentvariablevalues": {
"environmentvariablevalue": {
"iscustomizable": "1"
}
}
}
In our source control we found this change first show up on Sept 9 as we exported using PP Build Tools, so previously the same JSON looked like this:
{
"environmentvariablevalues": {
"environmentvariablevalue": {
"@environmentvariablevalueid": "953f8826-85a9-ed11-aacf-000d3a0c29b6",
"iscustomizable": "1"
}
}
}
When i looked into PAC log file, i found the following stack trace, which clearly mentions that exception is arising from trying to parse a blank string as Guid. Using ILSpy, i located "GenerateSchemaNameToValueIdMapping" method in "bolt.dataverse.dll". I shall also report this issue to Microsoft, but i believe if guid of an environmentvariable value is not provide in solution zip package then import process should not try to create a value during import process
2024-09-17 01:49:58.2572 | ERR | bolt.dataverse.client.actions.SolutionImportAction :: Caught Exception in ActionBase of: Unrecognized Guid format.|EXCEPTION: System.FormatException: Unrecognized Guid format.
at System.Guid.GuidResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument, String failureArgumentName, Exception innerException)
at System.Guid.TryParseGuid(String g, GuidStyles flags, GuidResult& result)
at System.Guid..ctor(String g)
at bolt.dataverse.client.actions.SolutionImportAction.GenerateSchemaNameToValueIdMapping(List`1 componentDetails)
at bolt.dataverse.client.actions.SolutionImportAction.Execute(String solutionZipPath, ImportSolutionSettings importSettings)
Beta Was this translation helpful? Give feedback.
All reactions