Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

How to add Customer "Location Id"

Posted on by 6,409

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,113 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,409 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,779 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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 229,918 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans