How to fix exported-change-not-reimported RRS feed

  • Question

  • Hello!

    I just want to say that I'm very new to MIM so this is very basic.

    Assume we have a user with userid nihu01 and his homedir is the same

    My main task is to check if the Person has an enddate and then move his original homedirectory to c://archive/
    So we get for user Nisse Hult move c://MyHomeDir/nihu01 to c://archive/nihu01

    There is one attribute that I don't know how to fix and that is enddate for a person.
    This attribute is in connector space for target system so I export so I can access it in  
    public void ExportEntry(ModificationType modificationType, string[] changedAttributes, CSEntry csentry) {...}

    which work but when I then need to validate the export I get
    exported-change-not-reimported because the connector space does not contain enddate.

    I can see in ExportEntry that I have a value here csentry["enddate"].Value 

    When I run the import for target system I don't have access to the enddate attribute.

    When I run profile Import to validate the export a new instance of this class is being created

    public class MACallExport : IMAExtensibleFileImport, IMAExtensibleCallExport 

    so I can't save the enddate anywhere.

    When I validate the export this method is called.
    public void GenerateImportFile(
                string filename,
                string connectTo,
                string user,
                string password,
                ConfigParameterCollection configParameters,
                bool fullImport,
                TypeDescriptionCollection types,
                ref string customData)

    So can somebody help me with this.

    I assume that the way is I'm trying is the wrong way to do this.


    • Edited by TojoTojo Thursday, August 16, 2018 9:04 AM
    Thursday, August 16, 2018 8:05 AM

All replies

  • Hi,

    the only way to fix this is to "exactly" import the values you exported.

    MIM validates the last exported values on every import after an export (confirming import)


    Peter Stapf - ExpertCircle GmbH - My blog:

    Thursday, August 16, 2018 8:59 AM
  • As I mentioned what is the best way to move my homedir to archive if current date >= enddate.
    It feels like my way to do this is wrong. How would you do this.


    Thursday, August 16, 2018 9:14 AM