Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error parsing EntityName on app screen / PS error in log Current site is not a tenant administration site #57

Open
BordyCCQ opened this issue Jul 7, 2023 · 11 comments

Comments

@BordyCCQ
Copy link

BordyCCQ commented Jul 7, 2023

Bonjour,
Running the app to copy a PowerApp List form from one SPOnline site to another on same tenant. Classic Teams site in french.

I'm getting _Error: An error occurred while parsing EntityName. Line 207, position 168 while running the .bat
image
But looking at the TraceOutput.txt log file, i get
image

Note : Source list and PA form has 200+ fields

Any help welcome!

@Zerg00s
Copy link
Owner

Zerg00s commented Jul 7, 2023

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?

@BordyCCQ
Copy link
Author

BordyCCQ commented Jul 7, 2023

hi @Zerg00s,
Here's the file:

Lists - Copy.log

@Zerg00s
Copy link
Owner

Zerg00s commented Jul 7, 2023

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.

@Zerg00s
Copy link
Owner

Zerg00s commented Jul 7, 2023

@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.

@BordyCCQ
Copy link
Author

BordyCCQ commented Jul 7, 2023

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

@BordyCCQ
Copy link
Author

BordyCCQ commented Jul 7, 2023

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

@Zerg00s
Copy link
Owner

Zerg00s commented Jul 7, 2023

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

@BordyCCQ
Copy link
Author

BordyCCQ commented Jul 7, 2023

... with same line 109 .ps1??

@Zerg00s
Copy link
Owner

Zerg00s commented Jul 7, 2023

yes, with the updated line 109 :)

@BordyCCQ
Copy link
Author

BordyCCQ commented Jul 7, 2023

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!

@Zerg00s
Copy link
Owner

Zerg00s commented Jul 7, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants