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

Move-Lists.ps1 : You cannot call a method on a null-valued expression. #66

Closed
schullex opened this issue Sep 4, 2023 · 10 comments
Closed

Comments

@schullex
Copy link

schullex commented Sep 4, 2023

When exporting lists following exception occurs:
Exporting lists and libraries...
Hidden fields count:
.......\FlowPowerAppsMigrator\MISC\Move-Lists.ps1 : You cannot call a method on a null-valued
expression.
At C:\Users\stefa\Downloads\FlowPowerAppsMigrator\RunAllScripts.ps1:98 char:5

  • . .\MISC\Move-Lists.ps1 -Path $Path -MigrationType Export -Source ...
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [Move-Lists.ps1], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull,Move-Lists.ps1
@Zerg00s
Copy link
Owner

Zerg00s commented Sep 7, 2023

hi @schullex,

Thank you for creating an issue with the error details. And sorry for the delay. I just published a new release: https://github.com/Zerg00s/FlowPowerAppsMigrator/releases/tag/3.9.6

Would you be able to try it, please? I hope the issue should be resolved in this version.

@smithiu
Copy link

smithiu commented Sep 14, 2023

I am getting the same error as above, even with the newest release.

@Zerg00s
Copy link
Owner

Zerg00s commented Sep 14, 2023

Do you mind sharing your Lists.xml file, please?

@schullex
Copy link
Author

I'm trying to migrate a solution which does not contain a Lists.xml. The migrator pulls the lists directly from the source site.

@Zerg00s
Copy link
Owner

Zerg00s commented Sep 20, 2023

hi @schullex,

The Lists.xml file is generated automatically during the migration process. All SharePoint lists pulled from the source site are saved to the Lists.xml file. If the export process is successful, this file should be located in the same folder with the .bat files:

image

Do you see this file in your Migrator folder?

@lordneeko
Copy link

lordneeko commented Sep 21, 2023

@Zerg00s
I have the same issue as well. Can I send you my lists.xml file privately some how?

C:\Temp\FlowPowerAppsMigrator
Exporting lists and libraries...
Hidden fields count:
C:\Temp\FlowPowerAppsMigrator\MISC\Move-Lists.ps1 : You cannot call a method on a null-valued expression.
At C:\Temp\FlowPowerAppsMigrator\RunAllScripts.ps1:98 char:5
. .\MISC\Move-Lists.ps1 -Path $Path -MigrationType Export -Source ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CategoryInfo : InvalidOperation: (:) [Move-Lists.ps1], RuntimeException
FullyQualifiedErrorId : InvokeMethodOnNull,Move-Lists.ps1

@lordneeko
Copy link

This may help @Zerg00s
I noticed that after the error occured, when I look at the resourceMapping.csv
It doesn't have the "newId" column filled in
image

Might be irrelevant, and Maybe that doesn't happen until later in the script. Just thought I'd point it out.

@Zerg00s
Copy link
Owner

Zerg00s commented Sep 21, 2023

@lordneeko yes, please! Can you send me this XML file via a private message on LinkedIn? https://ca.linkedin.com/in/molodtsovd

Zerg00s added a commit that referenced this issue Sep 22, 2023
@Zerg00s
Copy link
Owner

Zerg00s commented Sep 22, 2023

hi @lordneeko and @smithiu. Thank you for sharing the issue details and the Lists.xml file. I was able to reproduce and fix the issue in the latest release: https://github.com/Zerg00s/FlowPowerAppsMigrator/releases/tag/3.9.7

Would you please be able to check if this version works for you?

@lordneeko
Copy link

Running now. It appears that this issue is fixed.

@Zerg00s Zerg00s closed this as completed Sep 22, 2023
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

4 participants