We trying to connect to Salesforce using RStudio and running one script. In Salesforce query is getting executed I can see number records correctly extracted in Salesforce Backend JOB but it is giving following error in RStudio. Can some one help.
"Issue with batches submitted"
We are using following script:
library("RForcecom")
library("dplyr")
library("data.table")
library("reshape2")
library("lubridate")
library("bizdays")
library("readxl")
library("zoo")
Set working directory to pick raw data from and to paste the final summary docs.
username <- "xxxxxxxxxxxxxxxxxxxxxx”
password <- "*****"
instanceURL <- "https://xxxxxxxxx.my.salesforce.com/"
session <- rforcecom.login(username, password, instanceURL)
soqlQuery_email <- paste("SELECT RMC_EmailStatus__c,RMC_EmailMessageOpened__c,Times_Opened__c,eRep__r.Zone__c,eRep__r.Area__c,eRep__r.Name,eRep__r.HQ__c,Customer__r.Name,Customer__r.Customer_Code__c,SendDateTime__c FROM RMC_EmailActivity__c",sep="")
emailActivity <- rforcecom.bulkQuery(session, soqlQuery_email, object = 'RMC_EmailActivity__c',interval_seconds=5,max_attempts=1, verbose=FALSE)
Regards
Rajesh Bandekar