When modifying this report in Visual Studio 2010 the classes will throw all types of errors.
The first error that I got was explained here earlier today Next there was an error when refreshing the PurchPurchaseOrder Data source on the AX 2012 Reporting services Report. It stated that, “Element’;PurchPurchaseOrder.Parameters.IsPurchConfirmationRequestJournal’ has already been defined. To correct this, rename on or more of the model elements so that they have a unique name. Another developer already solved this issue so here is his fix: The second error was explained here The last error that I received was this:
Error 1 An exception occurred in the query metadata execution. The exception is Function PurchTableAllVersions.initFromProformaPurchTableVersion has been incorrectly called. (S)\Classes\xInfo\add (S)\Classes\Info\add - line 94 (S)\Classes\Global\error - line 3 (S)\Data Dictionary\Views\PurchTableAllVersions\Methods\initFromProformaPurchTableVersion - line 15 (S)\Classes\PurchPurchaseOrderDP\initProformaPurchTableAllVersions - line 9 (S)\Classes\PurchPurchaseOrderDP\retrieveJournalAndVersion - line 23 (S)\Classes\PurchPurchaseOrderDP\createData - line 30 (S)\Classes\PurchPurchaseOrderDP\processReport - line 52 (S)\Classes\SrsReportRunRdpPreProcessStrategy\execute - line 27 (S)\Classes\SrsReportRunRdpPreProcessService\executeWithContract - line 82 (S)\Classes\SrsReportProviderQueryBuilder\runPreviewModePreProcessedRdp - line 29 (S)\Classes\SrsReportProviderQueryBuilder\initialize - line 58 (S)\Jobs\. PurchPurchaseOrder.Report [Preview] 0 0
These errors are related to the fact that we can’t run some reports in Visual Studio to see results especially if there are args that come from the AX UI. You can ignore these errors. When the report is run from the form it works perfectly.