Ask a questionAsk a question
 

AnswerDelete object from Connector space

  • Wednesday, November 25, 2009 4:35 PMlescuder Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,

    I need an agent to create a txt file export.

    I have a provisioning code to connect the objects I want to export and the agent with the export profile.

    My problem is when I have to delete a object from this file. I disconnect the object with: "mventry.ConnectedMAs[MAExtension.Agent].Connectors.DeprovisionAll();

    I get an explicit disconnector but that object is still appearing on the export file.

    Do you know how can I delete this explicit disconnector?

    Thanks and regards,
    Luis

                            "

Answers

  • Wednesday, November 25, 2009 6:11 PMMarkus VilcinskasMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Please see "Understanding Deletions" in ILM for more details on this.
    Your steps are correct; you need to stage a deletion on the object.

    To delete an object in the CS, you need to import the deletion from the CS!

    I assume, you did a full import with an empty file, which doesn't work.
    If you have a file with no data, and you run a full import, the file is considered to be corrupt.

    To confirm your exports, you can use the export file and do a delta (!) import with it.
    This will remove the object from the CS.

    Cheers,
    Markus


    Markus Vilcinskas, Knowledge Engineer, Microsoft Corporation

All Replies

  • Wednesday, November 25, 2009 4:49 PMlescuder Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I have tired with

    Configure the agent with "stage a delete on the object for the next export run"

    After the export (this export creates the txt file but it does not delete the explicit disconnectors) I execute an import (I have read I have to execute an import to confirm the deletion) and after this if I try to execute the export again the file is not created with the objects on the connector space.

    The solution I've found is to delete manually the connector space and after this, I execute a Full Sync and after the sync I can export the objects without explicit disconnectors.


  • Wednesday, November 25, 2009 6:11 PMMarkus VilcinskasMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Please see "Understanding Deletions" in ILM for more details on this.
    Your steps are correct; you need to stage a deletion on the object.

    To delete an object in the CS, you need to import the deletion from the CS!

    I assume, you did a full import with an empty file, which doesn't work.
    If you have a file with no data, and you run a full import, the file is considered to be corrupt.

    To confirm your exports, you can use the export file and do a delta (!) import with it.
    This will remove the object from the CS.

    Cheers,
    Markus


    Markus Vilcinskas, Knowledge Engineer, Microsoft Corporation
  • Thursday, November 26, 2009 11:36 AMlescuder Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Markus,

    Thanks for you answer.

    I've tried with a Delta Import to delete the object and with the next export I can see on the console 1 Delete however the object (Explicit Disconnector) is still on the connector space.

    I have had to do a Full Import and all the connector space has been deleted, I did a Delta Sync later on and the connector has been filled with the connected objects and after an Export to export the correct connected objects to the file.

    Doing the deletion like this can take too many hours if there are thousands of objects on the connector space because I have to delete the whole CS and connect again all the objects.

    Be aware of the agent does not have import rules.

    All the best,
    Luis.