Contacts Build Import - multipart - Unable to process JSON error
Hello -
I have search this community as well as posted on Slack regarding this issue. I update thousands of contacts daily and need to send them in bulk as processing them one at a time takes too long. I have followed the documentation and suggestions made by others without success. I am hopeing someone here can point out the obvious mistake and get me on my way.
I wrote a simple PowerShell script to send the bulk file. HubSpot receives the request and returns an error 'Uable to process JSON'. Here is my code, file, and HubSpot API messages. In the below code, I generated the JSON by first creating an array and then converting to JSON. I have also written the variable as text and convert to JSON - failed with the same error. I have written the variable as JSON directly - failed with the same error. As you can see, the request body in the HubSpot API log looks correct. HubSpot appears to be receiving the correct information. Why is this error occurring and not processing?
I have spent hours on this and would greatly appreciate any help.