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 running Migrate-Packages.bat #51

Open
Chris23622131 opened this issue May 2, 2023 · 6 comments
Open

Error when running Migrate-Packages.bat #51

Chris23622131 opened this issue May 2, 2023 · 6 comments

Comments

@Chris23622131
Copy link

This is the first time i am trying this tool. As soon as i run the bat file I get this error.

Get-FormItemProperties : The term 'Get-FormItemProperties' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.

@Zerg00s
Copy link
Owner

Zerg00s commented May 2, 2023

Hi @Chris23622131

Can you download this latest version, please? https://github.com/Zerg00s/FlowPowerAppsMigrator/releases/download/3.8.5/FlowPowerAppsMigrator.zip

I just tried it and it seems to be working.

@Chris23622131
Copy link
Author

Thanks @Zerg00s . I was able to get past that error. Sorry forgot to come and update this issue. I do have one more question regarding the usage of the PowerShell. I am trying to migrate my custom forms from a Commerical tenant to a GCC High tenant. Do you know if this will work for a GCC High. I can connect to the source without a problem but when it tries to connect to the GCC High site is when i am unable to login.

@Zerg00s
Copy link
Owner

Zerg00s commented May 2, 2023

Hi @Chris23622131,

Can you run this experiment please, to pinpoint the issue?

  • Install the legacy PnP PowerShell module: Install-Module SharePointPnPPowerShellOnline
  • Connect to your GCC tenant using this Powershell command:
Connect-PnPOnline https://Target_Tenant.sharepoint.com/sites/target_site -UseWebLogin

Let me know if that works and if not - what the error message is?

@Chris23622131
Copy link
Author

Chris23622131 commented May 2, 2023

Hi @Zerg00s there is no error message just a blank screen pops up when trying to login.

I also tried this as the connection.

Connect-PnPOnline -Url $TARGET_SITE_URL -UseWebLogin -AzureEnvironment USGovernment -ClientId <ID of Client> -Tenant <Tenant Name>

This is the error i get.

Connect-PnPOnline : Parameter set cannot be resolved using the specified named parameters.
At C:\Users\ChristopherFuka\OneDrive - Avian, LLC\Desktop\FlowPowerAppsMigrator\RunAllScripts.ps1:254 char:5
+     Connect-PnPOnline -Url $TARGET_SITE_URL -UseWebLogin -AzureEnviro ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Connect-PnPOnline], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : AmbiguousParameterSet,PnP.PowerShell.Commands.Base.ConnectOnline

@Zerg00s
Copy link
Owner

Zerg00s commented May 3, 2023

Hi @Chris23622131 ,

I've just created a quick Wiki page on a few things to try. Can you have a look at this, please? https://github.com/Zerg00s/FlowPowerAppsMigrator/wiki/How-to-deal-with-the-%22Make-sure-you-have-FULL-CONTROL-at-the-source-site%22-Issue

If you are the lucky one who has SharePoint Tenant Admin role, then you can create a SharePoint-only app and use it for authentication.

@Chris23622131
Copy link
Author

Hi @Zerg00s ,
Thank you so much for all your help. We got it working and it is wonderful. This is making my job so much easier.

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