ctag prevent transformation
I have a classic (SharePoint Online) site. I used PnP.powershell 1.11.0 to transform pages to Modern site. In pages, I have pictures and at the end of the url of most of them, it shows me a parameter as ctag:
/sites/****/en-ca/PublishingImages/Pages/****/055697/Apps.png?ctag=220718"
For transforming these pages I encounter error and this tag prevent transformation. Log is as below:
`# Modernization Summary Report
| Date | Duration | Source Page | Target Page Url | Status |
|---|---|---|---|---|
| 2022-07-19 10:00:52 AM | 00:00:16 | /en-ca/Pages/******/055697.aspx | A issue prevented successful transformation |
Warnings during transformation
| Date | Source Page | Operation | Message |
|---|---|---|---|
| 2022-07-19 10:01:08 AM | /en-ca/Pages/******/055697.aspx | Asset Transfer | Asset was not transferred. Asset: /sites/**/en-ca/PublishingImages/Pages//037825/001.png?ctag=210906 |
Errors during transformation
| Date | Source Page | Operation | Message |
|---|---|---|---|
| 2022-07-19 10:01:08 AM | /en-ca/Pages/******/055697.aspx | Web Part Mapping | An error occurred processing functions - Exception has been thrown by the target of an invocation. at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) |
| at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) | |||
| at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) | |||
| at PnP.Framework.Modernization.Functions.BaseFunctionProcessor.ExecuteMethod(Object functionClassInstance, FunctionDefinition functionDefinition, MethodInfo methodInfo) | |||
| at PnP.Framework.Modernization.Functions.FunctionProcessor.ExecutePropertyFunctions(String[] functionsToProcess, WebPart webPartData, WebPartEntity webPart, Property property) | |||
| at PnP.Framework.Modernization.Functions.FunctionProcessor.Process(WebPart& webPartData, WebPartEntity webPart) | |||
| at PnP.Framework.Modernization.Transform.ContentTransformator.Transform(List`1 webParts) | |||
| at PnP.Framework.Modernization.Publishing.PublishingPageTransformator.Transform(PublishingPageTransformationInformation publishingPageTransformationInformation) | |||
| 2022-07-19 10:01:08 AM | /en-ca/Pages/******/055697.aspx | Summary | A critical error occurred - transformation did not complete at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) |
| at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) | |||
| at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) | |||
| at PnP.Framework.Modernization.Functions.BaseFunctionProcessor.ExecuteMethod(Object functionClassInstance, FunctionDefinition functionDefinition, MethodInfo methodInfo) | |||
| at PnP.Framework.Modernization.Functions.FunctionProcessor.ExecutePropertyFunctions(String[] functionsToProcess, WebPart webPartData, WebPartEntity webPart, Property property) | |||
| at PnP.Framework.Modernization.Functions.FunctionProcessor.Process(WebPart& webPartData, WebPartEntity webPart) | |||
| at PnP.Framework.Modernization.Transform.ContentTransformator.Transform(List`1 webParts) | |||
| at PnP.Framework.Modernization.Publishing.PublishingPageTransformator.Transform(PublishingPageTransformationInformation publishingPageTransformationInformation) |
Critical Errors during transformation
2022-07-19 10:01:08 AM - /en-ca/Pages/******/055697.aspx
Exception has been thrown by the target of an invocation. at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at PnP.Framework.Modernization.Functions.BaseFunctionProcessor.ExecuteMethod(Object functionClassInstance, FunctionDefinition functionDefinition, MethodInfo methodInfo) at PnP.Framework.Modernization.Functions.FunctionProcessor.ExecutePropertyFunctions(String[] functionsToProcess, WebPart webPartData, WebPartEntity webPart, Property property) at PnP.Framework.Modernization.Functions.FunctionProcessor.Process(WebPart& webPartData, WebPartEntity webPart) at PnP.Framework.Modernization.Transform.ContentTransformator.Transform(List`1 webParts) at PnP.Framework.Modernization.Publishing.PublishingPageTransformator.Transform(PublishingPageTransformationInformation publishingPageTransformationInformation)
Individual Page details
Transformation Details: /en-ca/Pages/******/055697.aspx
- Report date: 2022-07-19 10:00:52 AM
- Transform duration: 00:00:16
- Transforming from site: https://.sharepoint.com/sites//en-ca
- Cross-Site transfer mode to site: https://***.sharepoint.com/sites/
- Transforming page: /sites//en-ca/Pages//055697.aspx
- Source SharePoint version: Online (16.0.0.22706)
- Mode: Publishing Page Transformation Mode
- An referenced asset was found and copied to: /sites//SiteAssets/SitePages//Apps.png
- An referenced asset was found and copied to: /sites//SiteAssets/SitePages//portal01.png
- An referenced asset was found and copied to: /sites//SiteAssets/SitePages//GearIcon.png
- An referenced asset was found and copied to: /sites//SiteAssets/SitePages//230351_image016.jpg
- An referenced asset was found and copied to: /sites//SiteAssets/SitePages//230351_image018.jpg
- An referenced asset was found and copied to: /sites//SiteAssets/SitePages//230351_image020.jpg
- An referenced asset was found and copied to: /sites//SiteAssets/SitePages//230351_image022.jpg
- An referenced asset was found and copied to: /sites//SiteAssets/SitePages//230351_image024.jpg
- A critical error occurred - transformation did not complete
Page Transformation Settings
| Property | Setting |
|---|---|
| Engine version | 1.10.2.0 |
| Overwrite | True |
| Target Page Name | |
| Target Page Folder | |
| Target Page Folder Overrides Default Folder | False |
| Keep Page Specific Permissions | True |
| Remove Empty Sections And Columns | True |
| Handle Wiki Images And Videos | True |
| Add Table List Image As Image Web Part | True |
| Keep Page Creation Modification Information | True |
| Publish Created Page | True |
| Post As News | False |
| Disable Page Comments | False |
| Skip Url Rewrite | False |
| Skip Default Url Rewrite | False |
| Url Mapping File | |
| Skip Hidden Web Parts | False |
| Term Mapping File | C:\Users*\Documents*\Prod\TermMapping\term_mapping_Prod.csv |
| Skip Term Store Mapping | False |
| Skip User Mapping | False |
| User Mapping File | |
| L D A P Connection String | |
| Skip Telemetry | False |
Transformation Operation Details
| Date | Operation | Actions Performed |
|---|---|---|
| 2022-07-19 10:00:52 AM | Input Validation | Validation checks complete |
| 2022-07-19 10:00:52 AM | SharePoint Connection | Loading client context objects |
| 2022-07-19 10:00:52 AM | SharePoint Connection | Loading target client context object |
| 2022-07-19 10:00:52 AM | Page Creation | Detect if the page is living inside a folder |
| 2022-07-19 10:00:52 AM | Page Creation | The transform page is located in a folder |
| 2022-07-19 10:00:52 AM | Page Creation | In Cross-Site transform mode the original source file name is used |
| 2022-07-19 10:00:52 AM | Page Creation | Just try to load the page in the fastest possible manner, we only want to see if the page exists or not |
| 2022-07-19 10:00:53 AM | Load | Page does not exist in current web |
| 2022-07-19 10:00:53 AM | Page Creation | Checking Page Exists |
| 2022-07-19 10:00:54 AM | Page Creation | Modern page created |
| 2022-07-19 10:00:54 AM | Article page handling | Transforming source page as Article page |
| 2022-07-19 10:00:54 AM | Article page handling | Recognized source page as a Publishing Page - Analyzing web parts and page layouts |
| 2022-07-19 10:00:54 AM | Page Layout Manager | Page uses ******documentlayout as page layout, mapping that will be used is ******documentlayout |
| 2022-07-19 10:00:54 AM | Article page handling | Splitting images and videos from wiki text - as modern text web part does not support embedded images and videos |
| 2022-07-19 10:00:54 AM | Set Page Title | Setting the modern page title: **** |
| 2022-07-19 10:00:54 AM | Article page handling | Preparing content transformation |
| 2022-07-19 10:00:54 AM | Article page handling | Transforming content |
| 2022-07-19 10:00:54 AM | Content Transform | Transforming web parts |
| 2022-07-19 10:00:54 AM | Web Part Mapping | Web Part:'Wiki text' of type 'SharePointPnP.Modernization.WikiTextPart' is being transformed |
| 2022-07-19 10:00:54 AM | Web Part Mapping | Processing selector functions |
| 2022-07-19 10:00:54 AM | Web Part Mapping | Combining mapping data |
| 2022-07-19 10:00:54 AM | Adding Web Parts to Target Page | Added 'Client Side Text Web Part' to target page |
| 2022-07-19 10:00:54 AM | Web Part Mapping | Web Part:'Image in wiki text' of type 'SharePointPnP.Modernization.WikiImagePart' is being transformed |
| 2022-07-19 10:00:54 AM | Web Part Mapping | Processing selector functions |
| 2022-07-19 10:00:55 AM | EsureAssetContextIfRequired | Source Context Switched |
| 2022-07-19 10:00:56 AM | Asset Transfer | Uploading Apps.png |
| 2022-07-19 10:00:56 AM | Asset Transfer | Upload Apps.png complete |
| 2022-07-19 10:00:56 AM | Web Part Mapping | Combining mapping data |
| 2022-07-19 10:00:56 AM | Adding Web Parts to Target Page | Using 'Image' modern web part |
| 2022-07-19 10:00:56 AM | Adding Web Parts to Target Page | Added 'Image' Client Side Web Part to target page |
| 2022-07-19 10:00:56 AM | Web Part Mapping | Web Part:'Wiki text' of type 'SharePointPnP.Modernization.WikiTextPart' is being transformed |
| 2022-07-19 10:00:56 AM | Web Part Mapping | Processing selector functions |
| 2022-07-19 10:00:56 AM | Web Part Mapping | Combining mapping data |
| 2022-07-19 10:00:56 AM | Adding Web Parts to Target Page | Added 'Client Side Text Web Part' to target page |
| 2022-07-19 10:00:56 AM | Web Part Mapping | Web Part:'Image in wiki text' of type 'SharePointPnP.Modernization.WikiImagePart' is being transformed |
| 2022-07-19 10:00:56 AM | Web Part Mapping | Processing selector functions |
| 2022-07-19 10:00:57 AM | EsureAssetContextIfRequired | Source Context Switched |
| 2022-07-19 10:00:57 AM | Asset Transfer | Uploading portal01.png |
| 2022-07-19 10:00:58 AM | Asset Transfer | Upload portal01.png complete |
| 2022-07-19 10:00:58 AM | Web Part Mapping | Combining mapping data |
| 2022-07-19 10:00:58 AM | Adding Web Parts to Target Page | Using 'Image' modern web part |
| 2022-07-19 10:00:58 AM | Adding Web Parts to Target Page | Added 'Image' Client Side Web Part to target page |
| 2022-07-19 10:00:58 AM | Web Part Mapping | Web Part:'Wiki text' of type 'SharePointPnP.Modernization.WikiTextPart' is being transformed |
| 2022-07-19 10:00:58 AM | Web Part Mapping | Processing selector functions |
| 2022-07-19 10:00:58 AM | Web Part Mapping | Combining mapping data |
| 2022-07-19 10:00:58 AM | Adding Web Parts to Target Page | Added 'Client Side Text Web Part' to target page |
| 2022-07-19 10:00:58 AM | Web Part Mapping | Web Part:'Image in wiki text' of type 'SharePointPnP.Modernization.WikiImagePart' is being transformed |
| 2022-07-19 10:00:58 AM | Web Part Mapping | Processing selector functions |
| 2022-07-19 10:00:59 AM | EsureAssetContextIfRequired | Source Context Switched |
| 2022-07-19 10:00:59 AM | Asset Transfer | Uploading GearIcon.png |
| 2022-07-19 10:01:00 AM | Asset Transfer | Upload GearIcon.png complete |
| 2022-07-19 10:01:00 AM | Web Part Mapping | Combining mapping data |
| 2022-07-19 10:01:00 AM | Adding Web Parts to Target Page | Using 'Image' modern web part |
| 2022-07-19 10:01:00 AM | Adding Web Parts to Target Page | Added 'Image' Client Side Web Part to target page |
| 2022-07-19 10:01:00 AM | Web Part Mapping | Web Part:'Wiki text' of type 'SharePointPnP.Modernization.WikiTextPart' is being transformed |
| 2022-07-19 10:01:00 AM | Web Part Mapping | Processing selector functions |
| 2022-07-19 10:01:00 AM | Web Part Mapping | Combining mapping data |
| 2022-07-19 10:01:00 AM | Adding Web Parts to Target Page | Added 'Client Side Text Web Part' to target page |
| 2022-07-19 10:01:00 AM | Web Part Mapping | Web Part:'Image in wiki text' of type 'SharePointPnP.Modernization.WikiImagePart' is being transformed |
| 2022-07-19 10:01:00 AM | Web Part Mapping | Processing selector functions |
| 2022-07-19 10:01:01 AM | EsureAssetContextIfRequired | Source Context Switched |
| 2022-07-19 10:01:01 AM | Asset Transfer | Uploading 230351_image016.jpg |
| 2022-07-19 10:01:01 AM | Asset Transfer | Upload 230351_image016.jpg complete |
| 2022-07-19 10:01:01 AM | Web Part Mapping | Combining mapping data |
| 2022-07-19 10:01:01 AM | Adding Web Parts to Target Page | Using 'Image' modern web part |
| 2022-07-19 10:01:01 AM | Adding Web Parts to Target Page | Added 'Image' Client Side Web Part to target page |
| 2022-07-19 10:01:01 AM | Web Part Mapping | Web Part:'Wiki text' of type 'SharePointPnP.Modernization.WikiTextPart' is being transformed |
| 2022-07-19 10:01:01 AM | Web Part Mapping | Processing selector functions |
| 2022-07-19 10:01:01 AM | Web Part Mapping | Combining mapping data |
| 2022-07-19 10:01:01 AM | Adding Web Parts to Target Page | Added 'Client Side Text Web Part' to target page |
| 2022-07-19 10:01:01 AM | Web Part Mapping | Web Part:'Image in wiki text' of type 'SharePointPnP.Modernization.WikiImagePart' is being transformed |
| 2022-07-19 10:01:01 AM | Web Part Mapping | Processing selector functions |
| 2022-07-19 10:01:02 AM | EsureAssetContextIfRequired | Source Context Switched |
| 2022-07-19 10:01:03 AM | Asset Transfer | Uploading 230351_image018.jpg |
| 2022-07-19 10:01:03 AM | Asset Transfer | Upload 230351_image018.jpg complete |
| 2022-07-19 10:01:03 AM | Web Part Mapping | Combining mapping data |
| 2022-07-19 10:01:03 AM | Adding Web Parts to Target Page | Using 'Image' modern web part |
| 2022-07-19 10:01:03 AM | Adding Web Parts to Target Page | Added 'Image' Client Side Web Part to target page |
| 2022-07-19 10:01:03 AM | Web Part Mapping | Web Part:'Wiki text' of type 'SharePointPnP.Modernization.WikiTextPart' is being transformed |
| 2022-07-19 10:01:03 AM | Web Part Mapping | Processing selector functions |
| 2022-07-19 10:01:03 AM | Web Part Mapping | Combining mapping data |
| 2022-07-19 10:01:03 AM | Adding Web Parts to Target Page | Added 'Client Side Text Web Part' to target page |
| 2022-07-19 10:01:03 AM | Web Part Mapping | Web Part:'Image in wiki text' of type 'SharePointPnP.Modernization.WikiImagePart' is being transformed |
| 2022-07-19 10:01:03 AM | Web Part Mapping | Processing selector functions |
| 2022-07-19 10:01:04 AM | EsureAssetContextIfRequired | Source Context Switched |
| 2022-07-19 10:01:04 AM | Asset Transfer | Uploading 230351_image020.jpg |
| 2022-07-19 10:01:05 AM | Asset Transfer | Upload 230351_image020.jpg complete |
| 2022-07-19 10:01:05 AM | Web Part Mapping | Combining mapping data |
| 2022-07-19 10:01:05 AM | Adding Web Parts to Target Page | Using 'Image' modern web part |
| 2022-07-19 10:01:05 AM | Adding Web Parts to Target Page | Added 'Image' Client Side Web Part to target page |
| 2022-07-19 10:01:05 AM | Web Part Mapping | Web Part:'Wiki text' of type 'SharePointPnP.Modernization.WikiTextPart' is being transformed |
| 2022-07-19 10:01:05 AM | Web Part Mapping | Processing selector functions |
| 2022-07-19 10:01:05 AM | Web Part Mapping | Combining mapping data |
| 2022-07-19 10:01:05 AM | Adding Web Parts to Target Page | Added 'Client Side Text Web Part' to target page |
| 2022-07-19 10:01:05 AM | Web Part Mapping | Web Part:'Image in wiki text' of type 'SharePointPnP.Modernization.WikiImagePart' is being transformed |
| 2022-07-19 10:01:05 AM | Web Part Mapping | Processing selector functions |
| 2022-07-19 10:01:06 AM | EsureAssetContextIfRequired | Source Context Switched |
| 2022-07-19 10:01:06 AM | Asset Transfer | Uploading 230351_image022.jpg |
| 2022-07-19 10:01:06 AM | Asset Transfer | Upload 230351_image022.jpg complete |
| 2022-07-19 10:01:06 AM | Web Part Mapping | Combining mapping data |
| 2022-07-19 10:01:06 AM | Adding Web Parts to Target Page | Using 'Image' modern web part |
| 2022-07-19 10:01:06 AM | Adding Web Parts to Target Page | Added 'Image' Client Side Web Part to target page |
| 2022-07-19 10:01:06 AM | Web Part Mapping | Web Part:'Wiki text' of type 'SharePointPnP.Modernization.WikiTextPart' is being transformed |
| 2022-07-19 10:01:06 AM | Web Part Mapping | Processing selector functions |
| 2022-07-19 10:01:06 AM | Web Part Mapping | Combining mapping data |
| 2022-07-19 10:01:06 AM | Adding Web Parts to Target Page | Added 'Client Side Text Web Part' to target page |
| 2022-07-19 10:01:06 AM | Web Part Mapping | Web Part:'Image in wiki text' of type 'SharePointPnP.Modernization.WikiImagePart' is being transformed |
| 2022-07-19 10:01:06 AM | Web Part Mapping | Processing selector functions |
| 2022-07-19 10:01:07 AM | EsureAssetContextIfRequired | Source Context Switched |
| 2022-07-19 10:01:07 AM | Asset Transfer | Uploading 230351_image024.jpg |
| 2022-07-19 10:01:08 AM | Asset Transfer | Upload 230351_image024.jpg complete |
| 2022-07-19 10:01:08 AM | Web Part Mapping | Combining mapping data |
| 2022-07-19 10:01:08 AM | Adding Web Parts to Target Page | Using 'Image' modern web part |
| 2022-07-19 10:01:08 AM | Adding Web Parts to Target Page | Added 'Image' Client Side Web Part to target page |
| 2022-07-19 10:01:08 AM | Web Part Mapping | Web Part:'Wiki text' of type 'SharePointPnP.Modernization.WikiTextPart' is being transformed |
| 2022-07-19 10:01:08 AM | Web Part Mapping | Processing selector functions |
| 2022-07-19 10:01:08 AM | Web Part Mapping | Combining mapping data |
| 2022-07-19 10:01:08 AM | Adding Web Parts to Target Page | Added 'Client Side Text Web Part' to target page |
| 2022-07-19 10:01:08 AM | Web Part Mapping | Web Part:'Image in wiki text' of type 'SharePointPnP.Modernization.WikiImagePart' is being transformed |
| 2022-07-19 10:01:08 AM | Web Part Mapping | Processing selector functions |
| 2022-07-19 10:01:08 AM | Asset Transfer | Asset was not transferred. Asset: /sites//en-ca/PublishingImages/Pages//037825/aeronet001.png?ctag=210906** |
`
I should mention that I have this issue just in one site and this site is production environment. (I haven't had this issue in UAT environment). Because of this issue the transformation rate decreased from 95% to 60%. When I remove these parameters manually, transformation will be done successfully.
Does anyone have any ideas?
@jansenbe @erwinvanhunen @pkbullock