do you have a counter + 1 somewhere in ur get transaction data state?
@Hasna_Hoque_Mitu sorry for the late reply, I was able to get a look at your project and I was able to resolve the issue. Will be updating you later as Iâm still currently at work.
Have a great day!
Thanks a lot.
I donât think so. Itâs just fetching same data again and again.
@Hasna_Hoque_Mitu Instead of uploading the new workflow Iâm just going to write the things you need to change, since I made some changes with the .json file in order to open it here, and itâs a bit cumbersome to change it back.
The main issue was that you had an âopen browserâ activity in your âSystem1_ExtractClientInformationâ squence. The open browser was directing you to a fixed URL.
Things to make your project better:
- Change imported arguments of invoked workflow GetApp Credentials in_Credential.
- please put double quotes on the value as a string: new value = âSystem1_Credentialâ.
- Remove open browser activity w/ fixed URL in âSystem1_ExtractClientInformationâ
- Use an attach browser for your SHA1Online_GetHashCode instead of an Open browser since this will continuously open a new browser for every transaction without closing. Can cause a strain on your computerâs memory.
- Remove the send hot key activity for your SHA1Online_GetHashCode. I donât see any use for it (please correct me if Iâm wrong).
I can add additional changes, but please try the above fixes first they should be sufficient.
If you encounter any issues, itâs going to be basic activity or selector issues, easily solvable.
thanks a lot.
-
I used attach browser for your SHA1Online_GetHashCode instead of an Open browser but it creates error. Thatâs why i changed it.
-
I used go back instead of send hot key, that also creates error.
whatever Iâm now following your instructions. Let you know the update soon.
Please try using a wild card instead of the âWork Itemsâ for the selector in your attach browser.
Something like this:
Iâve already tested it so that should work, but in the event that it doesnât work, no worries. Iâve already got a work around in mind.
Iâve added the -1 and removed the unused arguments but am now getting this error:
on the assign.
Do I need to add a 1 somewhere else in my arguments - and if so where should I put it?
Thanks,
@AceRenegade
Try using break points & debugging so that youâll see where exactly the error is occurring.
This is a long shot since I havenât seen your entire workflow, but since Iâve already seen your GetTransactionData.xaml and youâve added the -1 try this:
Add an Assign activity in the âProcess Transactionâ below the invoke âProcess.xamlâ of your main file.
Properties of new assign activity:
- To= TransactionNumber
- Value= TransactionNumber + 1
Iâve gone through it step by step.
The data table is being picked up correctly, but when starting the GetTransaction Data workflow the in_TransactionNumber is starting at 0. Is this correct? Surely that would then lead to it returning as -1 when it hits the assign?
is your default transaction number/transaction item default as 1 and 0?
@AceRenegade You donât need to put a default value for the TransactionNumber attribute inside the GetTransactionData Workflow, since it should already have a value of 1 in the Main.
Have you tried adding the assign activity inside the âProcess Transactionâ below the Invoke Process workflow as I mentioned? Or you could also make the default value in the Main for TransactionNumber as 0 and add the +1 after/below the Invoke GetTransactionData inside the GetTransactionData main process.
Regardless the +1 should be added after processing each Transaction.
Iâm really thankful to you that you are helping me.
The file you gave solved a big problem. Now It is not fetching same data again and again . It is fetching different different data but Index is outside of bounds.
Hello @Hasna_Hoque_Mitu, sorry for the late reply, I was a bit busy. Youâre very welcome.
- Try changing the default value of âTransactionNumberâ in the main file from 0 to 1
- Then change the value of the out_TransactionItem in the âAssign TransactionIDâ make it
out_TransactionItem=dt_WorkItems(in_TransactionNumber-1)
Iâll try uploading a new xaml file later if it doesnât work.
Have a great day!
I have done both - same result unfortunately.
@AceRenegade sorry for the lateness of my replies, Iâm a bit busy today.
Try these steps:
- Change the default value of TransactionNumber variable in the Main xaml to 1
- Go to GetTransactionData and change the value of the assign TransactionID (as shown with Hasnaâs workflow)
new value: out_TransactionItem=in_WorkItems(in_TransactionNumber-1) â according to your attributes. - Create an âAssign activityâ inside the state GetTransactionData put it below/after the Invoke GetTransactopnData workflow.
It worked perfectly at my PC. But when I submit it I got 0. What should I do?