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, ...
Answered

AX 2012 R3 issues with InvoiceSales

(0) ShareShare
ReportReport
Posted on by

Dear all,

I have a strange issue going on. When our sales user prints a SalesInvoice report for a particular customer it doesn't display the invoicing address: only the customer's name.

What I have found is that when printing the same invoice with Administrator role, the invoicing address is displayed correctly.

When executing in the user's role context, in the SalesInvoiceDPBase::init method, the following:

    cachedInvoicingAddress          = _custInvoiceJour.invoicingAddress();

assigns an empty string to the variable, and that's because in the invoicingAddress method

//BP deviation documented
display LogisticsAddressing invoicingAddress()
{
    return DirUtility::replaceAddressTokenLanguage(LogisticsPostalAddress::findRecId(this.InvoicePostalAddress), this.languageId);
}

the LogisticsPostalAddress::findRecId returns no record (without errors even in Windows Event Viewer).

No need to say that the given RecId (the one in the this.InvoicePostalAddress field) does exist since it works when using Administrator role (anyway I also double checked by directly querying the SQL Server).

If I give table permission for LogisticsPostalAddress to the user, nothing changes and the record is not correctly retrieved.

Do you have any suggestion about this case?

Thank you in advance

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    300,911 Super User 2025 Season 2 on at

    Hi Simone,

    It should be related to security permissions. Can you tell if you used standard privileges and duties or if you created new security objects from scratch?

  • Rachit Profile Picture
    4,015 User Group Leader on at

    Do you have XDS security policies configured . Can you share details of the security role which is defined on the user.

  • Community Member Profile Picture
    on at

    Hi Andrè,

    it is a mix: we created a custom role specific to our sale department but it's composed of both standard duties/privileges and custom ones.

    My question is: if the user misses some privileges, why AX doesn't return the usual error "user xyz can't select a record in the table xxx, insufficient permissions"? Is there a way to find what is missing? Why it doesn't happen for every customer's invoice? Lots of questions, I know

    PS: to answer Rachit: no XDS security policy has been configured.

  • Verified answer
    Community Member Profile Picture
    on at

    For future reference, I've finally discovered what was the issue.

    I didn't notice immediatly, but the address was marked as "Private". So, the solution was to apply what is described in this blog.

    In short, I added the custom role to the list of roles who can access private address and contact information at the following path:

    Organization Administration > Setup > Global Address Book > Global Address Book Parameters > Private location security

    Hope this helps,

    Simone

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... 549 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans