microsoft / microsoft/BCApps

[Bug]: Error on new company with demo data: "‘Document record ID’ must contain a value in ‘E-document’"

Open
#8,707 9 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

Approved Ownership: Manual Team: Finance
Dominant language
AL
Stars
683
Forks
459
Avg merge
3d 26m
Merged PRs (30d)
633

Description

Describe the issue

German error text:
'Belegdatensatz-ID' muss in 'E-Beleg' einen Wert enthalten: 'Belegpostennr.=7'. Der Wert darf nicht null oder leer sein.
English translation:
‘Document record ID’ must contain a value in ‘E-document’: ‘Document item no. = 7’. The value must not be null or empty.

CallStack:
PostPurchaseInvoice (\BE-Fashion-Demo.app.source\Codeunit\5429\Contoso Inbound E-Document.dal:149) Generate (\BE-Fashion-Demo.app.source\Codeunit\5429\Contoso Inbound E-Document.dal:81) GenerateContosoInboundEDocuments (\BE-Fashion-Demo.app.source\Codeunit\11370\Create Demo EDocs DE.dal:56) OnRun (\BE-Fashion-Demo.app.source\Codeunit\11370\Create Demo EDocs DE.dal:26) EDocumentModule (\BE-Fashion-Demo.app.source\Codeunit\11374\E-Doc. Demodata DE.dal:29) LocalizationContosoDemoData (\BE-Fashion-Demo.app.source\Codeunit\11374\E-Doc. Demodata DE.dal:21) OnAfterGeneratingDemoData (\BE-Fashion-Demo.app.source\Codeunit\5193\Contoso Demo Tool.dal:297) GenerateDemoData (\BE-Fashion-Demo.app.source\Codeunit\5193\Contoso Demo Tool.dal:205) BuildDependencyAndGenerateDemoData (\BE-Fashion-Demo.app.source\Codeunit\5193\Contoso Demo Tool.dal:96) CreateNewCompanyDemoData (\BE-Fashion-Demo.app.source\Codeunit\5193\Contoso Demo Tool.dal:53) OnRun (\BE-Fashion-Demo.app.source\Codeunit\5382\Company Creation Contoso.dal:53) OnRun (\BE-Fashion-Demo.app.source\Codeunit\5279\Generate Contoso Demo Data.dal:27)

Expected behavior

the background job task for creating a new company with Contoso demo data should execute without any interruption and errors.

Steps to reproduce
  1. Use the German Localization
  2. Create a new Company on Companies (357, List)
  3. use Contoso Demo Data; Evaluation - Contoso Sample Data
  4. use all Contoso Demo Data Modules
  5. wait until the error occurs (see call stack)
Additional context

As far as I know, this happens every time, but not if i create an empty company and create the demo data afterwards over the contoso demo tool page.

Version: 27.3.44313.45104

Image
I will provide a fix for a bug
  • I will provide a fix for a bug

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.