重现步骤
CODE:N1432363
Error:16_8152_30_-2146232060
SQL:
                    if exists (select * from tempdb.dbo.sysobjects where id = object_id(N'tempdb..#tbOrderSourceID') and type='U')
                       drop table #tbOrderSourceID

                    create table #tbOrderSourceID
                    (
                     Id int primary key
                    )

                    insert into #tbOrderSourceID
                    select item as Id from CharSplitForIn('8521,6457,7745,8415,9043,7189,6458,7744,8502,6587,6258,6257,6255,9686,5398,13804,10796,3000',',')

                
                            if exists (select * from tempdb.dbo.sysobjects where id = object_id(N'tempdb..#tbSKUs') and type='U')
                               drop table #tbSKUs

                            create table #tbSKUs
                            (
                             Id nvarchar(50) primary key
                            )

                            insert into #tbSKUs
                            select item as Id from CharSplitForIn('https://i.ebayimg.com/images/g/w2AAAOSwe29jkrqG/s-l1600.jpg',',')

                        
                    SELECT * FROM (
                    SELECT
                    ROW_NUMBER() OVER (ORDER BY  SalesMoth DESC ) AS [PageIndex] ,* FROM (
            SELECT P.ListingProductID,
                   P.CustomerID,
                   P.OrderSourceID,
                   P.SiteCode,
                   P.ListingBasicID,
                   P.SKU,
                   P.OrderSourceSKU,
                   P.BuyItNowPrice,
                   P.EnableBestOffer,
                   B.Duration,
                   B.EnableTimerPosting,
                   B.TimerPosting,
                   P.MinBestOfferPrice,
                   P.AutoAcceptPrice,
                   P.Quantity,
                   P.EAN,
                   P.UPC,
                   P.EPID,
                   P.ParentListingProductID,
                   P.IsVariation,
                   P.ProductType,
                   P.IsPriceStrategy,
                   P.PriceStrategyID,
                   P.PriceStrategyName,
                   B.TagName,
                   B.ItemID,
                   B.ListingType,
                   B.ProductTitle,
                   B.ProductSubTitle,
                   B.AuctionStartPrice,
                   B.AuctionReservePrice,
                   B.AuctionBuyItNowPrice,
                   B.Brand,
                   B.BrandMPN,
                   B.ClassID1,
                   B.ClassID2,
                   B.StoreClass1,
                   B.StoreClass2,
                   B.StoreURL,
                   B.StartTime,
                   B.FbaOrderSourceSKU,
                   B.EndTime,
                   Isnull(B.UpdateStatus, 0)             UpdateStatus,
                   B.ViewItemURL,
                   B.AddTime,
                   B.AdminID,
                   B.AdminName,
                   B.UpdateTime,
                   B.UpdateAdminID,
                   B.UpdateAdminName,
                   B.AddItemAdminID,
                   B.AddItemAdminName,
                   B.SellerAdminID,
                   B.SellerAdminName,
                   B.AddItemFee,
                   B.OnlineState,
                   B.Visits,
                   B.RowVersion,
                   B.SyncTime,
                   B.IsSync,
                   ISNULL(B.QuantitySold,0) QuantitySold,
                   OS.OrderSourceName,
                   '' ClientSKU,
                   '' ProductNameCN,
                   NULL ProductState,
                   Isnull(ASP.EnableAutoSupplement, 0)   EnableAutoSupplement,
                   Isnull(ASP.IsInventoryCheck, 0)       IsInventoryCheck,
                   ASP.ListingQty,
                   ASP.SupplementaryQty,
                   B.Warehouse,
                   ELS.SiteCountry,
                   country.CountryDescription,
                   Isnull(LSA.SalesToday, 0)             AS SalesToday,
                   Isnull(LSA.SalesYesterDay, 0)         AS SalesYesterDay,
                   Isnull(LSA.SalesBeforeDay, 0)         AS SalesBeforeDay,
                   Isnull(LSA.SalesMoth, 0)              AS SalesMoth,
                   Isnull(LSA.SalesDayTrend, 0)          AS SalesDayTrend,
                   Isnull(LSA.ViewsToday, 0)             AS ViewsToday,
                   Isnull(LSA.ViewsYesterDay, 0)         AS ViewsYesterDay,
                   Isnull(LSA.ViewsBeforeDay, 0)         AS ViewsBeforeDay,
                   Isnull(LSA.ViewsMoth, 0)              AS ViewsMoth,
                   Isnull(LSA.ViewsDayTrend, 0)          AS ViewsDayTrend,
                   Isnull(ESSA.SalesWeek, 0)             AS SalesWeekSKU,
                   Isnull(ESSA.SalesTwoWeek, 0)          AS SalesTwoWeekSKU,
                   Isnull(ESSA.SalesMoth, 0)             AS SalesMothSKU,
                   Isnull(ESSA.SalesThreeMoth, 0)        AS SalesThreeMothSKU,
                   CASE
                     WHEN Isnull(LSA.ViewsToday, 0) = 0 THEN 0
                     ELSE Round(CONVERT(FLOAT, Isnull(LSA.SalesToday, 0)) / CONVERT(FLOAT, LSA.ViewsToday), 4) * 100
                   END                                   AS RoiToday,
                   CASE
                     WHEN Isnull(LSA.ViewsYesterDay, 0) = 0 THEN 0
                     ELSE Round(CONVERT(FLOAT, Isnull(LSA.SalesYesterDay, 0)) / CONVERT(FLOAT, LSA.ViewsYesterDay), 4) * 100
                   END                                   AS RoiYesterDay,
                   CASE
                     WHEN Isnull(LSA.ViewsBeforeDay, 0) = 0 THEN 0
                     ELSE Round(CONVERT(FLOAT, Isnull(LSA.SalesBeforeDay, 0)) / CONVERT(FLOAT, LSA.ViewsBeforeDay), 4) * 100
                   END                                   AS RoiBeforeDay,
                   CASE
                     WHEN Isnull(LSA.ViewsMoth, 0) = 0 THEN 0
                     ELSE Round(CONVERT(FLOAT, Isnull(LSA.SalesMoth, 0)) / CONVERT(FLOAT, LSA.ViewsMoth), 4) * 100
                   END                                   AS RoiMoth,
                   0 SkuCount,
                   B.BidCount,
                   B.BidCurrentPrice,
                   P.OriginalRetailPrice,
                   B.MarkdownPromotionID,    
                   B.MarkdownPromotionName,
                   B.MarkdownPromotionDisCountName,  
                   B.MarkdownPromotionStartDate,      
                   B.MarkdownPromotionEndDate,
                   B.MarkdownPromotionDisCountID,
                   MK.PromotionStatus as MKPromotionStutas
                    ,Isnull(ELPS.SKUAvailableInventory, 0) AS SKUAvailableInventory,
                    Isnull(ELPS.SKUSales, 0)              AS SKUSales,
                    Isnull(ELPS.OrderSourceSKUSales, 0)   AS OrderSourceSKUSales,
                    Isnull(ELPS.ProcurementNum, 0)        AS ProcurementNum,
                    Isnull(ELPS.TransportNum, 0)          AS TransportNum,
                    Isnull(ELPS.BuyerPrice, 0)            AS BuyerPrice,
                    Isnull(ELPS.NeedReplenishment, 0)     AS NeedReplenishment,
                    Isnull(ELPS.SkuEstimateSaleDay, 0)     AS SkuEstimateSaleDay
              FROM   RB_Ebay_Listing_Basic_V2 AS B WITH (NOLOCK)
                 INNER JOIN #tbOrderSourceID OrderSourceIDs ON B.OrderSourceID=OrderSourceIDs.Id  
                
                    left JOIN RB_Ebay_Listing_Product_V2 AS P WITH (NOLOCK)
                     ON B.CustomerID = P.CustomerID
                        AND B.ListingBasicID = P.ListingBasicID
                        AND B.OrderSourceID = P.OrderSourceID
                        AND B.SiteCode = P.SiteCode
                   left JOIN RB_Ebay_Listing_Sale_Attach_V2 LSA WITH (NOLOCK)
                     ON LSA.CustomerID = P.CustomerID
                        AND LSA.ListingBasicID = p.ListingBasicID
                        AND LSA.OrderSourceID = p.OrderSourceID           
                   LEFT OUTER JOIN RB_OrderSource AS OS WITH (NOLOCK)
                     ON B.CustomerID = OS.CustomerID
                        AND B.OrderSourceID = OS.ID
                   LEFT JOIN RB_Ebay_Listing_AutoSupplement_V2 ASP WITH (NOLOCK)
                     ON ASP.CustomerID = P.CustomerID
                        AND ASP.ListingBasicID = P.ListingBasicID
                        AND ASP.ListingProductID = P.ListingProductID
                        AND ASP.OrderSourceID = P.OrderSourceID
                        AND ASP.SiteCode = P.SiteCode
                    LEFT JOIN RB_Ebay_SKU_Sale_Attach_V2 ESSA WITH (NOLOCK)
                     ON ESSA.SKU = P.SKU
                        AND ESSA.CustomerID = P.CustomerID
                   LEFT JOIN RB_Ebay_Listing_Shipping_V2 ELS WITH(NOLOCK)
                     ON  B.ListingBasicID=ELS.ListingBasicID
                         AND  B.CustomerID=ELS.CustomerID
                   LEFT JOIN E_Ebay_Country_V2 country (NOLOCK)
                     ON country.Country = ELS.SiteCountry
                   
                   LEFT JOIN RB_Ebay_Listing_Markdown_Promotion MK  WITH(NOLOCK)
                     ON MK.CustomerID=P.CustomerID
                        AND MK.ID=B.MarkdownPromotionID
                        LEFT JOIN RB_Ebay_Listing_Product_Sales_V2 ELPS WITH(NOLOCK)
                        ON ELPS.CustomerID = P.CustomerID
                        AND ELPS.ListingBasicID = P.ListingBasicID
                        AND ELPS.ListingProductID = P.ListingProductID
                        AND ELPS.SKU = P.SKU
                        AND ELPS.OrderSourceID = P.OrderSourceID
            WHERE  P.CustomerID = @CustomerID
                    AND P.IsVariation = 0  AND (EXISTS(SELECT NULL
                                                             FROM   RB_Ebay_Listing_Product_V2 (NOLOCK) PSKU
                                                             INNER JOIN #tbSKUs SKUs ON PSKU.SKU=SKUs.Id
                                                                    WHERE PSKU.CustomerID = B.CustomerID
                                                                    AND PSKU.SiteCode = B.SiteCode
                                                                    AND PSKU.OrderSourceID = B.OrderSourceID
                                                                    AND PSKU.ListingBasicID = B.ListingBasicID) )   AND B.OnlineState=1  ) AS TempTable ) AS  PagerTable WHERE PagerTable.[PageIndex] BETWEEN 1 AND 100 option(maxdop 8)
