--- title: "Generate Bar Code" slug: "generate-bar-code" tags: ["QR code", "barcode"] updated: 2025-07-09T18:03:11Z published: 2025-07-09T18:03:11Z canonical: "documentation.decisions.com/generate-bar-code" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.decisions.com/llms.txt > Use this file to discover all available pages before exploring further. # Generate Bar Code | ## Step Details | | --- | | **Introduced in Version** | 4.0.0 | | **Last Modified in Version** | 8.7.0 | | **Location** | Data > QR & Barcodes | --- The **Generate Bar Code** step allows users to generate a QR image for a specified text. --- ### Prerequisites This step requires the QRCodes module to be [installed](https://documentation.decisions.com/docs/installing-modules-decisions) before it will be available in the toolbox. --- ## Properties #### Inputs | Property | Description | Data Type | | --- | --- | --- | | Barcode Text | The desired text that will be displayed under the Barcode image | String | #### Settings | Property | Description | Data Type | | --- | --- | --- | | BarcodeEncoding | The desired [encoding](https://en.wikipedia.org/wiki/Barcode#Types_of_barcodes) type for the Barcode to determine the output Barcode image | --- | #### Outputs | Property | Description | Data Type | | --- | --- | --- | | Barcode File | The image file of the Barcode and text | FileData | --- ## Example Inputs and Outputs | Barcode Text | Output | | --- | --- | | This is input | BarCode.jpg | | Null | EXCEPTION MESSAGE | | Empty | EXCEPTION MESSAGE | #### ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1675186280206.png) --- ## Common Errors ### You cannot generate a bar code without any barcode text If the Barcode Text value is null or empty, the step will cause an error. To correct this, enter or map a value to the field. #### Exception Message: ```csharp Exception Stack Trace: DecisionsFramework.BusinessRuleException: [BusinessRule] You cannot generate a bar code without any barcode text. at DecisionsFramework.Design.Flow.CoreSteps.StandardSteps.CreateBarCodeStep.Run(StepStartData data at DecisionsFramework.Design.Flow.FlowStep.RunStepInternal(String flowTrackingID, String stepTrackingID, KeyValuePairDataStructure[] stepRunDataValues, AbstractFlowTrackingData trackingData at DecisionsFramework.Design.Flow.FlowStep.Start(String flowTrackingID, String stepTrackingID, FlowStateData data, AbstractFlowTrackingData trackingData, RunningStepData currentStepData) ``` --- Related Information Forum Posts: [Generate QR Codes](https://community.decisions.com/discussion/25382/generate-qr-codes) ## Related - [Recognize Bar/QR Codes From PDF](/recognize-barqr-codes-from-pdf.md) - [Recognize Bar/QR Codes From Word Doc Step](/recognize-barqr-codes-from-word-doc-step.md) - [Recognize Bar/QR Codes From Image Data Step](/recognize-barqr-codes-from-image-data-step.md)