Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Sales order archiving can sometime give thefollowing the following errors. Can apply to 7.00.175 and , 7.01.00, 7.02.01 databases.

  • String or binary data would be truncated.  

...

The error is caused when there are sales orders with Email logs which have message bodies greater than 255 characters in length. Another cause of the error is when the PrintlogID is greater than 20 characters in length.

Another cause could be due to the length of the Description field in SO_SalesHistory being smaller than the Description field in SO_Lines in which case the below script is required to be run.

Code Block
languagesql
ALTER TABLE SO_SalesHistory ALTER COLUMN Description VARCHAR(255) NULL
  • Archiving sales orders that included lines for service manager jobs errored as follows:

...

The problem was caused by service manager jobs linking part lines to sales order lines.  Download and apply the attached stored procedure to the relevant database.

Solution

title
Warning

SQL skills are required

A working knowledge of SQL Management Studio is required to complete this task

Download and apply the attached modified stored procedure to correct the issue.  The issue has been correct in 7.01.01 under DEV-5934.

View file
nameusp_Jiwa_Archiving_SalesOrders_Provider.sql

...

Filter by label (Content by label)
showLabelsfalse
max5
spacesJ7UG
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ( "sales_orders" , "archiving" , "binary" , "sales" , "archive" , "string" ) and type = "page" and space = "J7UG"
labelssales_orders sales archive archiving string binary


Page Properties
hiddentrue


Related issues

DEV-5934