ExecuteNonQuery error "Run command: Must declare the scalar variable "@AssetNo"."

When I use ExecuteNoQuery Activity, get “Run command: Must declare the scalar variable “@AssetNo”.” this error. but actually I already set the variable in Parameters.


Hi @li.yu

Try constructing the string using the variable directly and pass the string to run command

cheers

Hello @li.yu

Please check the below Similar post.

Thanks

1 Like

thanks, I tried both ways, but failed.

thanks, I tried, but doesn’t work.

I have the same error. You know how to fix it?

yes, not use by adding parameters, but adding the variable directly.
image

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.