web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Error adding an Address to Employee - Object reference not set to an instance of an object

(0) ShareShare
ReportReport
Posted on by 252

Hello All 

We are getting this error when clicking the 'Add' button to add an address to an employee: "Object reference not set to an instance of an object."

pastedimage1607359031062v1.png

We have successfully imported the addresses with the employee details via Excel, however these are not showing on a employee's profile in the interface.  

Thank you in advance. 

I have the same question (0)
  • Suggested answer
    Parag Chapre Profile Picture
    12,254 Most Valuable Professional on at

    Hi Lindsay,

    This is something strange issue.

    Did you try with which System Admin?  Is it working?

    Can you please put some screenshots?

    If it is not working with the Sys Admin role and You should contact with MS support team.

  • André Arnaud de Calavon Profile Picture
    300,928 Super User 2025 Season 2 on at

    Hi Lindsay,

    Can you tell which exact data entity was used and what columns were provided in the source file?

  • LindsayH Profile Picture
    252 on at

    When we imported the employee data (via Excel) with addresses, (template 'HcmImportPersonnelManagementEmployees') the address data was added to 'WorkerPostalAddress' and 'WorkerPostalAddressV2' entities. If I export these to tables into Excel I can see the data and it is linked to a personnel number. However, the address details do not show in the Address section on an Employees record and I cannot add a one manually as I get the above error.

    Perhaps something in the setup is missing but it is unclear what.

  • LindsayH Profile Picture
    252 on at

    Yes, our user has System Admin Role

  • Suggested answer
    Parag Chapre Profile Picture
    12,254 Most Valuable Professional on at

    Hi Lindsay,

    I used entity: WorkerPostalAddressV2 to create an address for an employee through Excel workbook designer and clicked on Publish changes.

    I checked the employee form with the employee name and Address Tab. I can see employee address is added.

    I don't see any issue.

     

    If you follow the above steps then can you please check whether you are getting the same error?

  • LindsayH Profile Picture
    252 on at

    Hello Parag - Thank you for your assistance.

    Having tried this, the address is imported successfully via excel, however frustratingly the address does not show in the address tab in the employee record.  

  • Parag Chapre Profile Picture
    12,254 Most Valuable Professional on at

    Is it giving any error like earlier?

    Can you send me the screenshot of the Employee detail page?

  • LindsayH Profile Picture
    252 on at

    No error, the address record is successfully imported into the WorkerPostalAddressV2 table but it does not show on the Employee. Only when I click 'Add' do I get the error. 

    pastedimage1607435013546v1.png

    pastedimage1607435655430v2.png

    I am currently using Firefox, however I am experiencing the same on chrome. 

  • Juanse Profile Picture
    660 on at

    Hello,

    Do you have the feature "Saved views" enabled on your environment. If so turn it off and then try again? 

    I have noticed weird behavior around worker addresses when this feature is turned on

    regards,

  • LindsayH Profile Picture
    252 on at

    Thank you Juan, we don't have saved views enabled.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 512 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 291 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans