Forum Discussion

Roger667's avatar
Roger667
New Contributor III
2 years ago
Solved

Unable to write salesforce data to s3 in parquet format

I Using saleforce read snap to read data and write to s3 in parquet format but getting error due to 'picklist' data type which is not compatible to parquet. How to handle such datat types problem

  • import requests

    url = "https://MyURL.com?bearer_token=abc123"

    files=[
    ('file',('fileName.png',open('file.png','rb'),'image/png'))
    ]
    headers = {}

    response = requests.request("POST", url, headers=headers, files=files)

    print(response.text)

     

    Try this. The first argument in the file line should be the target filename you want to use. Let me know if this helps.

    Regards,

    Bojan

12 Replies

  • fmdf's avatar
    fmdf
    New Contributor III

    I have turned this on and off several times. The documentation is confusing. That property only seems to apply in certain cases but the UI isn’t disabling it when it doesn’t apply.