powershell icon indicating copy to clipboard operation
powershell copied to clipboard

[BUG] Get-PnPPlannerTask : Object reference not set to an instance of an object.

Open jsmartbnl opened this issue 4 years ago • 2 comments

Reporting an Issue or Missing Feature

Get-PnPPlannerTask

Expected behavior

Get-PnPPlannerTask should return tasks in the specified plan.

Actual behavior

Get-PnPPlannerTask : Object reference not set to an instance of an object. At line:1 char:1 image

Steps to reproduce behavior

  1. Connect to PnPOnline with the -Interactive parameter to enable graph API support.
  2. Get a list of plans in a group.
  3. Get a list of tasks in a plan by plan ID.

What is the version of the Cmdlet module you are running?

1.9.0

Which operating system/environment are you running PnP PowerShell on?

  • [X] Windows
  • [ ] Linux
  • [ ] MacOS
  • [ ] Azure Cloud Shell
  • [ ] Azure Functions
  • [ ] Other : please specify

jsmartbnl avatar Feb 02 '22 16:02 jsmartbnl

I can't seem to get to to retrieve tasks by any means - I've tried Group + Plan, PlanID and Bucket. I should note I'm in Office 365 GCC, and do not have a means to test this against a commercial tenant.

jsmartbnl avatar Feb 02 '22 17:02 jsmartbnl

@jsmartbnl - I have tried on a commercial tenant and have no problem. I'll tag the issue as a GCC, but unfortunately, I don't think we have access to such a tenant. I'd recommend you open a support case with Microsoft directly to have confirmation.

image

Closing for now, but feel free to reopen when you have confirmation and we can troubleshoot further.

veronicageek avatar Feb 02 '22 21:02 veronicageek