Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Numerous errors on last command. Also no resulting Excel file. #13

Open
swake457 opened this issue May 3, 2019 · 0 comments
Open

Numerous errors on last command. Also no resulting Excel file. #13

swake457 opened this issue May 3, 2019 · 0 comments

Comments

@swake457
Copy link

swake457 commented May 3, 2019

Getting a lot of errors when running Test-ADFS2AADOnPremRPTrustSet -RPXMLFileDirectory "C:\adfs\apps" The first two commands proceed without error very quickly. The CSV files, folder structure and resulting ZIP file are all created. I ran the script on my ADFS 3.0 server directly.

As a suggestion, this powershell module would benefit from the addition of error handling logic to output to an error log file for easier review later on.

Running the third command, the script essentially repeats these sections over and over as errors:

**The property 'TestName' cannot be found on this object. Verify that the property exists and can be set.
At C:\adfs\ADFSAADMigrationUtils.psm1:779 char:9
+         $result.TestName = $function
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : PropertyNotFound

The property 'ADFSObjectType' cannot be found on this object. Verify that the property exists and can be set.
At C:\adfs\ADFSAADMigrationUtils.psm1:780 char:9
+         $result.ADFSObjectType = "Relying Party"
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : PropertyNotFound

The property 'ADFSObjectIdentifier' cannot be found on this object. Verify that the property exists and can be set.
At C:\adfs\ADFSAADMigrationUtils.psm1:781 char:9
+         $result.ADFSObjectIdentifier = $ADFSRelyingPartyTrust.Name
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : PropertyNotFound

Test-ADFSRPRuleset : Cannot process argument transformation on parameter 'ResultTypeIfUnknownPattern'. Cannot convert
value "Warning" to type "ResultType". Error: "Unable to match the identifier name Warning to a valid enumerator name.
Specify one of the following enumerator names and try again:
Pass, Fail, NotRun"
At C:\adfs\ADFSAADMigrationUtils.psm1:417 char:37
+         -ResultTypeIfUnknownPattern Warning
+                                     ~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Test-ADFSRPRuleset], ParameterBindingArgumentTransformationException
    + FullyQualifiedErrorId : ParameterArgumentTransformationError,Test-ADFSRPRuleset**

Thanks!
I will continue to run some debug on my own as well, though I'm not a power scripter :-) Once I get past these errors I suspect this script will be exactly what I'm looking for!

@swake457 swake457 changed the title There is no exported Excel file Numerous errors on last command. Also no resulting Excel file. May 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant