# Salesforce Fetchleads Cron Error

**URL:** <https://forum.mautic.org/t/salesforce-fetchleads-cron-error/6584>\
**Category:** Product Support\
**Created:** [November 19, 2016, 1:44am UTC](https://forum.mautic.org/t/salesforce-fetchleads-cron-error/6584 "2016-11-19T01:44:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mike-accentdm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mike-accentdm/32/1178_2.png) [@mike-accentdm](https://forum.mautic.org/u/mike-accentdm)\
**Post date:** [November 19, 2016, 1:44am UTC](https://forum.mautic.org/t/salesforce-fetchleads-cron-error/6584/1 "2016-11-19T01:44:56Z")

</div>

I have Salesforce integration set up and authenticated successfully and set up teh cron job with the arguments:  
  
_mautic:integration:fetchleads --integration=Salesforce --time-interval=“15 minutes”_  
  
  
  
When I try and run the cron job to fetch leads, I get the following error and nothing is imported:  
  
  
  
**Task “/app/console” successfully completed in 3 seconds, output:**  
  
**Command to fetch contacts from integration**  
  
   
  
**[SymfonyComponentDebugExceptionFatalThrowableError]**  
  
**Call to a member function getId() on null**  
  
  
  
Can anyone shed any light on this?  
  
  
  
Thanks

---

<div class="post-metadata">

**Author:** ![mike-accentdm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mike-accentdm/32/1178_2.png) [@mike-accentdm](https://forum.mautic.org/u/mike-accentdm)\
**Post date:** [November 19, 2016, 1:44am UTC](https://forum.mautic.org/t/salesforce-fetchleads-cron-error/6584/2 "2016-11-19T01:44:56Z")

</div>

I have Salesforce integration set up and authenticated successfully and set up teh cron job with the arguments:  
mautic:integration:fetchleads --integration=Salesforce --time-interval=“15 minutes”

When I try and run the cron job to fetch leads, I get the following error and nothing is imported:

[b]Task “/app/console” successfully completed in 3 seconds, output:  
Command to fetch contacts from integration

[SymfonyComponentDebugExceptionFatalThrowableError]  
Call to a member function getId() on null[/b]

Can anyone shed any light on this?

Thanks

---

<div class="post-metadata">

**Author:** ![mike-accentdm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mike-accentdm/32/1178_2.png) [@mike-accentdm](https://forum.mautic.org/u/mike-accentdm)\
**Post date:** [November 19, 2016, 1:55am UTC](https://forum.mautic.org/t/salesforce-fetchleads-cron-error/6584/3 "2016-11-19T01:55:49Z")

</div>

SOLVED…

In case anyone else has the same problem, I had to re-enter the field mappings in the plugin in Mautic.
