function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
b.gonzalezb.gonzalez 

Msg 6522, Level 16, State 1, Procedure usp_SalesForceBulkImport, Line 0

Here is the message we are getting which is being returned after the lead is created successfully.

Msg 6522, Level 16, State 1, Procedure usp_SalesForceBulkImport, Line 0
A .NET Framework error occurred during execution of user-defined routine or aggregate "usp_SalesForceBulkImport":
System.InvalidOperationException: A result set is currently being sent to the pipe. End the current result set before calling Send.
System.InvalidOperationException:
   at Microsoft.SqlServer.Server.SqlPipe.Send(String message)
   at CMRCLR.CMRCLR.Salesforce.SendToPipe(String strText)
   at CMRCLR.CMRCLR.Salesforce.BulkImport(String SObjectName, String SObjectFieldList, String DataSourceQuery, Boolean IsSandbox, Int16 BatchSize)


Pleas help!

Beth