Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

How to add Customer "Location Id"

(0) ShareShare
ReportReport
Posted on by 6,414

Hello,

on Customer Addresses I wanted to add "Location Id" via Personalize.

When I click "Add fields" the "Locations" table was not visible, so I added "Location" field from "Global address book", but the value isn't that I wanted.

Then I noticed that after adding the "Location" field from Address book, now I can see the "Locations" table and I can add "Location ID" field and correct value is retrieved, but if I close the Customer form I'm getting the error message: "An error occurred while unpacking XXX_XXX_LocationId.  This control will be skipped" and the field disappears.

How is it possible to have "Location ID" visible on customer address without any development?

*This post is locked for comments

  • aaa510 Profile Picture
    aaa510 400 on at
    RE: How to add Customer "Location Id"

    Hi André, I have the same error when i tried to add search name to "workers" form, which view should i modified? Thanks!

    Rosa

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,391 Super User 2024 Season 2 on at
    RE: How to add Customer "Location Id"

    Hi Joni,

    The reason why the table is visible is because the Location field on the global address book table is having a reference field set. So it recognizes this reference as the field Description from the Location table. That is the reason why the table name is now visible in the table list. But this table is not defined as datasource on the form. This will cause your error.

    I can reproduce it. So to be able to add the field correctly, you can add the datasource on the form or extend the view DirPartyPostalAddressView which is used on the address grid.

    I do agree the visibility of the table is confusing.

  • Johnny Profile Picture
    Johnny 6,414 on at
    RE: How to add Customer "Location Id"

    Hi,

    even if I reset "All usage data" and delete .AUC files, I still have same error : (

  • Anton Venter Profile Picture
    Anton Venter 18,788 Super User 2024 Season 2 on at
    RE: How to add Customer "Location Id"

    Hi, adding "Location ID" should not be an issue at all. The error message you are getting points towards some kind of issue with the usage data of the particular form. Try to reset the usage data for that form and try again to add it. You can reset your usage data from the Tools | Options menu. Remove the records for the form in question. Note: resetting your all your usage data will remove all personalisations and saved queries, test it in a test environment first!

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,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans