Git Product home page Git Product logo

Comments (9)

MichaelGrafnetter avatar MichaelGrafnetter commented on August 20, 2024

Hi @CamFlyerCH , could you please send me the stack trace?

$Error[0].Exception.StackTrace

from dsinternals.

CamFlyerCH avatar CamFlyerCH commented on August 20, 2024

Hi @MichaelGrafnetter
Of corse, I forgot to get the full info. Here it is:

at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at DSInternals.Replication.Model.ReplicaObject.LoadLinkedValues(ReplicatedLinkedValueCollection linkedValueCollection)
at DSInternals.Replication.Interop.DrsConnection.ReadObjects(REPLENTINFLIST* objects, Int32 objectCount, __MIDL_drsuapi_0022* linkedValues, Int32 valueCount)
at DSInternals.Replication.Interop.DrsConnection.ReplicateSingleObject(Guid objectGuid, UInt32[] partialAttributeSet)
at DSInternals.Replication.DirectoryReplicationClient.GetAccount(Guid objectGuid)
at DSInternals.PowerShell.Commands.GetADReplAccountCommand.ReturnSingleAccount()
at System.Management.Automation.CommandProcessor.ProcessRecord()

I hope that helps to find the problem.

from dsinternals.

mattdreher avatar mattdreher commented on August 20, 2024

I have a similar issue but I cannot pinpoint what account it is occurring on. It happens when I use the -All syntax of Get-ADReplAccount

$arruserAndHashes = Get-ADReplAccount -All -NamingContext "DC=test,DC=test,DC=net" -Server DC01
Get-ADReplAccount : An item with the same key has already been added.
At line:1 char:21
+ ... AndHashes = Get-ADReplAccount -All -NamingContext "DC=test,DC=test ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Get-ADReplAccount], ArgumentException
    + FullyQualifiedErrorId : System.ArgumentException,DSInternals.PowerShell.Commands.GetADReplAccountCommand

Here is my stack trace hoping it will help:

   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at DSInternals.Replication.Model.ReplicaObject.LoadLinkedValues(ReplicatedLinkedValueCollection linkedValueCollection)
   at DSInternals.Replication.Interop.DrsConnection.ReadObjects(REPLENTINFLIST* objects, Int32 objectCount, __MIDL_drsuapi_0022* linkedValues, Int32 v
alueCount)
   at DSInternals.Replication.Interop.DrsConnection.ReplicateAllObjects(ReplicationCookie cookie, UInt32[] partialAttributeSet, UInt32 maxBytes, UInt3
2 maxObjects)
   at DSInternals.Replication.DirectoryReplicationClient.<GetAccounts>d__10.MoveNext()
   at DSInternals.PowerShell.Commands.GetADReplAccountCommand.ReturnAllAccounts()
   at System.Management.Automation.CommandProcessor.ProcessRecord()

from dsinternals.

MichaelGrafnetter avatar MichaelGrafnetter commented on August 20, 2024

Thank you guys for thorough reports, I will look into it.

from dsinternals.

MichaelGrafnetter avatar MichaelGrafnetter commented on August 20, 2024

@CamFlyerCH @mattdreher I have just released a new version of the module. Could you please test it? Thank you.

from dsinternals.

CamFlyerCH avatar CamFlyerCH commented on August 20, 2024

from dsinternals.

MichaelGrafnetter avatar MichaelGrafnetter commented on August 20, 2024

@CamFlyerCH Great, thanks for testing.

from dsinternals.

mattdreher avatar mattdreher commented on August 20, 2024

@MichaelGrafnetter , I have verified and it is working for me. Thanks for the quick fix.

from dsinternals.

MichaelGrafnetter avatar MichaelGrafnetter commented on August 20, 2024

Thank you, @mattdreher .

from dsinternals.

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.