MSBA-323 · Lesson 8 of 12 · 20 min
Electronic reporting for regulatory formats
▶ Video coming soon A video version of this lesson is on the way.
Tax authorities, banks and regulators increasingly want files rather than paper. A return is uploaded rather than mailed, an invoice in Mexico must be stamped electronically before it is valid, and a payment file has to follow the bank's exact layout. Finance produces almost all of these files with one framework, electronic reporting, usually shortened to ER. In the eighth session, Annelise explained how ER works, where its configurations come from and how Cobalt Ridge would manage them, because every regulatory file in lessons 3 and 4 depended on it.
Why a framework instead of code
Regulatory formats change often. A tax authority adds a box to a return, a bank changes a field length, Mexico issues a new version of its electronic invoice schema. If each format were written as program code, every change would need a developer, a build and a deployment. ER separates the format from the code. Business users with the right role can change or extend a format with configuration, and Microsoft publishes updated formats for many countries as configurations that customers import and use without a code update.
Annelise compared it to the financial reporting building blocks from lesson 7. In both, reusable parts are combined to produce output, and the parts can be changed without changing Finance itself.
The three components
An ER solution has three kinds of component, each stored as a configuration with versions.
| Component | What it is | Example |
|---|---|---|
| Data model | An abstract description of business data, independent of any table or file | A tax declaration model with periods, codes, bases and amounts |
| Model mapping | Connects the data model to the actual Finance tables, classes and queries | Fills the tax declaration model from posted sales tax records |
| Format | The layout of the output file: XML, text, Excel, Word or PDF, with its rules | A country's tax return file, a bank payment file or an electronic invoice |
The separation is what makes ER flexible. Many formats can share one data model: a payment model can feed dozens of bank formats around the world, and each bank format only needs to describe its own layout. If Finance's tables change in an update, Microsoft updates the model mapping, and the formats keep working.
Configuration providers and versions
Every configuration belongs to a configuration provider, which identifies who created it. Microsoft is the provider for the standard configurations. When a customer needs to change one, they don't edit Microsoft's configuration directly. Instead, they create a derived configuration under their own provider. The derived version inherits everything from Microsoft's base and contains only the customer's changes. When Microsoft releases a new version of the base, the customer rebases their derived configuration onto it, keeping their changes and picking up Microsoft's.
Annelise set up Cobalt Ridge as a configuration provider in the sandbox. Any change the team made would be a derived configuration under that provider, named with a CR prefix so it was easy to find, such as CR sales tax report CA.
Each configuration also has versions with statuses. A draft version can be edited. A completed version is locked and can be used in production. A shared version has been published to a repository for other environments. Changes are always made in a new draft, tested and then completed, so the version in use can't be edited by accident.
Worked problem
Rebasing a derived format
Cobalt Ridge has derived CR payment file CRUS from Microsoft's payment format version 140, adding one field that Granite Shore Bank requires. Microsoft releases version 146 with fixes. What should the team do?
Show solution
- Import the new base version 146 from the repository.
- Create a draft of CR payment file CRUS and rebase it onto version 146.
- Resolve any conflicts the rebase reports, test a payment file with the bank and complete the new version.
Answer: Rebase the derived format onto version 146, test it, and complete it, so the bank field is kept and Microsoft's fixes are included.
Where configurations come from
Configurations are stored in repositories. In current versions of Finance, the configuration repository for Microsoft's configurations and for sharing between environments is in Dataverse, and ER configurations are managed through the Globalization Studio workspace, which brought together electronic reporting, the tax calculation service from lesson 1 and electronic invoicing. Before version 10.0.39, a separate service called Regulatory Configuration Service had that role; it has been merged into Globalization Studio. Annelise mentioned this because older blogs and guides still refer to it, and the team would find both names.
For Cobalt Ridge, the practical process was: import Microsoft's configurations into the sandbox from the repository, derive and change only what was needed, test, complete, and move the completed versions to production through the same repository. Nobody would import a configuration straight into production without testing.
ER destinations
When a format runs, its output has to go somewhere. ER destinations decide where: a file download, an email, an archive in Finance, a printer or a SharePoint folder. Destinations can also convert output to PDF. Annelise set up destinations for each regulatory format so that every generated file was archived with the job that created it. That gave Clemency and the Mexican controller a record of exactly what had been sent, even if the format or the data changed later.
How Finance chooses a format
A format doesn't run on its own. Each place in Finance that produces an electronic document has a setting that names the ER format to use. A method of payment names the export format for its payment file, which is how MSBA-321's EFT and WIRE methods produced files for Granite Shore Bank. Sales tax reporting names the format for the tax report. Electronic invoicing features name the formats for each document type. Because the setting points to a configuration, switching to a new version or a derived format is a setup change, not a code change.
Annelise showed the team the electronic reporting workspace, where the configurations imported into an environment are listed by provider, with their versions and statuses. From there, a user with the right role can open a format in the format designer to see its structure, run it against test data, and see which model mapping it uses. The electronic reporting parameters page holds settings such as the archive location for generated files. Thandeka asked whether her team would need to learn the designer. Annelise said no: the finance team needed to know which format each process used and how to check its output, while the finance systems analyst would make changes in the designer.
| Role | Responsibility for ER |
|---|---|
| Finance systems analyst | Provider setup, imports, rebases, format designer changes |
| Clemency Quintrell | Business rules in the Canadian and US tax and payment formats |
| Mexican controller | Business rules in the CRMX formats and the grouping codes |
| Ludovica Ferrante-Osei | Bank formats, tested with Granite Shore Bank |
| Thandeka | Approval of any change before it is completed for production |
The life cycle mattered most for formats tied to a legal deadline. When a country changes a return or an invoice schema, Microsoft usually publishes the updated configuration before the effective date, and customers must import and test it in time. Annelise suggested that the systems analyst subscribe to Microsoft's announcements for the three countries and add any announced change as a dated task in the close workspace, so it was visible next to the returns it would affect.
Regulatory formats at Cobalt Ridge
The team listed every regulatory or bank file each company would produce, so that each could be tested.
| Company | File | How it is produced |
|---|---|---|
| CRCA | Sales tax report and supporting details for the GST/HST and QST returns | Microsoft ER format, derived only if the advisers need changes |
| CRCA | Payment files for Granite Shore Bank | ISO 20022 credit transfer format, derived for bank-specific fields |
| CRUS | Sales and use tax report by state | Microsoft ER sales tax report; detail exported for the tax provider |
| CRUS | Positive pay and payment files | ER formats designed in MSBA-322 with Ludovica |
| CRMX | Electronic invoices (CFDI) stamped by an authorized provider | Electronic invoicing in Globalization Studio, with the Mexican feature setup |
| CRMX | Electronic accounting files and supplier informative returns for the SAT | Microsoft ER formats for Mexico |
Mexico: the most demanding case
CRMX was where ER mattered most. Mexican law requires every invoice to be issued as a digital tax receipt, the CFDI, which must be validated and stamped by an authorized certification provider before it is legally valid. Finance handles this with electronic invoicing, which uses ER formats to build the XML and a processing pipeline to sign it, send it to the provider, receive the stamped version and store it. A CFDI that fails validation can't be sent to the customer, so CRMX's invoicing depends on clean customer tax data and correct tax codes.
Mexico also requires companies to submit their chart of accounts with the SAT grouping codes, monthly trial balances and, on request, journal entries in an XML format. MSBA-320 assigned the SAT grouping codes to CR-COA's main accounts, and the Mexican controller reviewed them. The ER formats for Mexico's electronic accounting read those codes. Annelise warned that a main account without a grouping code would break the file, so adding a grouping code became a mandatory step whenever the GL team added a main account used by CRMX.
Worked problem
Checking grouping codes
CR-COA has 262 main accounts. CRMX posts to 214 of them. Before go-live, the Mexican controller finds that 209 have SAT grouping codes. How many must be fixed, and why?
Show solution
- Accounts CRMX uses without codes: 214 minus 209, which is 5.
- The electronic accounting file needs a grouping code for every account in the trial balance.
- Accounts CRMX never posts to can wait, but adding codes to all of them avoids surprises later.
Answer: Five accounts must get grouping codes before go-live, or the monthly electronic accounting file will fail.
Thandeka asked what would happen if an authority changed a format faster than Microsoft could publish it. Annelise explained that this is exactly what derived configurations allow: the systems analyst could make the change in Cobalt Ridge's own derived format, use it until Microsoft's version arrived, then rebase and remove the local change if Microsoft's version covered it.
Testing and ownership
Each format was tested in the UAT sandbox with real-looking data: a full month of transactions for each company, a return generated, and the output compared with what the advisers and the authorities expected. For CRMX, test invoices were stamped in the provider's test environment, which most providers offer for exactly this purpose. Thandeka asked who would own ER after go-live. Annelise recommended that a named finance systems analyst own the configurations and the provider setup, that Clemency and the Mexican controller own the business rules in each format, and that every change follow the draft, test, complete path.
Testing a regulatory file has one extra step that ordinary testing doesn't. The output must be checked against the authority's own rules, not just against Finance's totals. Many authorities publish a schema or a validation tool for their files, and the Mexican SAT publishes the XML schemas for the CFDI and for electronic accounting. The systems analyst ran every test file through the published validation before anyone compared amounts. In the first round of testing, two CRMX test files failed validation because of a missing postal code on a customer address, which was a data problem, not a format problem. That pattern held throughout testing: most failures came from master data, so the data cleansing work from MSBA-321 turned out to be part of regulatory readiness too.
Microsoft releases ER updates throughout the year, sometimes because a law has changed with a fixed effective date. Annelise added a monthly task to CR-MONTH: check the Globalization Studio for new versions of the configurations Cobalt Ridge uses, and plan imports and rebases before any legal deadline. Missing an update can mean filing in an outdated format, which an authority may reject.
Common mistakes
MistakeEditing Microsoft's configuration directly.
InsteadCreate a derived configuration under Cobalt Ridge's provider.
MistakeImporting new configurations straight into production.
InsteadImport into a sandbox, test, complete and then move to production.
MistakeAdding a CRMX main account without a SAT grouping code.
InsteadMake the grouping code a required step for new accounts.
MistakeNot checking for Microsoft updates to regulatory formats.
InsteadReview the Globalization Studio for updates every month.
Summary and key terms
- ER produces regulatory and bank files from configurations instead of code.
- Data models, model mappings and formats separate meaning, source and layout.
- Customers derive their own configurations from Microsoft's and rebase them on new versions.
- Configurations are managed in Globalization Studio with a Dataverse repository.
- Mexico's CFDI and electronic accounting are the most demanding uses at Cobalt Ridge.
- Electronic reporting (ER)
- The configurable framework that generates electronic documents in Finance.
- Data model
- An abstract description of the data a format needs.
- Model mapping
- The link between a data model and Finance's tables.
- Format
- The layout and rules of an output file.
- Derived configuration
- A customer version of a configuration that inherits from a base.
- Rebase
- Moving a derived configuration onto a newer base version.
- CFDI
- Mexico's digital tax receipt, which must be stamped before it is valid.
Practice problems
Work each problem on paper first, then reveal the answer to check.
Why does Cobalt Ridge create derived configurations instead of editing Microsoft's?
Show answer
So their changes survive when Microsoft releases a new base version, through a rebase.
What service did Globalization Studio absorb from version 10.0.39?
Show answer
The Regulatory Configuration Service.
What happens to CRMX's electronic accounting file if a used account lacks a grouping code?
Show answer
The file fails.
Lesson quiz · 5 questions
Score 60% or more to complete this lesson.
Create a free account to save your progress, take quizzes and earn a certificate.