web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Not able to connect with CRM after 300000 lakhs records from ssis

(0) ShareShare
ReportReport
Posted on by 45

Hi,

I trying to insert the data around 40lakhs from ssis to crm , i am fetching the data from sql using oledb connection and insert the data into crm through Script Component but when ssis insert 3 lakhs records into crm after that i am getting error "An unsecured or incorrectly secured fault was received from the other party".

so i want to know why after inserting 3 lakhs records into crm issue is coming?

*This post is locked for comments

I have the same question (0)
  • ram r Profile Picture
    on at

    Could be related to organization service timeout, try setting timeout property in OrganizationServiceProxy.

  • Dhiraj Raghuvanshi Profile Picture
    45 on at

    I tried this solution but its not working....below is my code

    OrganizationServiceProxy Orgproxy = new OrganizationServiceProxy(new Uri(CrmUrl), null, credentials, null);

           Orgproxy.Timeout = new TimeSpan(0, 5, 0);

           organizationservice = Orgproxy;

  • Gopalan Bhuvanesh Profile Picture
    11,401 on at

    After how many minutes it is timing out?

  • Dhiraj Raghuvanshi Profile Picture
    45 on at

    my ssis package taking 5 hours for 3lakhs records to inserting data into crm...so after 5 hours its says "An unsecured or incorrectly secured fault was received from the other party"

  • Gopalan Bhuvanesh Profile Picture
    11,401 on at

    I am not sure.

    If it is exactly 5hours, this could be because of a timeout set for 300minutes, somewhere within the pipeline for the connection or any of the accounts used.

  • Gopalan Bhuvanesh Profile Picture
    11,401 on at

    Hi

    Please refer the following link for different timeout and record number limits:

    blogs.msdn.microsoft.com/.../microsoft-dynamics-crm-timeout-settings

    community.dynamics.com/.../microsoft-crm-2011-timeouts-and-limits

  • ram r Profile Picture
    on at

    Try something like this,

    new TimeSpan(1,0, 0, 0);

  • Suggested answer
    prt33k Profile Picture
    6,907 on at

    Hi Dhiraj,

    Whenever running such bulk operation, it is always good to renew proxy if expired.

    You can basically do that in the catch block of the code and then continue with process.

    However this exception itself can happen because of multiple reason and I dont see timeout to be the issue here.

    The issue also happen if there is difference in time on web server and client machine.

    Thanks,

    PS

  • ashlega Profile Picture
    34,477 on at

    Hi Dhiraj,

     This happens, so you can try to adjust the timeout as have been suggested. I find it very useful , though, when ssis package can simply start from where it failed - this usually requires an order by condition to be added to those fetch queries.. or some sort of tracking mechanism where you would mark processed records, for example.. so you don't have to process them again..

  • Dhiraj Raghuvanshi Profile Picture
    45 on at

    Hi prt33k ,

    Can you give some example how to renew proxy in catch block?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans