python调用带参数的存储过程该如何写
金蝶云社区-广西尚贤李勇
广西尚贤李勇
1人赞赏了该文章 3,081次浏览 未经作者许可,禁止转载编辑于2016年10月13日 21:49:39

str='2016-07-31'
sql ='/*dialect*/ exec BAM_PRO_ExternalCommission ' +str
DBServiceHelper.Execute(this.Context, sql)

报错:
值“Microsoft.Scripting.Interpreter.InterpretedFrameInfo”不是“System.String”类型,不能在此泛型集合中使用。
参数名: key
[{"operation":"BAM_GenerateTCD.ButtonClick"}]
发生时间:21:48:51
错误来源: mscorlib
错误信息:值“Microsoft.Scripting.Interpreter.InterpretedFrameInfo”不是“System.String”类型,不能在此泛型集合中使用。
参数名: key
===================================================
调用堆栈:
在 System.ThrowHelper.ThrowWrongKeyTypeArgumentException(Object key, Type targetType)
在 System.Collections.Generic.Dictionary`2.System.Collections.IDictionary.set_Item(Object key, Object value)
在 Microsoft.Scripting.Interpreter.Interpreter.HandleException(InterpretedFrame frame, Exception exception)
在 Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
在 Microsoft.Scripting.Interpreter.LightLambda.Run5[T0,T1,T2,T3,T4,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
在 System.Dynamic.UpdateDelegates.UpdateAndExecute4[T0,T1,T2,T3,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3)
在 Microsoft.Scripting.Interpreter.DynamicInstruction`5.Run(InterpretedFrame frame)
在 Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
在 Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1)
在 IronPython.Compiler.PythonCallTargets.OriginalCallTarget1(PythonFunction function, Object arg0)
在 System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
在 _Scripting_(Object[] , Object )
在 Kingdee.BOS.Core.Util.PythonUtil.InvokePy(ScriptScope scope, String name, Object args, Dictionary`2 dictMethodList)
在 Kingdee.BOS.Core.DynamicForm.PlugIn.DynamicFormViewPlugInProxy.FireAfterButtonClick(AfterButtonClickEventArgs e)
在 Kingdee.BOS.Web.DynamicForm.DynamicWebFormView.ButtonClick(String key, String menuKey)
在 Kingdee.BOS.Web.DynamicForm.DynamicWebFormController.ButtonClick(String buttonKey, String menuKey, JSONArray postDatas)
错误数据: System.Collections.ListDictionaryInternal