Please help me! Issue Get Transaction Data ("message": "If Transaction Number < Transaction COunt: Object reference not set to an instance of an object.") REFramework practice - Calculate Client Security Code

I have an issue for practice 1 REFramework Calculate Client Security Code.
Issue:
Get Transaction Data (“message”: “If Transaction Number < Transaction COunt: Object reference not set to an instance of an object.”) REFramework practice - Calculate Client Security Code

Hi @Vantissha_Devina_ID_AB ,

Mostly the TransactionCount value is empty and hence it is giving out the error.

You could check the values of the variables being passed in the If Activity or to the Get Transaction Data workflow.

You can set a Breakpoint on an Activity inside the Get Transaction Data workflow and perform a Debug so that you could check the values of the variables or arguments using the Immediate Panel.

Check the Below post on How to Debug :

@Vantissha_Devina_ID_AB

Welcome to the community

Run the bot in debug mode…and then open the locals panel when the errror occurs …mostly transactiondata.count that you are performing is empty and either you did not pass the value into the xaml or value is not assigned at all

The error comes when one of the variable is null in the expression

Cheers

So, what should i do with this? Could you guide me?

Error:
https://drive.google.com/file/d/1yKvkPcF3ZqfhJVL6HPPI2WWNdrvLa66u/view?usp=sharing

hmm, the transactiondata.count appeared the value :smiling_face_with_tear:

@Vantissha_Devina_ID_AB

Can you show your xaml and what youa re passing in and out

Cheers

Sure
REFPractice_CalculateClientSecurityHash.zip (2.2 MB)

@Vantissha_Devina_ID_AB

So the issue is here…if you see io_Transactiondata is null when it reached to the condition

And the issue is because you created a variable and an argument with same name…


I deleted the variable and kept only the argument and its working now

Here is the file…Made some additions in login as well to activate and maximize
REFPractice_CalculateClientSecurityHash.zip (975.8 KB)

Hope this helps

Cheers

@Anil_G Thank you so much Sir for your help. I have fixed it, but this practice still not assigned :frowning: I am feeling confuse now

@Vantissha_Devina_ID_AB

Not sure what you meant by that…but if you have any issue…please explain what it is in detailed and we can try to help you…and better maintain one thread for a question…

Is the current question reated to same? Or is it different…a detailed explanation would help in resolving. Would suggest run the process in debug and do step into and check all values after each step so that you know what is hppening in the processes…

Happy Automation.

Cheers

Hi Sir! I have another issue for Process.xaml


How can i solve this?

@Vantissha_Devina_ID_AB

Remove login word from the selector url…if you see the screenshot you are using a url to identify the element window…but the url of the page is different hence its failing…

You have to remove dynamic prts from
The selector for it to work properly…if you have further issues can you please open a separate topic and close this topic …that way it is easy to maintain one thread for an issue.

Cheers

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