Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 general forum

CRM Console App running into SFTP timeout error

(0) ShareShare
ReportReport
Posted on by 105

Hi All,

Our application has a console app, which pulls orders from CRM and SFTPs them over to another system's server.

We occasionally get an SFTP timeout error as below:

12_3_2018 10-52-52 PM - Uploading Invoice file to SFTP
12_3_2018 10-55-24 PM - Error: Failed to upload file stage :Started errorwith error : Session operation has timed out
12_3_2018 10-55-37 PM - Failed to upload file

The issue as I've observed is never with the other system's server, but I believe our console application is timing out. 

Is there a code fix I can apply to prevent it from timing out ? the console app uses  SftpClient for FTP transfer.

Your suggestions and help is greatly appreciated !!

  • RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: CRM Console App running into SFTP timeout error

    It is worth try in stakoverflow or some other community.

  • RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: CRM Console App running into SFTP timeout error

    Not sure about SFTP timeout. sorry :(

  • Toly Rogers Profile Picture
    Toly Rogers 105 on at
    RE: CRM Console App running into SFTP timeout error

    Hi Ravi,

    Thank you for your response, but this is an SFTP timeout error. I'm sorry if my earlier message confused you. We get the below error:

    12_3_2018 10-52-52 PM -   Uploading Invoice file to SFTP

    12_3_2018 10-55-24 PM - Error: Failed to upload file stage :Started errorwith error :  Session operation has timed out

    12_3_2018 10-55-37 PM -   Failed to upload file

    Can you advise how could we handle this one ?

  • RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: CRM Console App running into SFTP timeout error

    Hi,

    If this is  CRM Organization Service  timeout then yes you can increase the timeout value as below-

    using (service = new OrganizationServiceProxy(new Uri(_organizationURI), null, _credential, null))

               {

                   service.Timeout = new TimeSpan(0,10,0);

    Hope this helps.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans