Migration API is not picking up modifiedby/author and version modified

Occasional Contributor

 

The manifest file contains a valid UserId for the author and modifiedby (using the existing UserID from the sitecollection). But the UserID is ignored, marked with a "cannot resolved" warning and the system account is set.
Also the Modified datetime on the versions is set to the Modified value of the last version and not to the Modified value as defined in the xml for that specific version.

Using the API as decribed on SharePoint Import Migration API (CreationMigrationJob:(

Steps to reproduce
This is the manifest file that is used:

 

<SPObjects xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:deployment-manifest-schema">
  <SPObject ObjectType="SPFile" Id="067d0a05-05c4-443d-85b0-c0013b8c301f" ParentId="9c228ca4-844a-46b2-ab64-2b05cfad5315" ParentWebId="7e6a838a-5651-476d-9979-f56ccaa2e6db" ParentWebUrl="/sites/123_003" Url="/Data/VersionTest/KHK Risicomatrix.xls">
    <File Name="VersionTest/KHK Risicomatrix.xls" InitializationVector="jUsfX7pWMWAVxIe8pfkJ9A==" Id="d374b21a-129e-43ff-a9cd-8c0051f0a4fb" Url="/Data/VersionTest/KHK Risicomatrix.xls" ListItemIntId="7" ParentWebId="7e6a838a-5651-476d-9979-f56ccaa2e6db" ParentId="9c228ca4-844a-46b2-ab64-2b05cfad5315" ListId="4b9295dd-32b4-4428-9124-f7d97840d865" Version="5.0" Author="19" ModifiedBy="19" TimeCreated="2007-03-20T12:57:29Z" TimeLastModified="2007-03-20T19:19:32Z">
      <Versions>
        <File Name="VersionTest/KHK Risicomatrix.xls" InitializationVector="WOd+oi5tB+vrSWdrRYwAmA==" Id="6609228e-4756-46a3-b4bc-cb7330ec89b3" Url="/Data/VersionTest/KHK Risicomatrix.xls" ListItemIntId="7" ParentWebId="7e6a838a-5651-476d-9979-f56ccaa2e6db" ParentId="9c228ca4-844a-46b2-ab64-2b05cfad5315" ListId="4b9295dd-32b4-4428-9124-f7d97840d865" FileValue="1336f39a-8a0b-449d-b83a-2010265cedc9\dec711a0-8ce9-4dd4-9277-a28c33c852d3.txt" Author="7" ModifiedBy="7" TimeCreated="2007-01-19T09:26:54Z" TimeLastModified="2007-01-19T09:26:58Z" />
        <File Name="VersionTest/KHK Risicomatrix.xls" InitializationVector="nUpQmPtuTPyu7CXPVFUQig==" Id="5ac9a2e4-1ae0-40c4-ba12-df057738b12f" Url="/Data/VersionTest/KHK Risicomatrix.xls" ListItemIntId="7" ParentWebId="7e6a838a-5651-476d-9979-f56ccaa2e6db" ParentId="9c228ca4-844a-46b2-ab64-2b05cfad5315" ListId="4b9295dd-32b4-4428-9124-f7d97840d865" FileValue="6416c588-be17-42d1-b04a-9b4beb32dcad\9023e027-ad75-4fe3-8560-e72f1e562edf.txt" CheckinComment="" Version="2.0" Author="7" ModifiedBy="7" TimeCreated="2007-01-19T10:02:58Z" TimeLastModified="2007-01-19T14:33:53Z" />
        <File Name="VersionTest/KHK Risicomatrix.xls" InitializationVector="IrDmneHWQeRpKpQ7zHkRTQ==" Id="1963751e-6ac7-48a6-b462-1accd0d2d2a6" Url="/Data/VersionTest/KHK Risicomatrix.xls" ListItemIntId="7" ParentWebId="7e6a838a-5651-476d-9979-f56ccaa2e6db" ParentId="9c228ca4-844a-46b2-ab64-2b05cfad5315" ListId="4b9295dd-32b4-4428-9124-f7d97840d865" FileValue="6bfc9bee-fa27-4f31-a05d-1d5d74d8ede7\69b4d63c-4c5b-4017-960e-894e86105d2f.txt" CheckinComment="" Version="3.0" Author="7" ModifiedBy="7" TimeCreated="2007-01-21T10:10:33Z" TimeLastModified="2007-01-21T11:30:02Z" />
        <File Name="VersionTest/KHK Risicomatrix.xls" InitializationVector="bwef/SncZCPWKL9FHvY10A==" Id="ba670653-a792-4b36-87f2-3fb58c28ffcb" Url="/Data/VersionTest/KHK Risicomatrix.xls" ListItemIntId="7" ParentWebId="7e6a838a-5651-476d-9979-f56ccaa2e6db" ParentId="9c228ca4-844a-46b2-ab64-2b05cfad5315" ListId="4b9295dd-32b4-4428-9124-f7d97840d865" FileValue="25acd875-89ae-469d-9e0a-639214505958\94eafeae-6b6a-4e9a-9b6a-6a0f43476802.txt" CheckinComment="" Version="4.0" Author="19" ModifiedBy="19" TimeCreated="2007-02-05T09:49:53Z" TimeLastModified="2007-02-05T13:25:50Z" />
        <File Name="VersionTest/KHK Risicomatrix.xls" InitializationVector="jUsfX7pWMWAVxIe8pfkJ9A==" Id="d374b21a-129e-43ff-a9cd-8c0051f0a4fb" Url="/Data/VersionTest/KHK Risicomatrix.xls" ListItemIntId="7" ParentWebId="7e6a838a-5651-476d-9979-f56ccaa2e6db" ParentId="9c228ca4-844a-46b2-ab64-2b05cfad5315" ListId="4b9295dd-32b4-4428-9124-f7d97840d865" FileValue="10fe49ed-7000-4198-8882-f0b0ed46e094\257d5cbb-21bd-412d-872a-bc983575c34e.txt" CheckinComment="I" Version="5.0" Author="19" ModifiedBy="19" TimeCreated="2007-03-20T12:57:29Z" TimeLastModified="2007-03-20T19:19:32Z" />
      </Versions>
    </File>
  </SPObject>
  <SPObject ObjectType="SPListItem" Id="6d133814-33c1-46e4-a3c8-4be895ae7732" ParentId="9c228ca4-844a-46b2-ab64-2b05cfad5315" ParentWebId="7e6a838a-5651-476d-9979-f56ccaa2e6db" ParentWebUrl="/sites/123_003" Url="/Data/VersionTest/KHK Risicomatrix.xls">
    <ListItem Name="Data/VersionTest/KHK Risicomatrix.xls" DirName="/VersionTest/" FileUrl="/Data/VersionTest/KHK Risicomatrix.xls" Version="1.0" Id="e44d5441-0726-4b6b-b0ad-27a858e6c2e3" IntId="7" DocId="d374b21a-129e-43ff-a9cd-8c0051f0a4fb" Author="19" ModifiedBy="19" TimeCreated="2007-03-20T12:57:29Z" TimeLastModified="2007-03-20T19:19:32Z" ParentWebId="7e6a838a-5651-476d-9979-f56ccaa2e6db" ParentListId="4b9295dd-32b4-4428-9124-f7d97840d865" ParentFolderId="9c228ca4-844a-46b2-ab64-2b05cfad5315" ModerationStatus="Approved" Order="700">
      <Fields />
    </ListItem>
  </SPObject>

 

[Warning] User or group 19 cannot be resolved.
[Warning] User or group 7 cannot be resolved.

Expected behavior
The author/modified by should be set with the UserId as defined in the XML.
The version modified datetime should be set with value from the Version as defined in the XML

Environment details (development & target environment)
Same result on several different Sharepoint Online environments (EU and US)

See github issue

0 Replies