Skip to content

Run-time Error when adding body parameter to WebRequest in x64 #239

Open
@levitatejay

Description

@levitatejay

I'm getting the following error:
Run-time error '5': Invalid procedure call or argument

When calling AddBodyParameter on a WebRequest

The error occurs on the line:dict_pDictionary.Item(Key) = Value

In:

Public Property Let Item(Key As Variant, Value As Variant)
#If Mac Or Not UseScriptingDictionaryIfAvailable Then
    If Me.Exists(Key) Then
        dict_ReplaceKeyValue dict_GetKeyValue(Key), Key, Value
    Else
        dict_AddKeyValue Key, Value
    End If
#Else
    dict_pDictionary.Item(Key) = Value
#End If
End Property

The key is "propertyName" and the value is "asdasdasd". This error occurs after its already looped through and added some Body Parameters.

The exact same code and input runs fine on 32bit Excel 2010, 2013 and 2016.
The error is occurring for me in x64 Excel 2016

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions