pnp / PnP

SharePoint / Office 365 Developer Patterns and Practices - Archived older solutions. Please see https://aka.ms/m365pnp for updated guidance
https://aka.ms/m365pnp
Other
1.9k stars 3.31k forks source link

UpdateProperty throwing error #1829

Open salahsaleh opened 6 years ago

salahsaleh commented 6 years ago

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.