重现步骤

CODE:N1043376
Error:16_4104_1_-2146232060
SQL:
SELECT  vtb.OrderSourceSKUID
FROM    RB_Amazon_Product_Base vtb ( NOLOCK )
        LEFT JOIN RB_StockClearDetailed scd ( NOLOCK ) ON ( vtb.OrderSourceSKUID = scd.ListId
                                                            AND vtb.CustomerID = scd.CustomerID AND vtb.IsDelete=0
                                                            AND ( clearType = 1
                                                              OR clearType = 3
                                                              )
                                                          )
        LEFT JOIN ( SELECT  SUM(GoodNum) AS Inventory ,
                            WareHouseID ,
                            SKU ,
                            CustomerID
                    FROM    RB_WareHouse_Product (NOLOCK)
                    GROUP BY WareHouseID ,
                            SKU ,
                            CustomerID
                  ) AS tbWHN ON ( vtb.WID = tbWHN.WareHouseID
                                  AND vtb.SKU = tbWHN.SKU
                                  AND vtb.CustomerID = tbWHN.CustomerID
                                )
        LEFT JOIN RB_OrderSource b ON vtb.CustomerID = b.CustomerID
                                      AND vtb.OrderSourceID = b.ID
        LEFT JOIN RB_Product p ( NOLOCK ) ON p.CustomerID = vtb.CustomerID
                                             AND vtb.SKU = p.SKU
        LEFT JOIN RB_WareHouse wh ( NOLOCK ) ON wh.CustomerID = p.CustomerID
                                                AND wh.ID = p.DefaultLocalWarehouse
        LEFT JOIN RB_Product_SupplierPrice psb ( NOLOCK ) ON p.CustomerID = psb.CustomerID
                                                             AND p.SKU = psb.SKU
                                                             AND psb.IsDefault = 1
        LEFT JOIN RB_Product_Supplier c ( NOLOCK ) ON psb.CustomerID = c.CustomerID
                                                      AND psb.SupplierID = c.ID
        LEFT JOIN RB_WareHouse swh ( NOLOCK ) ON swh.CustomerID = c.CustomerID
                                                 AND swh.ID = c.TheWareHouseID
        LEFT JOIN dbo.RB_Admin ON vtb.CustomerID = dbo.RB_Admin.CustomerID
                                  AND b.SaleAdminID = dbo.RB_Admin.ID
                                  AND dbo.RB_Admin.IsActive = 1
                                  AND dbo.RB_Admin.IsLock = 0
        LEFT JOIN RB_Product_Admin pa ( NOLOCK ) ON vtb.CustomerID = pa.CustomerID
                                                    AND vtb.SKU = pa.SKU
        LEFT JOIN RB_WareHouse_Product wp ( NOLOCK ) ON wp.CustomerID = vtb.CustomerID
                                                        AND wp.ID = WPID
        LEFT JOIN RB_SalesSactorHolidays sh ( NOLOCK ) ON sh.CustomerID = vtb.CustomerID
                                                          AND sh.ID = vtb.HolidaysID
        LEFT JOIN RB_Customer_Setting setting ( NOLOCK ) ON setting.CustomerID = vtb.CustomerID
        LEFT OUTER JOIN RB_BusinessTeam BT WITH ( NOLOCK ) ON vtb.CustomerID = BT.CustomerID
                                                              AND BT.ID = RB_Admin.BusinessTeamID WHERE   vtb.CustomerID = @CustomerID AND vtb.IsDelete=0  AND vtb.CustomerID=1 AND vtb.IsDelete=0  and isnull(vtb.IsOffShelf,0) in (1,4,5,2,0)  and vtb.OrderSourceSKUID>0   AND vtb.OrderSourceID in(15826)  AND tbColdHot.ID IS NULL
PARAMS:@CustomerID = 1 ,@UserID = 6146 ,@FolderID = 0 ,
MESSAGE:The multi-part identifier "tbColdHot.ID" could not be bound.
TRACE:   在 System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   在 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   在 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   在 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   在 System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
   在 System.Data.SqlClient.SqlDataReader.get_MetaData()
   在 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
   在 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
   在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
   在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
   在 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
   在 System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   在 System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
   在 System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
   在 System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
   在 System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable)
   在 RB.DAL.DBOperator.Query(String SQLString, SqlCommand cmd, Int32 Times, SqlParameter[] cmdParms, Boolean IsWriteDB)   在 RB.DAL.DBOperator.toCommonTipException(SqlException ex, String sql, SqlParameter[] cmdParms)
   在 RB.DAL.DBOperator.Query(String SQLString, SqlCommand cmd, Int32 Times, SqlParameter[] cmdParms, Boolean IsWriteDB)
   在 RB.DALExtend.RB_Amazon_Product_BaseExtend.GetConditionIdList(Int32 customerId, String sql, Int32 folderID, Int32 adminID)
   在 PandaBuy.ERP.Web.ASHX.IrobotBox.BeiKuCommon.SetSaleCondition(Int32 sid, String sname, String sql, Int32 folderID, Int32 adminID)
   在 PandaBuy.ERP.Web.ASHX.IrobotBox.BeiKuCommon.ProcessRequest(HttpContext context)
   在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
   在 System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)
   在 System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)
   在 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
   在 System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
   在 System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)



历史记录  
  1. 2023-04-07 10:51:31, 由 吴高发 创建。
  2. 2023-04-07 11:58:07, 由 关依林 指派给 王翔宇。
  3. 2023-04-07 17:22:05, 由 王翔宇 指派给 冯名明。
    修改了 指派给,旧值为 "wangxiangyu",新值为 "fengmingming"。
  4. 2023-04-08 16:45:58, 由 冯名明 解决,方案为 程序BUG 。
    修改了 解决方案,旧值为 "",新值为 "code"。
    修改了 解决版本,旧值为 "",新值为 "595"。
    修改了 解决日期,旧值为 "",新值为 "2023-04-08 16:36:45"。
    修改了 指派给 ,旧值为 "fengmingming",新值为 "guanyilin"。
    修改了 Bug状态 ,旧值为 "active",新值为 "resolved"。
    修改了 是否确认,旧值为 "0",新值为 "1"。
    修改了 解决者 ,旧值为 "",新值为 "fengmingming"。

    一.该错误主要涉及的功能有:

    导出亚马逊在线报告
    导出产品利润(内测)
    选中项导出
    当前条件导出
    当前页导出
    选中项导出Listing在线报告
    当前条件导出Listing在线报告
    当前条件添加到文件夹
    当前条件下Listing的销售人员

    目前未修复的功能有:当前条件添加到文件夹/当前条件下Listing的销售人员

  5. 2023-04-11 10:26:19, 由 关依林 关闭。
    修改了 Bug状态 ,旧值为 "resolved",新值为 "closed"。
    修改了 指派给 ,旧值为 "guanyilin",新值为 "closed"。
    修改了 由谁关闭,旧值为 "",新值为 "guanyilin"。
    修改了 关闭日期,旧值为 "",新值为 "2023-04-11 10:26:19"。

  6. 2023-11-17 09:53:26, 由 刘超 编辑。
    修改了 所属模块,旧值为 "1740",新值为 "1863"。
所属项目 技术中心-需求池
所属模块 系统运维   性能优化
所属计划
所属迭代
Bug类型 程序BUG
严重程度 提示
优先级 P2
Bug状态 已关闭
业务部门
影响功能
开发责任人
测试责任人
解决时效 0
激活次数 0
激活日期
是否确认 是
当前指派 Closed 于 2023-04-11 10:26:19
截止日期 0000-00-00
上线时间
上线时效
操作系统
浏览器
关键词
抄送给
所属迭代
相关需求
相关任务
由谁创建 吴高发 于 2023-04-07 10:51:30
影响环境 577

由谁解决 冯名明 于 2023-04-08 16:36:45
解决版本 四月分支
解决方案 程序BUG
由谁关闭 关依林 于 2023-04-11 10:26:19
最后修改 刘超 于 2023-11-17 09:53:23
相关Bug