function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
vanrentvanrent 

Completed Task export fields invalid mapping

Using the command line dataloader, I would like to export some of the fields in the Task table. I want to differentiate between Calls, Emails, etc. My thought is this data would be found in the Type field.

I've built the sdl file, setting the mapping for a few of the SF fields, then written the sql in the process-conf file. The following works:


#Mapping values
#Tue Dec 04 10:36:00 EST 2012
Description=Description
ActivityDate=ActivityDate
Subject=Subject
CallObject=CallObject
Id=Id
CallType=CallType
OwnerId=OwnerId
WhoId=WhoId
CallDisposition=CallDisposition
WhatId=WhatId
CreatedDate=CreatedDate
SystemModstamp=SystemModstamp

with the following sql in the process-conf:

<entry key="sfdc.extractionSOQL" value="Select WhoId, WhatId, Subject, ActivityDate, Description, CallType, CreatedDate FROM Task"/>

However, if I add Type to the mapping:
#Mapping values
#Tue Dec 04 10:36:00 EST 2012
Type=Type
Description=Description
ActivityDate=ActivityDate
Subject=Subject
CallObject=CallObject
Id=Id
CallType=CallType
OwnerId=OwnerId
WhoId=WhoId
CallDisposition=CallDisposition
WhatId=WhatId
CreatedDate=CreatedDate
SystemModstamp=SystemModstamp

 

and the process-conf:

<entry key="sfdc.extractionSOQL" value="Select WhoId, WhatId, Subject, ActivityDate, Description, CallType, CreatedDate, Type FROM Task"/>

 

I get the following error:

FATAL [main] process.ProcessRunner topLevelError (ProcessRunner.java:238) - Unable to run process CompTaskExtract java.lang.RuntimeException: com.salesforce.dataloader.mapping.Mapper$InvalidMappingException: No such field type on entity Task.

 

Any help would be appreciated!

 

Thanks,

Connie

 

vanrentvanrent

I think I have it figured out.

From reading other posts, I checked the setup for the tasks & the field was not on the screen design. Once I added the field, I was able to pull the data.