The given key " " was not present in the dictionary

I am a beginner and started working on ReFramework. I was going through a tutorial on YT but now I am stuck. I am able to push the excel data to the queue but unable to assign it to a variable. I wanted to calculate the total. Something is not working in the process state because you can see the data is pushed to the queue successfully.



Screenshot 2023-03-02 163849


HI @akheelahmad

Can you check once that argument has been passed correctly between Main.xaml to Process.xaml

Regards
Sudharsan

Hi @akheelahmad, I don’t wanna sound weird here but can you please check if you’re pulling information from right queue!

First off you should use Bulk Add Queue Items, not Add Queue Item with a loop.

But mainly your error is because in the source data the column name is “Shared Hosting Fee” but for some reason you’re trying to reference it as SpecificContent(“In_SharedFee”). You also need to .ToString it before CInt-ing it. Use SpecificContent(“Shared Hosting Fee”).ToString

CInt(in_TransactionItem.SpecificContent(“Shared Hosting Fee”).ToString)

But I’m wondering why you’re assigning it to a variable. You don’t need to do that extra step. Just use the above expression when you need the value. You don’t have to assign it to a variable then use the variable.

@akheelahmad

I see you ran it in debug…

Open the locals panel and expand in_transactionitem and check if the key is same…

May be in place of i you might have used L …or check if the queue is pointed properly to the target queue

Cheers

1 Like

Yeah… this could be one of the reasons.

@akheelahmad, please copy the key value from here and

paste it here