Giter VIP home page Giter VIP logo

Comments (8)

bdesmond avatar bdesmond commented on September 1, 2024 1

I just checked in a fix to the typo you found. Let me know if that helps.

from mimpowershellconnectors.

jkovach82 avatar jkovach82 commented on September 1, 2024

Finally got the schema to load. I turned on detailed logging and noticed there was an error in the schema script. The whole script must be parsed and loaded into memory before execution can occur.

Runtime exception occurred System.Management.Automation.ParseException: At C:\Windows\TEMP\mbgwd3ci.ps1:2 char:55

  • [Syste

and

Runtime exception occurred System.Management.Automation.ParseException: At C:\Windows\TEMP\otpqui3o.ps1:2 char:106

  • ... o

Since there were two different errors I was sure it was that param function however was unsure of the proper syntax. Since the xADSyncPSConnectorModule.psm1 seemed to load without errors I looked to see if there was another example of what the syntax should be and found it should look like this:

param(
[System.Collections.ObjectModel.KeyedCollection[[string], [Microsoft.MetadirectoryServices.ConfigParameter]]]
$ConfigurationParameters
,
[PSCredential]
$PSCredential
)

from mimpowershellconnectors.

jkovach82 avatar jkovach82 commented on September 1, 2024

Fixed a few more syntax errors in the Import script but still cannot create the new management agent. I get all the way to the last screen and the get an error. This is what is displayed in the Application log:

The server encountered an unexpected error while performing an operation for the client.

"BAIL: MMS(8780): ..\cdext.cpp(416): 0x80070057 (The parameter is incorrect.)
BAIL: MMS(8780): ..\xstack.cpp(405): 0x80070057 (The parameter is incorrect.)
BAIL: MMS(8780): ..\xparse.cpp(436): 0x80070057 (The parameter is incorrect.)
BAIL: MMS(8780): ..\schema.cpp(1619): 0x80230914 (E_MMS_SCHEMA_CLASS_NOT_FOUND)
BAIL: MMS(8780): ..\compmap.cpp(155): 0x80230914 (E_MMS_SCHEMA_CLASS_NOT_FOUND)
BAIL: MMS(8780): ..\compmap.cpp(453): 0x80230914 (E_MMS_SCHEMA_CLASS_NOT_FOUND)
BAIL: MMS(8780): ..\xsimple.cpp(842): 0x80230914 (E_MMS_SCHEMA_CLASS_NOT_FOUND)
BAIL: MMS(8780): ..\xstack.cpp(540): 0x80230914 (E_MMS_SCHEMA_CLASS_NOT_FOUND)
BAIL: MMS(8780): ..\xparse.cpp(544): 0x80230914 (E_MMS_SCHEMA_CLASS_NOT_FOUND)
BAIL: MMS(8780): ..\xsimple.cpp(334): 0x80230914 (E_MMS_SCHEMA_CLASS_NOT_FOUND)
BAIL: MMS(8780): ..\compmap.cpp(344): 0x80230914 (E_MMS_SCHEMA_CLASS_NOT_FOUND)
BAIL: MMS(8780): ..\mastate.cpp(10654): 0x80230914 (E_MMS_SCHEMA_CLASS_NOT_FOUND)
ERR_: MMS(8780): ..\mastate.cpp(13153): Error creating MA component mappings object: 0x80230914
BAIL: MMS(8780): ..\mastate.cpp(13173): 0x80230914 (E_MMS_SCHEMA_CLASS_NOT_FOUND)
BAIL: MMS(8780): ..\mastate.cpp(1724): 0x80230914 (E_MMS_SCHEMA_CLASS_NOT_FOUND)
BAIL: MMS(8780): ..\server.cpp(1078): 0x80230914 (E_MMS_SCHEMA_CLASS_NOT_FOUND)
Forefront Identity Manager 4.3.2195.0"

from mimpowershellconnectors.

jkovach82 avatar jkovach82 commented on September 1, 2024

Fixed my own issue here... appears that the PowerShell 4.3.1082.0 is missing the Global Parameters section at the bottom of the list: File name, Delimeter and Encoding. I installed the 1.1.117.0 version and now I have my new connector!

from mimpowershellconnectors.

jkovach82 avatar jkovach82 commented on September 1, 2024

Another thing I just noticed is that the SampleInputFile.txt must have at least 2 rows, the header and another sample row under that for the schema to import.

from mimpowershellconnectors.

alvaradojl avatar alvaradojl commented on September 1, 2024

Any updates on this issue? I'm still having the same problem!

from mimpowershellconnectors.

steffied avatar steffied commented on September 1, 2024

Fixed by adjusting the schema as suggested! Thanks
param(
[System.Collections.ObjectModel.KeyedCollection[[string], [Microsoft.MetadirectoryServices.ConfigParameter]]]
$ConfigurationParameters,
[PSCredential]
$PSCredential
)

from mimpowershellconnectors.

NileshGhodekar avatar NileshGhodekar commented on September 1, 2024

closing as the updated script with typo fixed was checked in by Brian.

from mimpowershellconnectors.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.