cancel
Showing results for 
Search instead for 
Did you mean: 

JSON to Collection Issue.

JishnuP_Nair1
Level 3

Hi All,

Greetings.

need some help.

I need to access the data in value field.

could you please help me with this.

23876.png



------------------------------
Jishnu P Nair
------------------------------
5 REPLIES 5

@Jishnu P Nair Access it using dot notation in a calculation stage

Coll_GroupDetails.infoField.output.JSON:Array.value



------------------------------
Shashank Kumar
DX Integrations Partner Consultant
Blue Prism
Singapore
+6581326707
------------------------------

@shashank.kumar280 I tried that approach but not working.

getting error like this : 

Object reference not set to an instance of an object.
 
 
 
System.NullReferenceException: Object reference not set to an instance of an object.
   at AutomateUI.frmExpressionTest.MakeRow(IDataField item, Int32 top, Int32 tabIndex, Int32 scrollbarAdj)
   at AutomateUI.frmExpressionTest.Populate()
   at AutomateUI.frmExpressionTest..ctor(Control owner, clsProcess proc, String expr, clsProcessStage stage, String name)
   at AutomateUI.ctlProcessExpressionBuilder.TestExpression(String localExpr)


------------------------------
Jishnu P Nair
------------------------------

Hello Jishnu,

I think you are getting the above-mentioned error while evaluating the expression in the calc stage. Please run the calc stage in debug mode to get the value in an output variable. Are you using BP 6.10 version?



------------------------------
Athiban Mahamathi - https://www.linkedin.com/in/athiban-mahamathi-544a008b/
Technical Consultant,
SimplifyNext,
Singapore
------------------------------

Hi,

Yes i am using BP 6.10.

I am runing the bot in debug mode as well.



------------------------------
Jishnu P Nair
------------------------------

Hi Jishnu,

It was a known bug and BP fixed it in 6.10.1 version. You will get the error only when you try to evaluate the expression for collections. You won't get the error when you run the process in debug mode or from control room.

[BPE] BP-1497 - Error when evaluating stages referencing collections whilst debugging : (blueprism.com)



------------------------------
Athiban Mahamathi - https://www.linkedin.com/in/athiban-mahamathi-544a008b/
Technical Consultant,
SimplifyNext,
Singapore
------------------------------