You need to sign in to do that
Don't have an account?

Issue in Data Loader
Hi All,
I am trying to create accounts through Data Loader. The accounts are getting created but the account owner field is getting updated to the user id used for the operation. I am not sure why this error is encountered. I was able to load succesfully without any issues 2 days back. yesterday we did a sandbox refresh. The owner id in production and sandbox for the users are same.
Can some one help us why this issue is encountered.
Regards,
Udaya
If you want to have the object's owner be something other than the uploader's id, then specify it in the CSV file. Create a column in the CSV file to be imported labeled "Object Owner" or similar (the name doesn't matter as long as you know how to map it to the appropriate field in Salesforce) and populate with the Salesforce Ids of the appropriate owners.
- I created a CSV with 2 columns, AccountName and AccountOwner.
- I added 1 record with "Test Account" as the AccountName and the SFID of the second user in my DE (the one I was not logging in as with the Data Loader) as the Account Owner
- I chose Upsert as the import method in Data Loader
- I mapped AccountName from the CSV to Name in Salesforce
- I mapped AccountOwner from the CSV to OwnerId in Salesforce
After the import completed, I had a new Account with Test Account as the name and the non-Data Loader user as the owner.HTH
When you say "there is no option in users hand to select the owner explicitely" do you mean that there is no way, within the Data Loader solely, to match each record to an existing Id in Salesforce? If so then, yes, the Data Loader does not provide dynamic lookup abilities in this sense. You will have to create a report in Salesforce with the Users and their SFID then copy the appropriate SFID into the CSV before uploading via Data Loader.
The only time you would have to insert with Data Loader and make adjustments post-import was if you are using the Mass Transfer Records functionality. And you do not have to use the Mass Transfer Records functionality if you are able to map the owner correctly in the CSV upon initial import.
I apologize for posting about the Mass Transfer Records as this has apparently caused some confusion. The Mass Transfer Records method is completely independent of the Data Loader approach.
I hope this clears things up.
Hi Subhabrata,
I hope what you are telling is absolutely correct!! Can you please let me know then how to use owner id field that is available during creating mapping.How a different owner id can be given in a mapping?? How can we refer new owners id??
Regards,
Boopathy
sorry guys...specially to jpizzala................actually i was just messed up with owner id and created by id.....one can easily choose different owner id(which is a reference).....during uploading data.............................actually one cannot manipulate the create by id.......so i just made up a mess.....as that was the thing i was trying to figure out in my existing project....
cheers mate
From what I unnderstand, reading your suggestion, you have mentioned about creating a csv file with the userId and user name and then import Account information from this other csv file, somehow matching the ownerId with this userid. This last part I did not get, how can you do that.
So basically what we are saying here is that there are two csv files, one with UserName and UserId (User.csv), link and the other which has Account information with probably the UserName (account.csv). How can we have two csv files as the input to the data loader.
I know we can call them one after the other. But in my case there can be more than one rows in the account.csv for a given user, and the User.csv file will have only one ocurrence of a given User. I get an error in the dataloader when I try to upload the OwnerId with User Id from the User.csv, since there are more than one row for a user name.
Please let me know if you have any suggestion.
Thanks
Warm Regards
Swati.
HTH
We need to do this through command line/ batch process on a daily process. Is there a way to somehow merge the two files and update the Names with the User Id in the Account.csv file from the User.csv file.
Thanks
Regards
Swati