Have Questions?  Need Expert Answers?  JOIN LUNCH N' LEARNS!

Get QRValue

Prev Next

Step Details

Introduced in Version 4.0.0
Last Modified in Version 8.8.0
Location Integration > 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

Property Description Data Type
Data The desired byte data of a QR Code image to retrieve the value from List of Byte

Outputs

Property Description Data Type
Output The value from the QR Code String

Example Inputs and Outputs

Data Output
frame.png Free By Frenatery
QRSite.gif http://www.google.com
Flowers.png EXCEPTION MESSAGE
Example.txt EXCEPTION 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