Skip to main content

Notifications

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

  • Verified answer
    Community Member Profile Picture
    on at
    RE: AX 2012 R3 issues with InvoiceSales

    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

  • Community Member Profile Picture
    on at
    RE: AX 2012 R3 issues with InvoiceSales

    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.

  • Rachit Profile Picture
    4,015 User Group Leader on at
    RE: AX 2012 R3 issues with InvoiceSales

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

  • André Arnaud de Calavon Profile Picture
    294,161 Super User 2025 Season 1 on at
    RE: AX 2012 R3 issues with InvoiceSales

    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?

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,161 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,942 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans