Android Question Error: The given key was not present in the dictionary

George_G

Member
Licensed User
Hello,

I have this error and I cannot compile.

I get this Error Message:


B4A Version: 12.80
Parsing code. (0.24s)
Java Version: 11
Building folders structure. (0.08s)
Compiling code. Error
Error compiling program.
Error description: The given key was not present in the dictionary.
Error occurred on line: 152
Sub CompleteJob(TaskId As Int, success As Boolean, errorMessage As String)
Word: completejob

Any idea how to fix it?

Thank you in advance!
 

Brian Dean

Well-Known Member
Licensed User
Longtime User
Any idea how to fix it?
Well, the compiler is obviously having a problem with the name "CompleteJob", so the first thing that I would try would be to change this subroutine name and see if I got any better information.
 
Upvote 0

George_G

Member
Licensed User
Catch the following error on log.txt in temp folder.


Build modules tree: 0
B4A version: 12.80
.Net version: 4.0.30319.42000
Ini folder: C:\Users\georgegeorgiadis\AppData\Roaming\Anywhere Software\Basic4android
UDP server: 192.168.1.86, broadcast: 192.168.1.255
Global Java version: 11
Gui: 1023
Build modules tree: 0
Gui: 1008
CompilingManager: not ready
Build modules tree: 119
Build modules tree: 0
*** no reuse ***
Build modules tree: 0
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
*** no reuse ***
Gui: 998
Gui: 120
Build modules tree: 20
System.Exception: Error compiling program.
Error description: The given key was not present in the dictionary.
Error occurred on line: 152
Sub CompleteJob(TaskId As Int, success As Boolean, errorMessage As String)
Word: completejob
at f1.a(List`1 A_0, String A_1)
at cj.g()
at ce.a(Object A_0)
Compilation task: 852.0669
Gui: 584
System.Exception: Error compiling program.
Error description: The given key was not present in the dictionary.
Error occurred on line: 152
Sub CompleteJob(TaskId As Int, success As Boolean, errorMessage As String)
Word: completejob
at f1.a(List`1 A_0, String A_1)
at cj.g()
at ce.a(Object A_0)
Compilation task: 837.2396
Gui: 646
 
Upvote 0

George_G

Member
Licensed User
Well, the compiler is obviously having a problem with the name "CompleteJob", so the first thing that I would try would be to change this subroutine name and see if I got any better information.
Hello Mr Brian,

thank you for your reply.
I do not have a subroutine with this name.
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
Are you using the latest version of OkHttpUtils?

 
Upvote 0

George_G

Member
Licensed User
Are you using the latest version of OkHttpUtils?

Same as the latest one. (3.04)
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
Check the Similar Threads at bottom of this page.

Another cause may be due to corrupted .b4a file. You may need to use your backup.

 
Upvote 0

George_G

Member
Licensed User
Check the Similar Threads at bottom of this page.

Another cause may be due to corrupted .b4a file. You may need to use your backup.

Ok I see.
So maybe there is not any way for this one to work again.
I have done a lot of changes, and the last back up is not having these changes.

Thank you.
 
Upvote 0

emexes

Expert
Licensed User
Don't laugh, but I had an inexplicable problem a couple of days ago that was solved by:



I realised later that I'd possibly had two instances of B4J running at the same time :rolleyes:
 
Upvote 0

George_G

Member
Licensed User
Hello Mr Erel,

I deleted this project and starting from a back up. I did not receive the same error again..
I think that the problem arose from the name I gave to a page ("ErrorMessage").
 
Upvote 0
Top