Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Note
Community interest groups have now moved from Yammer to Microsoft Viva Engage. To join a Viva Engage community and take part in the latest discussions, fill out the Request access to Finance and Operations Viva Engage Community form and choose the community you want to join.
When you configure an Electronic reporting (ER) solution to generate outbound documents, you define the methods that get data out of the application and enter it in the generated output. To make the life cycle support of the ER solution more efficient, your solution should consist of an ER data model and its mapping components, and also an ER format and its mapping components. The model mapping is application-specific, whereas other components remain application-agnostic. Therefore, several ER components might affect the process of entering data in the generated output.
Sometimes, the data in the generated output looks different from the same data in the application database. In these cases, you want to determine which ER component is responsible for the data transformation. The ER data source debugger feature significantly reduces the time and cost that are involved in this investigation. You can interrupt the execution of an ER format and open the data source debugger interface. There, you can browse the available data sources and select an individual data source for execution. This manual execution simulates the execution of the data source during the real run of an ER format. The result is presented on a page where you can analyze the data that is received.
To turn on the data source debugging feature, set the Enable data debugging at format run option to Yes in the ER user parameters. You can then start data source debugging while you run an ER format to generate outbound documents. You can also use the Start debugging option to initiate data source debugging for an ER format that is configured in the ER Operation designer.
This article provides guidelines for initiating data source debugging for executed ER formats. It explains how the information can help you understand the data flow and data transformations. The examples in this article use the business process for vendor payments processing.
Limitations
You can use the data source debugger to access the data of data sources that are used in ER formats that run to generate outbound documents. You can't use it to debug data sources of ER formats that are designed to parse inbound documents.
The following settings of ER formats aren't currently accessible for data source debugging:
- Format transformations
- Format and mapping validation rules
- Enabling expressions
- Details of in-memory data collection
Prerequisites
To complete the examples in this article, you must have access to one of the following roles:
- Electronic reporting developer
- Electronic reporting functional consultant
- System administrator
Set the company to DEMF.
Follow the steps in Appendix 1 of this article to download the components of the Microsoft ER solution that are required to process vendor payments.
Follow the steps in Appendix 2 of this article to prepare Accounts payable for vendor payment processing by using the ER solution that you download.
Process a vendor payment to get a payment file
Follow the steps in Appendix 3 of this article to process vendor payments.
Download and save the ZIP file to your local computer.
Extract the ISO20022 Credit transfer.xml payment file from the ZIP file.
Open the extracted payment file by using the XML file viewer.
In the payment file, the International Bank Account Number (IBAN) code of the vendor bank account contains no spaces. Therefore, it differs from the value that was entered on the Bank accounts page.
Use the ER data source debugger to learn which component of the ER solution truncates spaces in the IBAN code.
Turn on data source debugging
Go to Organization administration > Electronic reporting > Configurations.
On Configurations, on the Action Pane, on the Configurations tab, in the Advanced settings group, select User parameters.
Set the Enable data debugging at format run option to Yes.
Note
This parameter is user-specific and company-specific.
Process a vendor payment for debugging
Follow the steps in Appendix 3 of this article to process vendor payments.
In the message box, select Yes to confirm that you want to interrupt vendor payment processing and instead start data source debugging on the Debug Datasources page.
Debug data sources that are used in payment processing
Debug the model mapping
On Debug Datasources, on the Action Pane, select Model mapping to start debugging from this ER component.
In the data source pane on the left, select the $notSentTransactions data source, and then select Read all records.
To force the appropriate number of records to be read from the selected data source, select Read 1 record, Read 10 records, Read 100 records, or Read all records. By using this approach, you can simulate access to the data source from the running ER format.
In the data pane on the right, select Expand all.
You see that the selected data source of the Record list type contains a single record.
Expand the $notSentTransactions data source, and select the nested vendBankAccountInTransactionCompany() method.
Expand the vendBankAccountInTransactionCompany() method, and select the nested IBAN field.
Select Get value.
Select Get value to force the value of a selected field of the selected data source to be read. By using this approach, you can simulate access to this field from the running ER format.
Select Expand all.
As you can see, the model mapping isn't responsible for the truncated spaces, because the IBAN code that it returns for the vendor bank account includes spaces. Therefore, you must continue data source debugging.
Debug the format mapping
On Debug Datasources, on the action pane, select Format mapping to continue debugging from this ER component.
Select the $PaymentByDebtor data source, and then select Read all records.
Expand $PaymentByDebtor.
Expand $PaymentByDebtor.Lines, and then select Read all records.
Expand $PaymentByDebtor.Lines.CreditorAccount.
Expand $PaymentByDebtor.Lines.CreditorAccount.Identification, and then select $PaymentByDebtor.Lines.CreditorAccount.Identification.IBAN.
Select Get value.
Select Expand all.
As you can see, the data sources of the format mapping aren't responsible for the truncated spaces, because the IBAN code that they return for the vendor bank account includes spaces. Therefore, you must continue data source debugging.
Debug the format
On Debug Datasources, on the action pane, select Format to continue debugging from this ER component.
Expand the format elements to select ISO20022CTReports > XMLHeader > Document > CstmrCdtTrfInitn > PmtInf, and then select Read all records.
Expand the format elements to select ISO20022CTReports > XMLHeader > Document > CstmrCdtTrfInitn > PmtInf > CdtTrfTxInf, and then select Read all records.
Expand the format elements to select ISO20022CTReports > XMLHeader > Document > CstmrCdtTrfInitn > PmtInf > CdtTrfTxInf > CdtrAcct > Id > IBAN > BankIBAN, and then select Get value.
Select Expand all.
As you can see, the format binding isn't responsible for the truncated spaces because the IBAN code that it returns for the vendor bank account includes spaces. Therefore, the BankIBAN element is configured to use a format transformation that truncates spaces.
Close the data source debugger.
Review the format transformations
Go to Organization administration > Electronic reporting > Configurations.
On Configurations, select Payment model > ISO20022 Credit transfer.
Select Designer, and then expand the elements to select Document > CstmrCdtTrfInitn > PmtInf > CdtTrfTxInf > CdtrAcct > Id > IBAN > BankIBAN.
As you can see, the BankIBAN element is configured to use the remove not alphanumeric transformation.
Select the Transformations tab.
As you can see, the remove not alphanumeric transformation uses an expression that truncates spaces from the provided text string.
Start to debug in the Operation designer
When you configure a draft version of the ER format that you can run directly from the Operation designer, you can access the data source debugger by selecting Start Debugging on the Action Pane.
You can debug the format mapping and format components of the ER format that you're editing.
Start debugging in the Model mapping designer
When you configure an ER model mapping that you can run from the Model mapping page, select Start Debugging on the Action Pane to access the data source debugger.
You can debug the model mapping component of the ER mapping that you're editing.
Appendix 1: Get an ER solution
Download an ER solution
To use an ER solution to generate an electronic payment file for a processed vendor payment, download the ISO20022 Credit transfer ER payment format from the Shared asset library in Microsoft Dynamics Lifecycle Services (LCS) or from the Global repository.
In addition to the selected ER format, automatically import the following configurations into your Microsoft Dynamics 365 Finance instance as part of the ISO20022 Credit transfer ER solution:
- Payment model ER data model configuration
- ISO20022 Credit transfer ER format configuration
- Payment model mapping 1611 ER model mapping configuration
- Payment model mapping to destination ISO20022 ER model mapping configuration
You can find these configurations on the Configurations page of the ER framework (Organization administration > Electronic reporting > Configurations).
If any of the previously listed configurations are missing in the configuration tree, manually download them from the LCS Shared asset library in the same way that you downloaded the ISO20022 Credit transfer ER payment format.
Analyze the downloaded ER solution
Review the model mapping
Go to Organization administration > Electronic reporting > Configurations.
Select Payment model > Payment model mapping 1611.
Select Designer.
Select the Payment model mapping ISO20022 CT mapping record.
Select Designer, and then review the model mapping that opens.
Notice that the Payments field of the data model is bound to the $notSentTransactions data source that returns the list of vendor payment lines that are being processed.
Review the format mapping
Go to Organization administration > Electronic reporting > Configurations.
Select Payment model > ISO20022 Credit transfer.
Select Designer.
On the Mapping tab, review the format mapping that opens.
Notice that the Document > CstmrCdtTrfInitn > PmtInf element of the ISO20022CTReports > XMLHeader file is bound to the $PaymentByDebtor data source that is configured to group records of the data model's Payments field.
Review the format
Go to Organization administration > Electronic reporting > Configurations.
Select Payment model > ISO20022 Credit transfer.
Select Designer, and then review the format that opens.
Notice that the format element under Document > CstmrCdtTrfInitn > PmtInf > CdtTrfTxInf > CdtrAcct > Id > IBAN > BankIBAN is configured to enter the IBAN code of the vendor account in the payment file.
Appendix 2: Configure Accounts payable
Modify a vendor property
- Go to Accounts payable > Vendors > All vendors.
- Select vendor DE-01002. On the Action Pane, on the Vendor tab, in the Set up group, select Bank accounts.
- On the Identification FastTab, in the IBAN field, enter GB33 BUKB 2020 1555 5555 55.
- Select Save.
Set up a method of payment
- Go to Accounts payable > Payment setup > Methods of payment.
- Select the SEPA CT payment method.
- On the File formats FastTab, in the File formats section, set the Generic electronic Export format option to Yes.
- In the Export format configuration field, select the ISO20022 Credit transfer ER format.
- Select Save.
Add a vendor payment
- Go to Accounts payable > Payments > Vendor payment journal.
- Add a new payment journal.
- Select Lines, and add a new payment line.
- In the Account field, select vendor DE-01002.
- In the Debit field, enter a value.
- In the Method of payment field, select SEPA CT.
- Select Save.
Appendix 3: Process a vendor payment
- Go to Accounts payable > Payments > Vendor payment journal.
- On the Vendor payment journal page, select the payment journal that you previously created, and then select Lines.
- Select the payment line, and then select Payment status > None.
- Select Generate payments.
- In the Method of payment field, select SEPA CT.
- In the Bank account field, select DEMF OPER.
- In the Generate payments dialog box, select OK.
- In the Electronic report parameters dialog box, select OK.