Process.xaml error

I’m getting error in assignment 2 in process.xaml file , which is as follows ( if object reference not set to an instance of an object ) . Can you help me resolve this issue …

Hi @Syed_Arshad,

Before if condition, put one writeline with in_TransactionItem.tostring to verify it has any value or not.

Try this.!

Thanks!

Hi
with this IF condition use a expression like this
in_TransactionItem is nothing and in_TransactionItem.Equals(“1”)

this error usually occurs when the variable associated with the activity where this error occurred has no value in it
Cheers @Syed_Arshad

2 Likes

It’s showing like write line object is not set to reference of an object.

Same error

yes…because it holds nothing… please follow as per @Palaniyappan condition.

in_TransactionItem is nothing and in_TransactionItem.Equals(“1”)

Thanks!

aah got it
we need to use Two IF condition like this
use a IF condition like this
in_TransactionItem is nothing
if true it will go to THEN part where leave it and in ELSE part use another IF condition like this
in_TransactionItem.Equals(“1”)
if true it will go to THEN part or goes to ELSE part where we can have the current sequence of click activity and so on

the error occurred again as the same condition use the variable again which doesnt have any value it…thats why…so if we split the IF condition that would work for sure
Cheers @Syed_Arshad

Hi , it got stuck in the first page of the work items it should proceed to next pages which ain’t going

so its working now
kindly ensure that in_transactionItem is incremented with a assign activity

Cheers @Syed_Arshad

So where I have put an assignment activity to increment…

Fine
once data in the current page is processed, so probably atlast in this process state
so that when it iterates next time the in_TransactionItem will be incremented

Cheers @Syed_Arshad

after processing the first page its not iterating to next page…

@Palaniyappan the process.xaml is getting terminated Quoting the error as" Process finished due to no more transaction data"and before going to next page its closing itself

If we have incremented the in_transactionitem variable atlast to the process state before the next one is going to processed and if there is not more data to be proceeded then this is fine
Else we need to check like at which transaction data this getting failed
Cheers @Syed_Arshad

No it’s not going in transaction state , the thing is after login , workitems, it shd move on till last page and reflect in orchestrator queue . Our workflow is not proceeding not taking the workids (Wi4) @Palaniyappan

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.