Solution unmarshall error when importing solution with missing dependencies #349
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces changes mainly aimed at improving the error handling in the solution creation process and updating the terraform dependencies. The most significant changes include the addition of the
null
provider in the terraform dependencies, the introduction of more detailed error messages in the solution creation process, and the addition of debugging information in the solution import function.Terraform dependencies update:
.devcontainer/features/acceptance_test_dependencies/main.tf
: Added thenull
provider to the terraform dependencies..devcontainer/features/local_provider_dev/terraform.rc
: Specified the installation path for thenull
provider.Error handling improvements:
internal/powerplatform/services/solution/api_solution.go
: Imported theerrors
package and updated the error handling in theCreateSolution
function to provide more detailed error messages. [1] [2]Model changes:
internal/powerplatform/services/solution/model_solution.go
: Updated theStageSolutionImportResponseDto
struct to include more detailed information about solution validation results and missing dependencies.Debugging information:
internal/powerplatform/services/solution/resource_solution.go
: Added a debug log to print the current working directory in theimportSolution
function.#348