Define query tag using stored procedure

Good morning,
I’m trying to define a query tag ( DATATSET type) using stored procedure.

Stored procedure is ok if tested in SQL Manager, but when i go to use in query definition don’t work.

Here my definition for dataset

DECLARE @return_value int

EXEC @return_value = [dbo].[spDatasetTRS]
@pGPlant = N ‘{[.]…/…/…/…/Plant}’,
@pMaccha = N’{[.]…/…/MachineExt}’

Somebody can help me to understand why don’t work?