Workflow error when trying to save an empty picture into a SmartObject

  • 16 February 2021
  • 0 replies
  • 5 views

Badge +6

Issue

When trying to copy information with type "Image" from a Smartbox SmartObject to another SmartObject (or the same SmartObject results in the same issue), within a workflow, we receive the following error if the record has no data (no image uploaded):

 

18631i23CDCD857AB82B1C.png

Error Code

Data at the root level is invalid. Line 1, position 1.

 

18633i0B5E574032FC76F0.png

Resolution

There are two workarounds that you can try to move past the issue.

 

A) Avoid copying the line by adding a condition: {PictureField} different from empty:

18634i06D595C034A32D64.png

 




B) If you want to copy the line even if no picture is uploaded, you can check the value by using an If function. If we detect that the value is "System.Byte[]", replace it with a "" by using an If function.

 

18635i1C3A63A272D62897.png

 

 


0 replies

Be the first to reply!

Reply