Get QRValue
  • 01 Feb 2023
  • 2 Minutes to read
  • Dark
    Light

Get QRValue

  • Dark
    Light

Article summary

Step Details

Introduced in Version4.0.0
Last Modified in Version8.8.0
LocationIntegration > QR Code

The Get QRValue step allows users to retrieve the String value from a QR code. 

Prerequisites 

This step requires the QR Code module to be installed before it will be available in the toolbox. 


Properties

Inputs

PropertyDescriptionData Type
DataThe desired byte data of a QR Code image to retrieve the value fromList of Byte

Outputs

PropertyDescriptionData Type
OutputThe value from the QR CodeString

Example Inputs and Outputs

DataOutput
frame.pngFree By Frenatery
QRSite.gifhttp://www.google.com
Flowers.pngEXCEPTION MESSAGE
Example.txtEXCEPTION MESSAGE
Null EXCEPTION MESSAGE
Empty EXCEPTION MESSAGE


Common Errors

Incorrect Parameter Count, Data Not Mapped Correctly

If the Data field is empty, the step will cause an error.

To correct this, ensure that an input mapping is selected and the correct List of Byte data is configured.

Exception Message:

Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Get QRValue 1[GetQRValue] in flow [Flow 1]: Incorrect Parmater Count, Data Not Mapped Correctly
 ---> DecisionsFramework.LoggedException: Incorrect Parmater Count, Data Not Mapped Correctly
 ---> System.Reflection.TargetParameterCountException: Parameter count mismatch. at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture
 at DecisionsFramework.Design.Flow.StepImplementations.InvokeMethodStep.Run(StepStartData data)
   --- 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 ---

ImageConverter cannot convert from (null)

If the value for the Data field is null, the step will cause an error.

To correct this, ensure that the value entered or mapped is a List of Byte data type.

Exception Message:

Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Get QRValue 1[GetQRValue] in flow [Flow 1]: Exception invoking method GetQRValue on class QRCodeSteps
 ---> DecisionsFramework.LoggedException: Exception invoking method GetQRValue on class QRCodeSteps
 ---> System.NotSupportedException: ImageConverter cannot convert from (null). 
at System.ComponentModel.TypeConverter.GetConvertFromException(Object value
 at System.ComponentModel.TypeConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value
 at System.Drawing.ImageConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value
 at System.ComponentModel.TypeConverter.ConvertFrom(Object value
 at Decisions.QRCodes.QRCodeSteps.GetQRValue(Byte[] data)
   --- 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 ---

Parameter is not valid

If the value for the Data field is not valid QR Code data, the step will cause an error.

To correct this, ensure that the value entered or mapped is a valid QR Code image.

Exception Message:

Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Get QRValue 1[GetQRValue] in flow [Flow 1]: Exception invoking method GetQRValue on class QRCodeSteps
 ---> DecisionsFramework.LoggedException: Exception invoking method GetQRValue on class QRCodeSteps
 ---> System.ArgumentException: Parameter is not valid. at System.Drawing.Image.LoadGdipImageFromStream(GPStream stream, Boolean useEmbeddedColorManagement
 at System.Drawing.Image.FromStream(Stream stream, Boolean useEmbeddedColorManagement, Boolean validateImageData
 at System.Drawing.ImageConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value
 at System.ComponentModel.TypeConverter.ConvertFrom(Object value
 at Decisions.QRCodes.QRCodeSteps.GetQRValue(Byte[] data)
   --- 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?