Loading

Error "The input RData file contains 0 members" Connecting to RData File

Udgivelsesdato: Feb 24, 2026
Beskrivelse

When connecting to an RData file (.rda, .rdata) in Tableau Desktop, the following error message is received:
 

An error occurred while communicating with the data source.
Unable to connect to the Server. Check that the server is running and you have access privileges to the requested database.

The input RData file contains 0 members, there is no data to transfer, please check the log for further details.
Error reading file mydata.rda: error code=-1
The table "[...].[...]" does not exist.
 

Cause

When connecting to an RData file in Tableau Desktop, the file must contain only one object, and that object must be a data frame or a matrix

Løsning
Ensure that the RData file contains only a single data frame or matrix.
  1. This can be done using the str() function in RStudio. For example:
    > str(mydata)
    Classes ‘tbl_df’ and 'data.frame':    8 obs. of  9 variables:
    (--- lines of data ---)
    • Notice how the above RData file contains an extra 'tbl_df' class. This file will produce the above error message in Tableau Desktop.
  2. To extract only the data frame from the bove file, use the as.data.frame() function. For example:
    > TEMP <- as.data.frame(mydata)
  3. Now, if we were to use str() on TEMP, we get the following output:
    > str(TEMP)
    'data.frame':    8 obs. of  9 variables:
    (--- lines of data ---)
  4. We can now save the extracted data frame to a new RData file:
    > save(TEMP,file = "mydataNEW.rda")
  5. Now that mydataNEW.rda contains only the data frame object, it should load successfully in Tableau Desktop.
Vidensartikelnummer

001498351

 
Indlæser
Salesforce Help | Article