PARAMS:@CustomerID = 1 ,
MESSAGE:String or binary data would be truncated.
The statement has been terminated.
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.DAL.DBOperator.Query(String SQLString, Int32 Times, SqlParameter[] cmdParms, Boolean IsWriteDB)
   在 RB.DALExtend.RB_Ebay_Listing_Product_V2Extend.GetPagerListNew(CM_GetEbayListingPageListParam parameters, Int32& recordCount)
   在 PandaBuy.ERP.Web.IrobotBox.EbayV2.ListingList.GetListingPageList()
   在 PandaBuy.ERP.Web.IrobotBox.EbayV2.ListingList.OnPreInit(EventArgs e)
   在 System.Web.UI.Page.PerformPreInit()
   在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   在 System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   在 System.Web.UI.Page.ProcessRequest()
   在 System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
   在 System.Web.UI.Page.ProcessRequest(HttpContext context)
   在 ASP.irobotbox_ebayv2_listinglist_aspx.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)
   在 System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus& notificationStatus)
   在 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-01-04 14:50:21, 由 吴高发 创建。
  2. 2023-01-04 15:10:13, 由 胡晓龙 指派给 王翔宇。
    修改了 指派给,旧值为 "huxiaolong",新值为 "wangxiangyu"。
  3. 2023-01-05 11:18:08, 由 王翔宇 指派给 彭康。
    修改了 指派给,旧值为 "wangxiangyu",新值为 "pengkang"。
  4. 2023-01-05 14:02:12, 由 彭康 解决,方案为 系统设计缺陷 。
    修改了 解决方案,旧值为 "",新值为 "bydesign"。
    修改了 解决版本,旧值为 "",新值为 "647"。
    修改了 解决日期,旧值为 "",新值为 "2023-01-05 14:00:50"。
    修改了 指派给 ,旧值为 "pengkang",新值为 "wugaofa"。
    修改了 Bug状态 ,旧值为 "active",新值为 "resolved"。
    修改了 是否确认,旧值为 "0",新值为 "1"。
    修改了 解决者 ,旧值为 "",新值为 "pengkang"。
    页面对传入参数未做验证
  5. 2023-02-09 17:45:37, 由 吴高发 确认Bug。
  6. 2023-02-09 18:15:08, 由 吴高发 指派给 周杰。
    修改了 指派给,旧值为 "wugaofa",新值为 "zhoujie"。
  7. 2023-02-14 14:01:28, 由 周杰 指派给 李乐同。
    修改了 指派给,旧值为 "zhoujie",新值为 "liletong"。
  8. 2023-02-14 14:25:16, 由 李乐同 关闭。
    修改了 Bug状态 ,旧值为 "resolved",新值为 "closed"。
    修改了 指派给 ,旧值为 "liletong",新值为 "closed"。
    修改了 由谁关闭,旧值为 "",新值为 "liletong"。
    修改了 关闭日期,旧值为 "",新值为 "2023-02-14 14:25:16"。
  9. 2023-11-17 09:53:27, 由 刘超 编辑。
    修改了 所属模块,旧值为 "0",新值为 "1863"。
所属项目 技术中心-需求池
所属模块 系统运维   性能优化
所属计划
所属迭代
Bug类型 程序BUG
严重程度 提示
优先级 P2
Bug状态 已关闭
业务部门
影响功能
开发责任人
测试责任人
解决时效 0
激活次数 0
激活日期
是否确认 是
当前指派 Closed 于 2023-02-14 14:25:16
截止日期 0000-00-00
上线时间
上线时效
操作系统
浏览器
关键词
抄送给
所属迭代
相关需求
相关任务
由谁创建 吴高发 于 2023-01-04 14:50:21
影响环境 577

由谁解决 彭康 于 2023-01-05 14:00:50
解决版本 2023智汇一月分支BUG
解决方案 系统设计缺陷
由谁关闭 李乐同 于 2023-02-14 14:25:16
最后修改 刘超 于 2023-11-17 09:53:23
相关Bug