You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write-Host"The solution zip file '$secondLevelZipFile' in '$originalParentFolderPath' should contain one folder namely '$nodeNameToCheck'."
372
-
Write-Host"The folders should match the customization.xml file. They are present by default in an exported solution and should not be modified/removed manually."
373
-
Write-Host"Please add the required folder to the solution zip or export the correctsolution again."
374
-
DisplayReferDocumentation
375
-
Write-Host""
376
-
Write-Host"Validation failed: Invalid package structure. Check previous messages for details."-ForegroundColor Red
Write-Host"The solution zip file '$secondLevelZipFile' in '$originalParentFolderPath' should contain one folder namely '$nodeNameToCheck'."
397
-
Write-Host"The folders should match the customization.xml file. They are present by default in an exported solution and should not be modified/removed manually."
398
-
Write-Host"Please add the required folder to the solution zip or export the correct solution again."
399
-
DisplayReferDocumentation
400
-
Write-Host""
401
-
Write-Host"Validation failed: Invalid package structure. Check previous messages for details."-ForegroundColor Red
if ((-not$nodeNameFolder1) -and (-not$nodeNameFolder2)) {
424
-
Write-Host"The solution zip file '$secondLevelZipFile' in '$originalParentFolderPath' should contain folders namely '$folderNameToCheck1, $folderNameToCheck2'."
425
-
Write-Host"The folders should match the customization.xml file. They are present by default in an exported solution and should not be modified/removed manually."
426
-
Write-Host"Please add the required folders to the solution zip or export the correct solution again."
427
-
DisplayReferDocumentation
428
-
Write-Host""
429
-
Write-Host"Validation failed: Invalid package structure. Check previous messages for details."-ForegroundColor Red
430
-
Write-Host""
431
-
RemoveTempFolder $tempFolder
432
-
RemoveTempFolder $tempFolder2
433
-
RemoveTempFolder $tempFolder3
434
-
exit
435
-
} elseif (-not$nodeNameFolder1) {
436
-
Write-Host"The solution zip file '$secondLevelZipFile' in '$originalParentFolderPath' should contain a folder namely '$folderNameToCheck1'."
437
-
Write-Host"The folders should match the customization.xml file. They are present by default in an exported solution and should not be modified/removed manually."
438
-
Write-Host"Please add the required folder to the solution zip or export the correct solution again."
439
-
DisplayReferDocumentation
440
-
Write-Host""
441
-
Write-Host"Validation failed: Invalid package structure. Check previous messages for details."-ForegroundColor Red
442
-
Write-Host""
443
-
RemoveTempFolder $tempFolder
444
-
RemoveTempFolder $tempFolder2
445
-
RemoveTempFolder $tempFolder3
446
-
exit
447
-
} elseif (-not$nodeNameFolder2) {
448
-
Write-Host"The solution zip file '$secondLevelZipFile' in '$originalParentFolderPath' should contain a folder namely '$folderNameToCheck2'."
449
-
Write-Host"The folders should match the customization.xml file. They are present by default in an exported solution and should not be modified/removed manually."
450
-
Write-Host"Please add the required folder to the solution zip or export the correct solution again."
451
-
DisplayReferDocumentation
452
-
Write-Host""
453
-
Write-Host"Validation failed: Invalid package structure. Check previous messages for details."-ForegroundColor Red
Write-Host"The solution zip file '$secondLevelZipFile' in '$originalParentFolderPath' should contain one folder namely '$connectorNodeName."
418
+
Write-Host"The folders should match the customization.xml file. They are present by default in an exported solution and should not be modified/removed manually."
419
+
Write-Host"Please add the required folder to the solution zip or export the correctsolution again."
420
+
DisplayReferDocumentation
421
+
Write-Host""
422
+
Write-Host"Validation failed: Invalid package structure. Check previous messages for details."-ForegroundColor Red
423
+
Write-Host""
424
+
RemoveTempFolder $tempFolder
425
+
RemoveTempFolder $tempFolder2
426
+
RemoveTempFolder $tempFolder3
427
+
exit
428
+
}
429
+
}
463
430
431
+
if ($isWorkflowsFound) {
432
+
# check if the folder name is present with the same name
Write-Host"The solution zip file '$secondLevelZipFile' in '$originalParentFolderPath' should contain '$folderNameMissing'."
438
+
Write-Host"The folders should match the customization.xml file. They are present by default in an exported solution and should not be modified/removed manually."
439
+
Write-Host"Please add the required folder to the solution zip or export the correct solution again."
440
+
DisplayReferDocumentation
441
+
Write-Host""
442
+
Write-Host"Validation failed: Invalid package structure. Check previous messages for details."-ForegroundColor Red
443
+
Write-Host""
444
+
RemoveTempFolder $tempFolder
445
+
RemoveTempFolder $tempFolder2
446
+
RemoveTempFolder $tempFolder3
447
+
exit
448
+
}
449
+
}
450
+
451
+
if ($isPluginFound) {
452
+
# check if the AI plugin related folder names are present with the same name
Write-Host"The solution zip file '$secondLevelZipFile' in '$originalParentFolderPath' should contain '$folderNameMissing"
462
+
Write-Host"The folders should match the customization.xml file. They are present by default in an exported solution and should not be modified/removed manually."
463
+
Write-Host"Please add the required folders to the solution zip or export the correct solution again."
464
+
DisplayReferDocumentation
465
+
Write-Host""
466
+
Write-Host"Validation failed: Invalid package structure. Check previous messages for details."-ForegroundColor Red
467
+
Write-Host""
468
+
RemoveTempFolder $tempFolder
469
+
RemoveTempFolder $tempFolder2
470
+
RemoveTempFolder $tempFolder3
471
+
exit
472
+
}
473
+
}
474
+
}
475
+
if (-not$isConnectorSolutionPresent) {
476
+
Write-Host"Connector solution in '$originalParentFolderPath' is invalid. Connector solution should only contain 'Connector' folder."
477
+
Write-Host"Validate the connector solution has no extra component except 'Connector'. If not so, please remove them from the solution and export again."
478
+
$resultOfValidation=$false
479
+
}
480
+
elseif (-not$isFlowSolutionPresent) {
481
+
Write-Host"Flow solution in '$originalParentFolderPath' is invalid. Flow solution should contain both 'Connector' and 'Workflows' folders."
482
+
Write-Host"Validate the flow solution has both 'Connector' and 'Workflows' components. If not so, please recreate the solution and export again."
Write-Host"Plugin solution in '$originalParentFolderPath' is invalid. Plugin solution should contain 'Connector', 'aiplugins' and 'aipluginoperations' folders."
487
+
Write-Host"Validate the plugin solution has 'Connector', 'aiplugins' and 'aipluginoperations' components. If not so, please recreate the solution and export again."
488
+
$resultOfValidation=$false
489
+
}
464
490
if ($resultOfValidation) {
465
491
Write-Host"Validation successful: The package structure is correct."-ForegroundColor Green
466
492
Write-Host""
@@ -471,6 +497,7 @@ try {
471
497
Write-Host""
472
498
}
473
499
}
500
+
474
501
catch {
475
502
Write-Host"Validation failed: Internal issue while working with current folder as '$parentFolderPath' - error occurred: $($_.Exception.Message)"-ForegroundColor Yellow
0 commit comments