Personalized Community is here!
Quickly customize your community to find the content you seek.
Choose your path Increase your proficiency with the Dynamics 365 applications that you already use and learn more about the apps that interest you. Up your game with a learning path tailored to today's Dynamics 365 masterminds and designed to prepare you for industry-recognized Microsoft certifications.
Visit Microsoft Learn
2020 release wave 1Discover the latest updates and new features to Dynamics 365 planned through September 2020
Release overview guides and videos Release Plan | Preview 2020 Release Wave 1 TimelineWatch the 2020 Release Wave 1 virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
After adding SSRS DataMethod the report (AX 2012 R3) output shows #Error for the element calling the DataMethod.
[DataMethod(), PermissionSet(SecurityAction.Assert, Name = "FullTrust")]
public static string GetDataMatrixCode(string currentPage, string totalPages, string custInvoiceAccount)
string currentPagePad = currentPage.PadLeft(3, '0');
string totalPagesPad = totalPages.PadLeft(3, '0');
string inputStr = currentPagePad + totalPagesPad + custInvoiceAccount;
DataMatrix dm = new DataMatrix(inputStr, 0, 0);
outputStr = dm.Encode();
catch (Exception ex)
outputStr = ex.Message + ' ' + ex.InnerException;
Returning just the inputStr works well, the problem seems to be when constructing the DataMatrix.dll. The referenced dll resides in client- and server bin.
How can we find the error reason? Must dll reference be placed somewhere else?
Thanks for help.
Did you add reference to DataMatrix under Rererences node in Business logic project?
Without any refernce you cannot build the Project.
Did you try to walk through the code in debugger? If new DataMatrix() throws an exception, what's the type and Message?
By the way, where did you get "DataMethod Reference not resolved" mentioned in the title? The text of your questions mentions only that the control shows #Error.
No, that was not the error, just assumed.
The debugger doesn't stopp at the breakpoint. Tried to attach with Ax32Serv.exe or ReportingServicesService.exe (symbols not resolved). VS is on the same system like AX and SSRS. What is the correct way for degugging?
Sorry, I don't remember exact process; it's quite a few years since I did this for the last time (there is no such a thing in F&O).
Try the usual tricks like unchecking "Just my code". If you can't get the debugger working, use trace messages.
Solution for adding DLL (our case DataMatrix.dll) in SSRS data method:
1) Copy the DataMatrix.dll to the C:\Program Files\Microsoft SQL Server\MSRS12.MSSQLSERVER\Reporting Services\ReportServer\bin 2) Add the following CodeGroup to the rssrvpolicy.config file in the C:\Program Files\Microsoft SQL Server\MSRS12.MSSQLSERVER\Reporting Services\ReportServer folder: <CodeGroup class="UnionCodeGroup" version="1" PermissionSetName="FullTrust"> <IMembershipCondition class="UrlMembershipCondition" version="1" Url="C:\Program Files\Microsoft SQL Server\MSRS12.MSSQLSERVER\Reporting Services\ReportServer\bin\DataMatrix.dll" /> </CodeGroup>
Business Applications communities