Uploaded image for project: 'Document Management System'
  1. Document Management System
  2. DMS-1891

DMS | Preprod | API | Error for Send Bulk API

    Details

    • Company:
      All Clients/Multiple Clients

      Description

      Userdid : dmsuserid4cmp1
      AccDid : A7F0PT78MTMZ470WBBT

      Error is received for Send Bulk API

      PFA

        Attachments

        1. BulkAPI.txt
          0.2 kB
        2. Screenshot (4287).png
          Screenshot (4287).png
          211 kB
        3. Screenshot (480).png
          Screenshot (480).png
          188 kB

          Activity

          Hide
          ramya.tantry Ramya Tantry (Inactive) added a comment -

          3C's
          Concern: Error for Send Bulk API
          Cause: Send Bulk API uses parallel loop to generate token for each template. The context that is needed for common routines was not getting initialized for every thread which resulted in this issue. Common routine object was recently removed in caching changes.
          Actual error log: System.AggregateException: One or more errors occurred. (A second operation started on this context before a previous operation completed. This is usually caused by different threads using the same instance of DbContext, however instance members are not guaranteed to be thread safe. This could also be caused by a nested query being evaluated on the client, if this is the case rewrite the query avoiding nested invocations.) ---> System.InvalidOperationException: A second operation started on this context before a previous operation completed. This is usually caused by different threads using the same instance of DbContext, however instance members are not guaranteed to be thread safe. This could also be caused by a nested query being evaluated on the client, if this is the case rewrite the query avoiding nested invocations.
          Correction: We have created a commonroutine object in parallel loop for that different threads use different objects.

          CC:Rohan J Khandave

          Show
          ramya.tantry Ramya Tantry (Inactive) added a comment - 3C's Concern : Error for Send Bulk API Cause : Send Bulk API uses parallel loop to generate token for each template. The context that is needed for common routines was not getting initialized for every thread which resulted in this issue. Common routine object was recently removed in caching changes. Actual error log: System.AggregateException: One or more errors occurred. (A second operation started on this context before a previous operation completed. This is usually caused by different threads using the same instance of DbContext, however instance members are not guaranteed to be thread safe. This could also be caused by a nested query being evaluated on the client, if this is the case rewrite the query avoiding nested invocations.) ---> System.InvalidOperationException: A second operation started on this context before a previous operation completed. This is usually caused by different threads using the same instance of DbContext, however instance members are not guaranteed to be thread safe. This could also be caused by a nested query being evaluated on the client, if this is the case rewrite the query avoiding nested invocations. Correction : We have created a commonroutine object in parallel loop for that different threads use different objects. CC: Rohan J Khandave
          Hide
          priya.dhamande Priya Dhamande (Inactive) added a comment -

          Environment: Preprod OneIM

          API is working as expected.
          Refer screen capture. So, marking jira done.

          Samir Rohan J Khandave

          Show
          priya.dhamande Priya Dhamande (Inactive) added a comment - Environment: Preprod OneIM API is working as expected. Refer screen capture. So, marking jira done. Samir Rohan J Khandave

            People

            Assignee:
            rohan.khandave Rohan J Khandave (Inactive)
            Reporter:
            jayshree.nagpure Jayshree Nagpure (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2.5h
                2.5h