pnp/PnP

UpdateProperty throwing error

salahsaleh opened this issue · 0 comments

Category

[ ] Bug

Environment

[ ] Office 365 / SharePoint Online

If SharePoint on-premises, what's exact CU version:

Expected or Desired Behavior

Syncing Azure AD to SharePoint Online AD

Observed Behavior

While running program Core.UserProfiles.Sync, 'UpdateProperty' method is throwing error at following line:

 typeof(GraphApi.User).GetProperty(prop.ADAttributeName).GetValue(user)

Error: Object reference not set to an instance of an object

Steps to Reproduce

Provide all required prerequisites and run program. while executing updateProperty method, given error is being thrown.