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 when generating initial mapping #16

Open
smessier1234 opened this issue Feb 18, 2022 · 2 comments
Open

Error when generating initial mapping #16

smessier1234 opened this issue Feb 18, 2022 · 2 comments

Comments

@smessier1234
Copy link

I'm receiving the following error when running the migrator:

ForEach-Object : You cannot call a method on a null-valued expression.
At C:\Users\steven.messier\Downloads\FlowPowerAppsMigrator\GenerateInitialMapping.ps1:16 char:10

  • $lists | ForEach-Object {
  •      ~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [ForEach-Object], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull,Microsoft.PowerShell.Commands.ForEachObjectCommand

I've looked at the PowerShell script and I can't tell what null value it's referencing. I've verified the URLs for the target and source are correct.

@Zerg00s
Copy link
Owner

Zerg00s commented Feb 19, 2022

Hi @smessier1234,

Perhaps, $lists is null because connection to the source SharePoint online site failed.

Can you tell me more about this issue, please?

  • Did you see a login prompt for the source site?
  • Did you see any other errors before you got the error you posted?

I've also just published a new release with some bug fixes. Maybe you can try a new version?

@smessier1234
Copy link
Author

The login prompt pops up and authenticates with my company's SSO. I didn't see any other errors. The issue seems to be with one site since I get farther along in the process if I try entering another source URL. I'm an owner of the source site, so I don't think it would be a permissions issue.

I tried using the latest version you published, but I received the same error about a null-valued expression.

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