Skip to main content

Notifications

Announcements

No record found.

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. 

  • Parag Chapre Profile Picture
    Parag Chapre 12,271 Most Valuable Professional on at
    RE: Error adding an Address to Employee - Object reference not set to an instance of an object

    Hi Lindsay,

    I will suggest you to raise a support ticket with Microsoft.

  • LindsayH Profile Picture
    LindsayH 252 on at
    RE: Error adding an Address to Employee - Object reference not set to an instance of an object

    Yes, unfortunately I get the same error when trying to add the address in the global addresses.

  • Juanse Profile Picture
    Juanse 660 on at
    RE: Error adding an Address to Employee - Object reference not set to an instance of an object

    Do you encounter the same error if you go to the address information and try adding it using the global address form instead?

    I have found that sometimes I can't change addresses directly from the worker form but will let me do it from the global address form

  • LindsayH Profile Picture
    LindsayH 252 on at
    RE: Error adding an Address to Employee - Object reference not set to an instance of an object

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

  • Juanse Profile Picture
    Juanse 660 on at
    RE: Error adding an Address to Employee - Object reference not set to an instance of an object

    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
    LindsayH 252 on at
    RE: Error adding an Address to Employee - Object reference not set to an instance of an object

    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. 

  • Parag Chapre Profile Picture
    Parag Chapre 12,271 Most Valuable Professional on at
    RE: Error adding an Address to Employee - Object reference not set to an instance of an object

    Is it giving any error like earlier?

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

  • LindsayH Profile Picture
    LindsayH 252 on at
    RE: Error adding an Address to Employee - Object reference not set to an instance of an object

    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.  

  • Suggested answer
    Parag Chapre Profile Picture
    Parag Chapre 12,271 Most Valuable Professional on at
    RE: Error adding an Address to Employee - Object reference not set to an instance of an object

    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
    LindsayH 252 on at
    RE: Error adding an Address to Employee - Object reference not set to an instance of an object

    Yes, our user has System Admin Role

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,419 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,492 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans