RForcecom
RForcecom copied to clipboard
Error in getObjectDescription
An error happens when retrieving some custom objects' description.
Error in data.frame(active = "true", defaultValue = "false", label = "[some proprietary info...]", :
arguments imply differing number of rows: 1, 0
Error occurs at this code.
xdfDFList <- sapply(xdfList, data.frame)
Hello, I just ran into this problem as well. Is there fix for it planned? Thanks!
I just ran into this problem as well.
Hi, I got this error attempting to retrieve the Case object from a sandbox. Is there a way around this error? Cheers...
I am also waiting for a fix, thanks.
Error originates from empty fields in nested lists of xdfList
. At least for me..
My quick fix is sapplying a custom function to paste those nested lists with collapse="," (~line 33 in the function script):
xdfList <- sapply(xdf,xmlToList)
xdfListClean <- sapply(xdfList,
function(x){
x_clean=x
isList=sapply(x,is.list)
if(sum(isList)>0)
x_clean[which(isList==T)]=sapply(x[which(isList==T)],
function(y){paste(y,collapse=",")})
x_clean
})
xdfDFList <- sapply(xdfListClean, data.frame)
hope this helps