Generate QRCode
- 01 Feb 2023
- 1 Minute to read
- Print
- DarkLight
Generate QRCode
- Updated on 01 Feb 2023
- 1 Minute to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
Step Details | |
Introduced in Version | 4.0.0 |
Last Modified in Version | 8.8.0 |
Location | Integration > QR Codes |
The Generate QRCode step allows a user to create a QR image with text that is displayed under the image. The output can be displayed using an Image component on a Form.
Prerequisites
This step requires the QR Code module to be installed before it will be available in the toolbox.
Properties
Inputs
Property | Description | Data Type |
---|---|---|
Format | The desired image format type (PNG, GIF, JPG) | ImageFormatTypes |
Value | The desired String will be displayed under the QR Code and used when the user interacts with the QR Code. If the value is a URL, the user will be navigated to it when interacting with the QR Code. | String |
Outputs
Property | Description | Data Type |
---|---|---|
Output | A string of byte data | List of Byte |
Example Inputs and Outputs
Format | Value | Output |
---|---|---|
PNG | Happy Days | A string of byte data |
GIF | http://www.google.com | A string of byte data |
Null | Growing Plants | EXCEPTION MESSAGE |
Empty | Fresh | EXCEPTION MESSAGE |
JPG | Null | EXCEPTION MESSAGE |
PNG | Empty | EXCEPTION MESSAGE |
Common Errors
Parameter 'format' of 'GenerateQRCode' can not be null
If the Format field value is null or empty, the step will cause an error.
To correct this, set the mapping of the Format field to Constant and select the desired image format type.
Exception Message:
Exception Stack Trace: DecisionsFramework.BusinessRuleException: [BusinessRule] Parameter 'format' of 'GenerateQRCode' can not be null
at DecisionsFramework.Design.Flow.CoreSteps.InvokeMethodUtility.ThrowErrorIfNullIsNotAllowed(MethodInfo methodInfo, Object[] parameterValues, String errorMessage
at DecisionsFramework.Design.Flow.StepImplementations.InvokeMethodStep.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)
QR encoding error! Data segment can't be empty
If the Value field is empty or null, the step will cause an error.
To correct this, ensure that a String value is mapped or entered.
Exception Message:
Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Generate QRCode 1[GenerateQRCode] in flow [Flow 1]: Exception invoking method GenerateQRCode on class QRCodeSteps
---> DecisionsFramework.LoggedException: Exception invoking method GenerateQRCode on class QRCodeSteps
---> System.ArgumentException: QR encoding error! Data segment can't be empty. at ..ctor( , String , ,
at .(Encoding , String
at .(QREncodeMode , Encoding , ECIEncodings , String
at .(QREncodeType , QREncodeMode , ECIEncodings , QRVersion , QRErrorLevel , QrStructuredAppendParameters , Encoding , String
at .(String
at .(BarcodeParameters , CodetextParameters , , ,
at .(BarcodeParameters ,
at Aspose.BarCode.Generation.BarcodeGenerator.(BaseGenerationParameters
at Aspose.BarCode.Generation.BarcodeGenerator.GenerateBarCodeImage(
at Decisions.QRCodes.QRCodeSteps.GenerateQRCode(String value, ImageFormatTypes format)
--- End of inner exception stack trace --- at DecisionsFramework.Design.Flow.StepImplementations.InvokeMethodStep.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)
--- End of inner exception stack trace ---
Related Information
Documentation:
QR Codes Module
Forum Posts:
Generate QR Codes
Was this article helpful?