Zerg00s / FlowPowerAppsMigrator

Converts SharePoint Data sources for the MS Flow and PowerApps to a new tenant of your choice.
MIT License
138 stars 34 forks source link

Error when running Migrate-Packages.bat #51

Open Chris23622131 opened 1 year ago

Chris23622131 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

Hi @Chris23622131,

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

Chris23622131 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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.