RForcecom icon indicating copy to clipboard operation
RForcecom copied to clipboard

Error in getObjectDescription

Open hiratake55 opened this issue 12 years ago • 5 comments

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)

hiratake55 avatar Dec 19 '12 02:12 hiratake55

Hello, I just ran into this problem as well. Is there fix for it planned? Thanks!

navaneethans1 avatar Apr 06 '15 21:04 navaneethans1

I just ran into this problem as well.

ghost avatar Oct 14 '15 16:10 ghost

Hi, I got this error attempting to retrieve the Case object from a sandbox. Is there a way around this error? Cheers...

randikegaje avatar Aug 30 '16 01:08 randikegaje

I am also waiting for a fix, thanks.

alexbransky avatar Sep 20 '16 19:09 alexbransky

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

BenoitFayolle avatar Nov 12 '18 17:11 BenoitFayolle