Git Product home page Git Product logo

Comments (11)

Zerg00s avatar Zerg00s commented on August 23, 2024

hi @BordyCCQ,

It must be a new bug in the latest version of my script. I am attempting to remove a couple of site columns from the Lists.xml. And as a result, it might make this XML file invalid. would it be OK if I ask you to share this Lists.xml file with me?

from flowpowerappsmigrator.

BordyCCQ avatar BordyCCQ commented on August 23, 2024

hi @Zerg00s,
Here's the file:

Lists - Copy.log

from flowpowerappsmigrator.

Zerg00s avatar Zerg00s commented on August 23, 2024

Thank you for sharing the XML file!

I am not yet sure how to fix this, but it seems that the issue is related to the & character in the taxonomy term for the UA0226 field:

image

It might be a little tricky to fix safely, but I need to experiment with escaping the & character in the XML.

Another workaround would be to somehow remove the & character from the source data source and then re-run the migrator.

from flowpowerappsmigrator.

Zerg00s avatar Zerg00s commented on August 23, 2024

@BordyCCQ , can you help me test a fix, please?

  • Open the Move-Lists.Ps1 file
  • On the line 109, replace the existing code with the following:
  ((Get-Content -Path Lists.xml -Raw -Encoding UTF8) -replace '<\?xml version="1.0"\?>', '' -replace 'RootSite', 'Web' -replace '(?<=\{[^}]*)\&(?=[^}]*\})', '&amp;') | Set-Content -Path Lists.xml -Encoding UTF8
  • Run the migrator again

If this runs successfully, I will release a new version with a patch.

from flowpowerappsmigrator.

BordyCCQ avatar BordyCCQ commented on August 23, 2024

@Zerg00s: Same error
I'll remove the & and retry with original .ps1

from flowpowerappsmigrator.

BordyCCQ avatar BordyCCQ commented on August 23, 2024

Now working OK!
I can rerun with the & if you want to test a new line 109

from flowpowerappsmigrator.

Zerg00s avatar Zerg00s commented on August 23, 2024

Yes, please! Re-run with the & character in place :)

from flowpowerappsmigrator.

BordyCCQ avatar BordyCCQ commented on August 23, 2024

... with same line 109 .ps1??

from flowpowerappsmigrator.

Zerg00s avatar Zerg00s commented on August 23, 2024

yes, with the updated line 109 :)

from flowpowerappsmigrator.

BordyCCQ avatar BordyCCQ commented on August 23, 2024

I did try the new line 109 with the & in the term set name and It crashed again same place.

I then put back the old line 109 and removed the & in the term set and the App worked OK!

UNTIL...

Still running on a 'fresh' new target SPO site (previous one had copy of list with content type existing - App stopped at CT already error exist).

---- And now stopped: Parent CT ID does not exist
image

I can see in the trace.log that the CT mentionned is an artefact of SP2010, migrated to SPO... Need to clean up the source SPO site before trying again.

I can test a new line 109 next week, with the & term set.
Thx again - tool seems very good!

from flowpowerappsmigrator.

Zerg00s avatar Zerg00s commented on August 23, 2024

I see. Thank you for trying it. I will need to find time to experiment with moving the taxonomy fields. I am not sure it works very well.

from flowpowerappsmigrator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.