web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Extend Base SSRS Report

(1) ShareShare
ReportReport
Posted on by 2
I tried to extend the Base Purchase Order Reports but I got this error please help me out...
 
 
////And Here is my codes
 
Dp Class
 
[ExtensionOf(classStr(PurchPurchaseOrderDP))]
final class Purch_Extension
{
   protected PurchPurchaseOrderHeader initializePurchaseOrderHeader(VendPurchOrderJour _vendPurchOrderJour)
   {
       PurchPurchaseOrderHeader PurchPurchaseOrderHeader = next initializePurchaseOrderHeader(_vendPurchOrderJour);
       CustTable custTable;
       PurchTable PurchTable;
       select * from custTable join PurchTable where PurchTable.OrderAccount == custTable.AccountNum;
       
       PurchPurchaseOrderHeader.clear();
       PurchPurchaseOrderHeader.AccountNum = custTable.AccountNum;
       PurchPurchaseOrderHeader.insert();
 
       return PurchPurchaseOrderHeader;
 
   }
 
}
 
Controller Class
 
public class Purch_Ext extends PurchPurchaseOrderController
{
   public static void main(Args _args)
   {
       SrsPrintMgmtFormLetterController  controller = new Purch_Ext();
 
       controller.parmReportName(PrintMgmtDocType::construct(PrintMgmtDocumentType::PurchaseOrderRequisition).getDefaultReportFormat());
       controller.parmArgs(_args);
       controller.parmShowDialog(false);
       controller.startOperation();
   }
}
 
Print Management Class
 
public class Purch_EventHndlr
{
   [SubscribesTo(classstr(PrintMgmtDocType), delegatestr(PrintMgmtDocType, getDefaultReportFormatDelegate))]
   public static void getDefaultReportFormatDelegate(PrintMgmtDocumentType _docType, EventHandlerResult _result)
   {
 
       switch (_docType)
       {
 
           case PrintMgmtDocumentType::PurchaseOrderRequisition:
               _result.result(ssrsReportStr(PurchPurchaseOrderCopy, Report));
               break;
       }
   }
}
 
 
Also For Your Reference
 
////
I have the same question (0)
  • Martin Dráb Profile Picture
    240,177 Most Valuable Professional on at
    First of all, try synchronizing the database.
     
    (Moved from Dynamics AX forum.)
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    26,811 Super User 2026 Season 1 on at
    Hi,
     
    This error message appears when you encounter a problem with the sychro.
     
    you must perform a synchro in VS.
     
    Best regards,
    Mohamed Amine MAHMOUDI
  • Layan Jwei Profile Picture
    8,282 Super User 2026 Season 1 on at
    Hi,
     
    Yes normally when you see session 1015 error with all the errors with it, then it means you need to do full sync.
     
    Thanks,
    Layan Jweihan
  • Suggested answer
    Rachit Profile Picture
    4,015 User Group Leader on at
    The error is related to Database Synchronization. Also I would recommend you to use a proper naming convention in your objects, if the above if for a real implementation scenario. Using names like 'PurchPurchaseOrderCopy' and 'Purch_ext' for custom objects is not recommended. 
  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    Seems you have added some fields but sync didn't go well. Full Sync or project sync will solve the issue.
  • Antony Profile Picture
    2 on at
    Thanks to you all, it's working fine now.
  • Martin Dráb Profile Picture
    240,177 Most Valuable Professional on at
    Was it solved by the DB sync? If so, please verify the answer (let me know if it doesn't work, I'll try it on your behalf).
     
    Or did it have a different solution? In that case, please share it, so people with a similar problem can find a solution here.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 385 Super User 2026 Season 1

#2
Subra Profile Picture

Subra 270

#3
Martin Dráb Profile Picture

Martin Dráb 243 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans