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

Unable to upload PnP file #523

Open
1 task done
zulujames opened this issue Jan 12, 2022 · 6 comments
Open
1 task done

Unable to upload PnP file #523

zulujames opened this issue Jan 12, 2022 · 6 comments

Comments

@zulujames
Copy link

Category

  • Bug

Describe the bug

Expected or Desired Behavior

Good afternoon.

I appear to be unable to install the PnP file to my Sharepoint online. I receive the following error message:

Invoke-PnPTenantTemplate: '>' is an unexpected token. The expected token is '='. Line 15, position 76.

Observed Behavior

Steps to Reproduce

PS D:\sp-starter-kit> Connect-PnPOnline -Url https://[mytenant].sharepoint.com

Enter your credentials
User: [myusername] (global administrator)
Password for user [myusername]: **************

PS D:\sp-starter-kit> Invoke-PnPTenantTemplate -Path starterkit.pnp
Invoke-PnPTenantTemplate: '>' is an unexpected token. The expected token is '='. Line 15, position 76.
PS D:\sp-starter-kit>

Environment Details (Development & Target environment)

  • Starter kit version: [e.g. v2 for current version]
  • OS: [e.g. Windows 10]
  • Target Environment:[SharePoint Online]
  • Framework: [Node.js v6/v8/v10/v12]
  • PnPPowerShell Version : [e.g 3.9.1905.3]

Thanks for your contribution! Sharing is caring.

@ghost
Copy link

ghost commented Jan 12, 2022

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

@ghost ghost added the Needs: Triage 🔍 label Jan 12, 2022
@eoverfield
Copy link
Collaborator

What version of PnP PowerShell are you using? You might want to consider trying 1.7.0: https://github.com/pnp/sp-starter-kit/blob/master/documentation/common-provision-results.md#error-improper-version-of-pnp-powershell-installed. It is possible as the provisioning engine keeps evolving, the template needs corrections. While we investigate, downgrading to PnP PS 1.7.0 may assist.

@zulujames
Copy link
Author

zulujames commented Jan 13, 2022 via email

@eoverfield
Copy link
Collaborator

I certainly haven't tried that version of PS, it may be worth trying a legacy version and report back findings.

@zulujames
Copy link
Author

Hi,
I have tried using a legacy version of PS this evening (5.1.22000.282) using PnP version 1.7.0 and I am receiving the same error message. I have also tried with some of the other tenant level and site level templates and receive the same error
This is the error code that I receive:

Invoke-PnpTenantTemplate : '>' is an unexpected token. The expected token is '='. Line 15, position 76.
At line:1 char:1

  • Invoke-PnpTenantTemplate starterkit.pnp
  •   + CategoryInfo          : WriteError: (:) [Invoke-PnPTenantTemplate], XmlException
      + FullyQualifiedErrorId : EXCEPTION,PnP.PowerShell.Commands.Provisioning.Tenant.InvokeTenantTemplate
    
    

Thanks

@bcameron1231
Copy link
Collaborator

It is recommended that you use PS 7, with the latest PnP PowerShell.

I just tested using PnP PowerShell 1.7 and PS 5.1.19041.1320, and it deployed successfully without error.

Additionally, I just tested with PnP PowerShell 1.9 and PS 5.1.19041.1320 and it deployed successfully.

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

No branches or pull requests

3 participants