-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parsing Failures #12
Comments
@r-lister I think we just need to give you the option to override or specify the Line 104 in bb6384d
Salesforce is a little goofy in that the columns don't always come back in the order that you specify them in the query, so your suggestion of having a |
@StevenMMortimer Thanks for looking into it so quickly! Thanks again, |
Just to add to this while I have you, often I get a timeout error running the sf_query_bulk() function. It tells me to use the api_type of "Bulk 2.0" but if I try run Is there anyway to use Bulk 2.0? |
@r-lister I'm going to move this into a separate issue and reply there. |
@r-lister This has been fixed. If you want to force everything to be character columns, then just turn off the type guessing with the new argument
In order to see this new feature you will have to re-install from GitHub using |
Thanks @StevenMMortimer ! |
Hi Steven, this might be related. I have an issue with Below I try to give the example: ~VolunteerStatus, ~Speaker__c, ~VIP__c, default to FALSE, when instead I have some other values in SALESFORCE 1) USING guess_types = FALSE
These are the wrong values
========================== 2) USING guess_types = TRUE (default)
These are the correct values
|
@Lulliter Thanks for making a note. I'll have to look into it some more, but first, can you uninstall and re-install the salesforcer and readr packages? Every minor version of R 3.x, requires you to re-install the packages and the UPDATE: I've also just tested with a custom checkbox and a custom picklist on the Contact object and didn't see any issues. |
Thank you very much, I did and it is now working for me too - on R 3.5 which is where I was having the issue. |
I know this is closed, but just wanted to add this in the thread for documentation purposes. If you're using queried_records <- sf_query(my_soql,
object_name = "Contact",
api_type = "Bulk 1.0",
guess_types = FALSE) |
Hi Steven,
I'm having an issue loading an object from salesforce. The problem is one of the columns is expected to be a double and I need it to be a string. Here is my code:
salesforce_data <- sf_query_bulk(paste0("SELECT ",field_list," FROM my_object"), object_name = "my_object")
The record is about 130k rows and I get a parsing error on 254 of them where it expected a double:
Warning: 254 parsing failures. row col expected actual file 19845 my_field a double ag:23842931048080057 literal data 19846 my_field a double ag:23842931012580057 literal data 19847 my_field a double ag:23842931069470057 literal data 19848 my_field a double ag:23842931028810057 literal data 19849 my_field a double ag:23842931028810057 literal data ..... ................. ........ .................... ............ See problems(...) for more details.
(254 more of the same)
All of the issues are of the same field, I would like the whole column to be brought through as string so I don't lose these rows - as they currently come through as null after the parsing failure.
Is there anyway to specify what type to bring the columns through as? Or bring them all through as strings?
Thanks,
Ryan
The text was updated successfully, but these errors were encountered: