question

SteveKennedy-2158 avatar image
0 Votes"
SteveKennedy-2158 asked JoyZ commented

XML code no longer working in SharePoint

I have a SharePoint that displays data from the parent site in a sub-site. I used SharePoint Designer to set up the web parts that I needed. (see http://sharepointontop.blogspot.com/2012/06/show-listview-webpart-from-parent-site.html ) These sites use the classic template for SharePoint. The sites worked fine until my organisation migrated to a new O365 tenancy. The parent site was migrated without loss of data and all links on the page worked. However, the sub-site home page was bare. None of the data and the page formatting was migrated.

I thought, no problem. I could recreate the subsite, but I fell at the first hurdle. When I tried to set up the first web part and import the appropriate list (as per the above process), I got an error message:
77927-capture2.jpg

I looked at the XML file and there were indeed errors in the file, at least as far as the validation tools I used were concerned. What I don't understand is that the XML code should not have changed as the SharePoint data on which the webpart file is based did not change with the migration, apart from the URL for the site. Did the migration change something that I cannot see in the file? I did not save the XML code from before the migration, so have nothing to compare it with.

Can anyone explain what might have gone wrong and if there is a solution to my dilemma? 


office-sharepoint-online
capture2.jpg (31.5 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JoyZ avatar image
0 Votes"
JoyZ answered

Hi @SteveKennedy-2158,

I could reproduce this issue, however I am unable to find a workaround for it.
78191-image.png
I am a bit regretful that I wasn’t able to help you much on this.

In this case, I would propose a new support ticket to be raised to have a dedicated Technical Professional to support you from there. The contact number for your region could be easily found from below website, you can simply refer to the Customer Service Representative and he/she will be glad to help you with creating a new ticket.

https://support.microsoft.com/en-us/topic/global-customer-service-phone-numbers-c0389ade-5640-e588-8b0e-28de8afeb3f2


If an Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



image.png (7.8 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

trevorseward avatar image
0 Votes"
trevorseward answered JoyZ commented

This is may due to the deprecation and removal of the DataFormWebPart as part of MC242207.

Message Summary
To enhance data integrity and improve the overall reliability of the service, we are retiring support for external XSLT file references for the DataFormWebParts and its sub-classes (e.g. XsltListFormWebPart, XsltListViewWebPart).

This retirement affects only classic SharePoint pages.

Key points

Timing: mid-March
Roll-out: tenant level
Action: review and assess before March 15, 2021
How this affects your organization

Support for external XSLT files references in the DataFormsWebPart and its subclasses will no longer be available after March 14, 2021.

After March 14, 2021, the DataFormsWebPart will be unable to perform functions that rely on external XSLT code.
If you are currently using a DataFormWebPart that references external XSLT code, you will need to modify the reference to an internal XSLT file located in the site’s asset library instead.
Potential scenarios for using the DataFormWebParts on classic SharePoint pages:

DataFormWebParts have been created via SharePoint Designer and include XSLT code
DataFormWebParts have been created and customized in the browser or via PowerShell to include XSLT code
What you need to do to prepare

Conduct an audit of DataFormWebParts for all classic SharePoint pages that may exist in your tenant. If you discover external XSLT references, remove them.

To retain the same functionality as before, use one of two methods:

Copy the external XSLT files to the asset library of the same site on which the DataFormWebParts are hosted. Then reference the XSLT files from there instead.
Consider using a modern solution such as JSLink for classic SharePoint pages, and SPFx or custom formatters for SharePoint modern pages and lists.

· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @SteveKennedy-2158,

Thanks Trevor for sharing.

Please refer to Trevor's answer.

0 Votes 0 ·

Hi @SteveKennedy-2158,

Do you have any progress on this issue?

Please remember to update this thread if you need further assistance.

0 Votes 0 ·

Thank you for the proposed solutions to my problem. I have decided not to try to update my SharePoint site as the organisation is going in a different direction which will render my site unnecessary.

Steve

0 Votes 0 ·
JoyZ avatar image JoyZ SteveKennedy-2158 ·

Hi @SteveKennedy-2158,

Thank you for your update.

If you feel a answer works for you, please kindly accept it as answer.

It will be beneficial to other community members reading this thread.

Thank you for your understanding.

0 Votes 0 ·