Cannot pass a NULL value as a parameter of type 'uniqueidentifier' in a stored procedure

Veli-Jussi Raitila 386 Reputation points
2024-02-06T15:26:19.7366667+00:00

How do I pass a (potential) NULL value to a stored procedure using the InApp SQL Server 'Execute stored procedure' action in Azure Logic Apps Standard?

The parameter is of type uniqueidentifier. Invoking the procedure directly using Transact-SQL works just fine. However, within a workflow I get an exception:

{
  "code": "ServiceProviderActionFailed",
  "message": "The service provider action failed with error code 'ServiceOperationFailed' and error message 'Object reference not set to an instance of an object.'."
}

I would not want to work around such a basic functionality.

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,197 questions
{count} vote

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.