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

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Contoso Coffee Demo Dataset - Codeunit Binding Error in On-Premises Container

(2) ShareShare
ReportReport
Posted on by 4

Contoso Coffee Demo Dataset - Codeunit Binding Error in On-Premises Container

 

Environment:


  • Business Central Version: 26.4.37194.37206 (OnPrem)

  • Container: Windows Docker container using BcContainerHelper

  • Host OS: Windows 11 Pro (Build 22631.5768)

  • Setup: BC container with internal SQL Server, CRONUS demo data
 

Issue:
I'm trying to install and run the Contoso Coffee Demo Dataset to get manufacturing demo data, but consistently getting a codeunit binding error when attempting to generate demo data.

 

What I've Tried:


  1.  

    Extension Status Verification:

     

    • Confirmed both "Contoso Coffee Demo Dataset" and "Contoso Coffee Demo Dataset (US)" are installed and synced

    • All extensions show: IsInstalled: True, SyncState: Synced, NeedsUpgrade: False

    •  

  2.  

    Demo Tool Access:

     

    • Found and accessed the "Contoso Coffee Demo Data" page in BC web client

    • Selected all modules for generation

    • Tried both "Generate Setup Data" and "Generate Demo Data" options

    •  

  3.  

    Error Messages:

     

    • When clicking "Generate Setup Data": The binding of codeunit 11494 was unsuccessful. The codeunit has already been bound.

    • When clicking "Generate Demo Data": Same codeunit binding error

    • Also encountered: The record in table Data Exch. Def already exists. Identification fields and values: Code='OCRCREDITMEMO'

    •  

  4.  

    Troubleshooting Steps Attempted:

     

    • Restarted BC service tier: Restart-BcContainerServiceTier -containerName bcserver

    • Cleared browser cache and tried fresh sessions

    • Attempted to uninstall/reinstall Contoso apps (unsuccessful - dependencies prevent removal)

    • Verified no coffee-related demo data exists (only default bikes/computers from CRONUS)
 

Current State:

 

  • BC container runs perfectly with CRONUS data

  • All Contoso Coffee extensions appear properly installed

  • Demo tool UI is accessible but fails on execution

  • No manufacturing demo data has been generated

  •  
 

Questions:


  1. Is there a way to resolve the codeunit 11494 binding conflict?

  2. Can the demo data generation be forced/reset somehow?

  3. Are there alternative methods to populate Contoso Coffee demo data in on-premises containers?

  4. Should I try a different BC artifact version or container approach?

  5.  
 

Why I Need This:
Building a procurement automation demo that requires rich manufacturing data with BOMs, production orders, and complex vendor relationships. The default CRONUS data lacks the manufacturing complexity needed.

Any guidance on resolving this or alternative approaches to get manufacturing demo data would be greatly appreciated!

 

Container Setup Details:

$artifactUrl = Get-BcArtifactUrl -type OnPrem -country us -select Latest
New-BcContainer -accept_eula -containerName bcserver -credential $bcCred -auth UserPassword -artifactUrl $artifactUrl -updateHosts
I have the same question (0)
  • Suggested answer
    DAnny3211 Profile Picture
    11,376 on at
    Contoso Coffee Demo Dataset - Codeunit Binding Error in On-Premises Container

    Hi,

     

    The issue you're encountering with the Contoso Coffee Demo Dataset—specifically the codeunit 11494 binding error—is a known challenge when deploying the demo data in on-premises containers. Here's a breakdown of the situation and recommended steps:

     

    🔧 Root Cause

     

    The error "The binding of codeunit 11494 was unsuccessful. The codeunit has already been bound." typically occurs when the demo tool attempts to re-bind a codeunit that was already initialized in a previous session or failed run. This can also be compounded by leftover records like Data Exch. Def entries (e.g., OCRCREDITMEMO) that conflict with the demo setup[1].

     

    ✅ Recommended Solutions

     

    1. Reset the Demo Tool State

     

    The GitHub source code for the demo tool shows that the tool checks whether modules have already been generated and skips them if so[2]. To force regeneration:

     

    • Use the ContosoCoffeeDemoDataSetup table to reset the language and data level.

    • Clear or delete entries in the Contoso Demo Data Module table to allow re-generation.

    • You may need to manually delete conflicting records like Data Exch. Def entries using configuration packages or SQL if safe.


    •  
     

    2. Use the CreateDemoData Procedure

     

    The codeunit includes a method CreateDemoData that can be invoked manually via AL or PowerShell to bypass UI triggers. This method checks for language compatibility and regenerates data for selected modules [2].

     

    3. Try a Clean Container

     

    If the above fails, consider:

     

    • Creating a new container with no prior demo data.

    • Installing only the Contoso Coffee Demo Dataset extensions before running the demo tool.

    • Avoid running the CRONUS setup first, as it may conflict with Contoso data.


    •  
     

    4. Alternative: Manual Data Import

     

    If automation fails, you can manually import manufacturing demo data using:

     

    • Configuration packages from Microsoft or community sources.

    • GitHub ALAppExtensions which include demo data definitions [2].

    • Manually creating BOMs, production orders, and vendors based on Contoso documentation [3].


    •  
     

    🧪 Additional Tips

     

    • Ensure Premium features are enabled in your container setup.

    • Use the latest BC artifact version compatible with the Contoso extensions.

    • Monitor the ContosoCoffeeDemoDataSetup and Contoso Demo Data Module tables for status flags.


    •  
     

    Let me know if you'd like help crafting a script to reset the demo tool state or manually invoke the CreateDemoData procedure.

     

    Thanks and best regards,

    Daniele

    Note: This response was prepared with support from Copilot to ensure clarity and completeness.

     

    [1]: https://community.dynamics.com/forums/thread/details/?threadid=b5336aa7-0c7e-f011-b4cc-7c1e521b4ace

    [2]: https://github.com/microsoft/ALAppExtensions/blob/main/Apps/W1/ContosoCoffeeDemoDataset/app/DemoTool/ContosoDemoTool.Codeunit.al

    [3]: https://community.dynamics.com/blogs/post/?postid=b8b9bcc2-9113-4a15-b9f6-39e859a5a61e


    References
  • Suggested answer
    Sohail Ahmed Profile Picture
    11,087 Super User 2025 Season 2 on at
    Contoso Coffee Demo Dataset - Codeunit Binding Error in On-Premises Container

    This looks like an environment-specific issue with the Contoso Coffee demo dataset in your on-premises container setup. Since the error is happening at the codeunit binding level, it’s not something you can usually fix through configuration alone.

     

    I’d recommend contacting Microsoft support directly with your container setup details and error logs so they can investigate and provide the right fix.

     

    ✅ Mark this answer as verified if it helps you.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 4,327

#2
Sumit Singh Profile Picture

Sumit Singh 2,734

#3
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 2,599

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans