Object reference not set to an instance of an object
DbExecuteService$BatSave.cs:line 135
{
"success": false,
"title": null,
"error": {
"httpTraceId": "0HMAJAQR590JH:00000001",
"httpMethod": "POST",
"httpStatusCode": 200,
"errorCode": 99999,
"errorText": "Object reference not set to an instance of an object.",
"message": "Exception of type 'RG3.PF.Abstractions.Exceptions.BizException' was thrown.",
"stack": " at RG3.BO.DB.Services.DbExecuteService.StartBatSave(PFGlobalParameter pf, BCDbConnection dbConnection, Dictionary`2 dictionaryUrl, SqlConfig sqlConfig, JToken jToken, RequestModuleType rmt, String securityMethod) in C:\\\\0_RG\\\\Code\\\\rg3-pf\\\\RG3.BO.DB\\\\Services\\\\DbExecuteService$BatSave.cs:line 135\\r\\n at RG3.BO.DB.Services.DbExecuteService.StartBatSave(PFGlobalParameter pf, Dictionary`2 dictionaryUrl, SqlConfig sqlConfig, JToken jToken, RequestModuleType rmt, String securityMethod) in C:\\\\0_RG\\\\Code\\\\rg3-pf\\\\RG3.BO.DB\\\\Services\\\\DbExecuteService$BatSave.cs:line 54\\r\\n at RG3.BO.Op.Services.BatSaveService.BatSave(PFGlobalParameter pf, String mkey, String resField, Dictionary`2 dictionaryUrl, SqlConfig& sqlConfig, JToken jToken) in C:\\\\0_RG\\\\Code\\\\rg3-pf\\\\RG3.BO.Op\\\\Services\\\\BatSaveService.cs:line 91\\r\\n at RG3.PF.Op.Controller.BatSaveController.BatSave(JArray jarray, String mkey, String resField) in C:\\\\0_RG\\\\Code\\\\rg3-pf\\\\RG3.BO.Op\\\\Controller\\\\BatSaveController.cs:line 72\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|19_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\\r\\n at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)\\r\\n at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)\\r\\n at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\\r\\n at RG3.PF.Abstractions.Middlewares.GlobalExceptionMiddleware.Invoke(HttpContext context) in C:\\\\0_RG\\\\Code\\\\rg3-pf\\\\RG3.PF.Abstractions\\\\Middlewares\\\\GlobalExceptionMiddleware.cs:line 46",
"help": "{error.ErrorCode}"
}
}
确认saveSqlPrimary是否配置
"saveSqlPrimary": {
"isBat": false,
"isSaveReturnObj": false,
"tableName": "bo_user_merge",
"primaryColumn": [
{
"isIdentity": false,
"tableId": 1,
"colName": "merge_user_id",
"field": "mergeUserId"
},
{
"isIdentity": false,
"tableId": 1,
"colName": "user_id",
"field": "userId"
}
]
},
文档更新时间: 2022-10-24 13:49 作者:admin