Announcements
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
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
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.
Do you have XDS security policies configured . Can you share details of the security role which is defined on the user.
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?
André Arnaud de Cal...
294,161
Super User 2025 Season 1
Martin Dráb
232,942
Most Valuable Professional
nmaenpaa
101,158
Moderator