Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not every "key: value" is in the file so it issues an error #220

Open
cityba opened this issue Jan 10, 2022 · 1 comment
Open

Not every "key: value" is in the file so it issues an error #220

cityba opened this issue Jan 10, 2022 · 1 comment

Comments

@cityba
Copy link

cityba commented Jan 10, 2022

@timhall Throws an error at dump, these are not everywhere:
Type mismatch value-- "accounts":[
"1eb6acd7-2f92-452e-a2e8-e326f86246d7"
],

And "creditorAccount":{
"iban":"HU19117122350745555400000000"
},
What is the solution to n be an error?

@cityba cityba changed the title Error in child data Not every "key: value" is in the file so it issues an error Jan 10, 2022
@Nick-vanGemeren
Copy link

You haven't provided the code which gets the error. :{
After ParseJSON, the keys mentioned will each point to a Collection with 1 item (but possibly 0 or more for other queries).
The Type mismatch is almost certainly due to missingSet keywords.
If the variable dataDict points to the level above, code to access the items might look like:

    Dim i, aColl As Collection
    Set aColl = DataDict("accounts")
    For i = 1 To aColl.Count
        Debug.Print aColl(i)
      Next

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants