locked
Error Adding a Custom Resources Property RRS feed

  • Question

  • I'm looking to add a custom property to rooms to indicate whether it has a projector or not.  So I run the following and receive an error...

    $RC=Get-ResourceConfig
    $RC.ResourcePropertySchema.Add("Room/Projector")
    Set-ResourceConfig -ResourcePropertySchema $RC.ResourceProprtySchema

    Set-ResourceConfig : Active Directory operation failed on dc1.mydomain.com.  This error is not retriable.  Additional information: An attempt was made to modify an object to include an attribute that is not legal for its class.
    Active Directory response: 0000207D: UpdErr: DSID-03150F9C, problem 6002 (OBJ_CLASS_VIOLATION), data 0

    Friday, June 10, 2011 4:19 PM

All replies

  • Try

    Set-ResourceConfig -DomainController dc1-Resource.mydomain.com -ResourcePropertySchema Room/Projector

    get-resourceconfig | fl

    Friday, June 10, 2011 7:46 PM
  • No thanks, LMurthy, I'd rather not.  The method you proposed replaces rather than adds.

    Still looking for good help...

    Tony

    Friday, June 10, 2011 9:53 PM
  • On Fri, 10 Jun 2011 16:19:49 +0000, Tony Sperbeck wrote:
     
    >I'm looking to add a custom property to rooms to indicate whether it has a projector or not. So I run the following and receive an error...
    >
    >$RC=Get-ResourceConfig $RC.ResourcePropertySchema.Add("Room/Projector") Set-ResourceConfig -ResourcePropertySchema $RC.ResourceProprtySchema
    >
    >Set-ResourceConfig : Active Directory operation failed on dc1.mydomain.com. This error is not retriable. Additional information: An attempt was made to modify an object to include an attribute that is not legal for its class. Active Directory response: 0000207D: UpdErr: DSID-03150F9C, problem 6002 (OBJ_CLASS_VIOLATION), data 0
     
    Try this:
     
    $RC = get-resourceconfig
    $RC.resourcepropertyschema.add("Room/Projector")
    set-resourceconfig -instance $RC
     
    ---
    Rich Matheisen
    MCSE+I, Exchange MVP
     

    --- Rich Matheisen MCSE+I, Exchange MVP
    Saturday, June 11, 2011 2:58 AM
  • Hi Tony,

     

    If you are using Exchange Server 2007, you can follow Rich’s suggestion to have a try:

     

    Here is related document for you:

     

    Set-ResourceConfig

    http://technet.microsoft.com/en-us/library/aa998861(EXCHG.80).aspx

     

    I tested your command in my lab (Exchange Server 2010 SP1 and Exchange Server 2007 SP3), and didn’t get this error.

     

    ErrorActive Directory operation failed on dc1.mydomain.com.  This error is not retriable.  Additional information: An attempt was made to modify an object to include an attribute that is not legal for its class.

     Active Directory response: 0000207D: UpdErr: DSID-03150F9C, problem 6002 (OBJ_CLASS_VIOLATION), data 0”

     

    I suggest you follow these steps to troubleshoot the problem:

     

    1.       Use Exbpa to do a health check for your Exchange Server.

    2.       Check the event log and paste the related information in your next post.

    3.       I also saw this error may be caused by 3rd party fax software, please make sure you are not using this tool.

     

    Thanks,

     

    Evan


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    Monday, June 13, 2011 7:44 AM
  • Tried that too, but still receive same error.  Ran an ExBPA but no relevant errors found.
    Monday, June 13, 2011 1:12 PM
  • May be try specifying a DC in the code you had after set-resourceconfig

    http://technet.microsoft.com/en-us/library/aa998861(EXCHG.80).aspx

    Monday, June 13, 2011 2:23 PM
  • On Mon, 13 Jun 2011 13:12:57 +0000, Tony Sperbeck wrote:
     
    >Tried that too, but still receive same error. Ran an ExBPA but no relevant errors found.
     
    When you just run get-resourceconfig, what do you see in the
    ResourcePropertySchema column? If, after you run the 1st two lines
    that I suggested, what do you see if you run
    "$rc.ResourcePropertySchema"?
     
    ---
    Rich Matheisen
    MCSE+I, Exchange MVP
     

    --- Rich Matheisen MCSE+I, Exchange MVP
    Monday, June 13, 2011 10:07 PM
  • Hi Tony,

     

    Any updates on this issue,

     

    If the issue persists, please follow Rich’s suggestion to paste the results for get-resourceconfig and $rc.ResourcePropertySchema.

     

    Thanks,

     

    Evan Liu

     

    TechNet Subscriber Support in forum

    If you have any feedback on our support, please contact tngfb@microsoft.com  


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    Wednesday, June 15, 2011 2:40 PM
  • Here you go Rich,

     

    [PS] C:\>get-resourceconfig

    Name                      ResourcePropertySchema
    ----                      ----------------------
    Resource Schema           {}

     

     

    [PS] C:\>$RC=get-resourceconfig
    [PS] C:\>$RC.resourcepropertyschema.add("Room/Projector")
    [PS] C:\>"$rc.ResourcePropertySchema"
    Resource Schema.ResourcePropertySchema

    Friday, June 17, 2011 5:05 PM
  • On Fri, 17 Jun 2011 17:05:27 +0000, Tony Sperbeck wrote:
     
    >
    >
    >Here you go Rich,
    >
    >
    >
    >[PS] C:\>get-resourceconfig
    >
    >Name ResourcePropertySchema ---- ---------------------- Resource Schema {}
    >
    >
    >
    >
    >
    >[PS] C:\>$RC=get-resourceconfig [PS] C:\>$RC.resourcepropertyschema.add("Room/Projector") [PS] C:\>"$rc.ResourcePropertySchema" Resource Schema.ResourcePropertySchema
     
    How about removing the quotes from around the last command?
     
    ---
    Rich Matheisen
    MCSE+I, Exchange MVP
     

    --- Rich Matheisen MCSE+I, Exchange MVP
    Friday, June 17, 2011 9:51 PM
  • Hi Tony,

     

    Maybe you can use this command to have a try:

    Set-ResourceConfig -ResourcePropertySchema ("Room\Flip Chart", "Room\Video conference", "Equipment\Auto", “Room\Projector”)

     

    Included all the custom property to run the command.

     

    smart

    Tuesday, June 21, 2011 1:26 AM
  • Hi all,

    I've tried both methods and am getting the same error as Tony. Did anyone come up with an answer to this one?

    For simplicity's sake I'll drop the appending method and just deal with this command:

    Set-ResourceConfig -DomainController server.mydomain.com -ResourcePropertySchema ("Room/TV", “Room/Projector”, "Room/BluRay", "Room/AppleTV", "Room/Whiteboard", "Room/InteractiveWhiteboard")

    The full error reads

    Active Directory operation failed on server.mydomain.com. This error is not retriable. Additional information: An attempt was made to modify an object to include an attribute that is not legal for its class.
    Active directory response: 0000207D: UpdErr: DSID-0315121C, problem 6002 (OBJ_CLASS_VIOLATION), data 1736738497
        + CategoryInfo          : NotSpecified: (0:Int32) [Set-ResourceConfig], ADOperationException
        + FullyQualifiedErrorId : A68F7FF5,Microsoft.Exchange.Management.SystemConfigurationTasks.SetResourceConfig

    The schema master is in the root domain and the Exchange servers are sitting in a child domain. I've run this command from both domains but have got the same result either way.

    Any one make any progres on this one?


    • Edited by Mick Faber Wednesday, June 6, 2012 6:50 AM Added bold to output text
    Wednesday, June 6, 2012 6:48 AM
  • Just replied to you on my website (you posted a comment with a link here) but just noticed something in your command too.  You appear to have quotes that are not normal which I have seen cause problems before when I have cut/paste commands from websites.  If you look at your command the quotes are curly around the projector command and straight around the TV command.  Try manually removing the quotes and typing them in to the powershell window instead.  It may be a red herring, but I have seen weird errors simply because of the type of quotes I cut/paste because a quote is not always a quote when you cut/paste depending on the formatting used! 

    "Room/TV", “Room/Projector”

    As mentioned in my reply to you on the website, also try just one property whilst manually typing in the quotes around the property whilst in the powershell window and see if a single property works.  This rules out command error.



    • Edited by Douggly Wednesday, June 6, 2012 8:58 AM
    Wednesday, June 6, 2012 8:57 AM
  • Thanks for the quick response Exchange D

    Well picked up, but unfortunately not the solution. I typed it directly into Exchange this time, but no change:

    Set-ResourceConfig -DomainController server.mydomain.com -ResourcePropertySchema ("Room/TV")

    Returns the same result:

    Active Directory operation failed on server.mydomain.com. This error is not retriable. Additional information: An attempt was made to modify an object to include an attribute that is not legal for its class.
    Active directory response: 0000207D: UpdErr: DSID-0315121C, problem 6002 (OBJ_CLASS_VIOLATION), data 1736738497
        + CategoryInfo          : NotSpecified: (0:Int32) [Set-ResourceConfig], ADOperationException
        + FullyQualifiedErrorId : CC249144,Microsoft.Exchange.Management.SystemConfigurationTasks.SetResourceConfig

    Using the append method,

    $RC=get-resourceconfig
    $RC.resourcepropertyschema.add("Room/Projector")
    $RC.ResourcePropertySchema

    This command returns the ResourceConfig with the Room/Projectore appended OK, so the issue occurs when committing the change with the set-resourceconfig command

    We have a third party fax solution in our Exchange environment called MessageManager. NOt sure if that is implicated in this or not. Just throwing it out there in response to Evan Liu's comments above.

    Still searching and thanks in advance....

    Mick

    Wednesday, June 6, 2012 11:40 AM