AzureSMR icon indicating copy to clipboard operation
AzureSMR copied to clipboard

Error trying to write to Blob

Open krunalhd opened this issue 5 years ago • 0 comments

I have dataframe which I converted to csv using write.csv. Here result is dataframe write.csv(result, textConnection("forecastedAlerts", "w"))

azurePutBlob(sc, storageAccount = "<storageAccount>", container = "", contents = forecastedAlerts, blob = "forecastedAlerts")

This is giving error as

Error : 1: Opening and ending tag mismatch: meta line 5 and head Error : 1: Opening and ending tag mismatch: meta line 5 and head 2: Opening and ending tag mismatch: hr line 9 and body 3: Opening and ending tag mismatch: body line 7 and html 4: Premature end of data in tag head line 3 5: Premature end of data in tag html line 2

In addition: Warning message: In charToRaw(object) : argument should be a character vector of length 1 all but the first element will be ignored.

If I write simple strings in contents it works fine. But converting dataFrame to csv and writing it fails.

krunalhd avatar Jul 30 '18 18:07 krunalhd