Generate QRCode
  • 01 Feb 2023
  • 1 Minute to read
  • Dark
    Light

Generate QRCode

  • Dark
    Light

Article Summary

Step Details

Introduced in Version4.0.0
Last Modified in Version8.8.0
LocationIntegration > 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

PropertyDescriptionData Type
FormatThe desired image format type (PNG, GIF, JPG) ImageFormatTypes
ValueThe 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

PropertyDescriptionData Type
OutputA string of byte dataList of Byte

Example Inputs and Outputs

FormatValueOutput
PNGHappy DaysA string of byte data
GIFhttp://www.google.comA string of byte data
NullGrowing PlantsEXCEPTION MESSAGE
EmptyFreshEXCEPTION MESSAGE
JPGNullEXCEPTION MESSAGE
PNGEmptyEXCEPTION 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?

What's Next