Assign: Object reference not set to an instance of an object

Hi, im getting this whenever i tried. Can anyone help me plz

{
“message”: “Assign Faulted”,
“level”: “Trace”,
“logType”: “Default”,
“timeStamp”: “21:33:56”,
“processVersion”: “1.0.0”,
“jobId”: “ec08bb69-a867-4421-9fb0-e1c3b5dcbf26”,
“robotName”: “HARIKRISHNA”,
“machineId”: 0,
“fileName”: “Main”,
“activityInfo”: {
“Activity”: “System.Activities.Statements.Assign”,
“DisplayName”: “Assign”,
“State”: “Faulted”,
“Variables”: {
“TransactionItem”: “”,
“SystemError”: “”,
“BusinessRuleException”: “”,
“TransactionNumber”: “0”,
“Config”: “System.Collections.Generic.Dictionary`2[System.String,System.Object]”,
“RetryNumber”: “0”,
“TransactionField2”: “”,
“TransactionField1”: “”,
“TransactionID”: “”,
“TransactionData”: “”,
“WIlist”: “”
},
“Arguments”: {
“Value”: “”
}
}
}

Hi @Hari_HK
where you “Are getting this error

ThAnks
Ashwin S

Hey @Hari_HK
Can you show us a screenshot of the code you are using in the assign activity so that it would be easier to see what you have done and get an idea why you are getting this error…

this is from advanced lev 3 assignment calculate hash

1 Like

Fine
is that TransactionData variable is assigned with any value from any of the ARGUMENTS of direction OUT from INVOKE WORKFLOW FILE activity
kindly check that once
to validate whether that datatable variable has any value in it use a WRITE LINE activity before this ASSIGN and mention like this
TransactionData.Rows.Count.ToString so that we will get to know whether it has records in it or not
and also initiate that variable with a default value as New System.Data.Datatable

Cheers @Hari_HK

@Hari_HK

image

Please check the Import arguments here.

Is the argument of Type Out and assigned to TranasctionData ?