How to use Salesforce Source using Two-factor authentication token
Posted: Thu 15 Sep 2016 23:44
Hello,
I'm trying to use Devart Salesforce Source to load data from Salesforce to MS SQL Server. I have only one way to connect to Salesforce is using Two-factor authentication token (time-based tokens). I am able to setup Devart Salesforce Connection Manager and test the connection using my credentials and token which is provided by Salesforce Authenticator App. But when I execute Data flow task it fails with the following errors:
[Devart Salesforce Source [2]] Error: Devart.Data.Salesforce.SalesforceException (0x80004005): Invalid username, password, security token; or user locked out.
at Devart.SSIS.Salesforce.SalesforceSource.PrimeOutput(Int32 outputs, Int32[] outputIDs, PipelineBuffer[] buffers)
at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostPrimeOutput(IDTSManagedComponentWrapper100 wrapper, Int32 outputs, Int32[] outputIDs, IDTSBuffer100[] buffers, IntPtr ppBufferWirePacket)
[SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on Devart Salesforce Source returned error code 0x80004005. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing. There may be error messages posted before this with more information about the failure.
I assume, that at the moment when SSIS package is run, the token has changed and a connection cannot be established (token changes every 30 sec).
Is there any work around?
Thanks.
I'm trying to use Devart Salesforce Source to load data from Salesforce to MS SQL Server. I have only one way to connect to Salesforce is using Two-factor authentication token (time-based tokens). I am able to setup Devart Salesforce Connection Manager and test the connection using my credentials and token which is provided by Salesforce Authenticator App. But when I execute Data flow task it fails with the following errors:
[Devart Salesforce Source [2]] Error: Devart.Data.Salesforce.SalesforceException (0x80004005): Invalid username, password, security token; or user locked out.
at Devart.SSIS.Salesforce.SalesforceSource.PrimeOutput(Int32 outputs, Int32[] outputIDs, PipelineBuffer[] buffers)
at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostPrimeOutput(IDTSManagedComponentWrapper100 wrapper, Int32 outputs, Int32[] outputIDs, IDTSBuffer100[] buffers, IntPtr ppBufferWirePacket)
[SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on Devart Salesforce Source returned error code 0x80004005. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing. There may be error messages posted before this with more information about the failure.
I assume, that at the moment when SSIS package is run, the token has changed and a connection cannot be established (token changes every 30 sec).
Is there any work around?
Thanks.