Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. SSIS - Truncation may occur due to inserting data

SSIS - Truncation may occur due to inserting data

Scheduled Pinned Locked Moved Database
databasecsharpsql-servervisual-studioagentic-ai
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Smith2014
    wrote on last edited by
    #1

    795]] Warning: Truncation may occur due to inserting data from data flow column "AS" with a length of 16 to database column "AS" with a length of 15. I resolved this issue yesterday but today it failed again. The package is successful if I run from Microsoft Visual studio. However, if I run initiate the job through SQL job agent it will fail. Does anyone have a better idea to resolve this?

    Kornfeld Eliyahu PeterK J M 3 Replies Last reply
    0
    • S Smith2014

      795]] Warning: Truncation may occur due to inserting data from data flow column "AS" with a length of 16 to database column "AS" with a length of 15. I resolved this issue yesterday but today it failed again. The package is successful if I run from Microsoft Visual studio. However, if I run initiate the job through SQL job agent it will fail. Does anyone have a better idea to resolve this?

      Kornfeld Eliyahu PeterK Offline
      Kornfeld Eliyahu PeterK Offline
      Kornfeld Eliyahu Peter
      wrote on last edited by
      #2

      Please do not re-post - it will not get you a quicker or better answer, but may piss off some of the CPians around us :)

      I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)

      "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

      S 1 Reply Last reply
      0
      • Kornfeld Eliyahu PeterK Kornfeld Eliyahu Peter

        Please do not re-post - it will not get you a quicker or better answer, but may piss off some of the CPians around us :)

        I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)

        S Offline
        S Offline
        Smith2014
        wrote on last edited by
        #3

        Thank you for your observation.

        Kornfeld Eliyahu PeterK 1 Reply Last reply
        0
        • S Smith2014

          Thank you for your observation.

          Kornfeld Eliyahu PeterK Offline
          Kornfeld Eliyahu PeterK Offline
          Kornfeld Eliyahu Peter
          wrote on last edited by
          #4

          You're more than welcome..

          I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)

          "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

          1 Reply Last reply
          0
          • S Smith2014

            795]] Warning: Truncation may occur due to inserting data from data flow column "AS" with a length of 16 to database column "AS" with a length of 15. I resolved this issue yesterday but today it failed again. The package is successful if I run from Microsoft Visual studio. However, if I run initiate the job through SQL job agent it will fail. Does anyone have a better idea to resolve this?

            J Offline
            J Offline
            jschell
            wrote on last edited by
            #5

            And when you run it using the different methods do you - Use EXACTLY the same data. How do you know? - Use EXACTLY the same database? How did you verify it?

            1 Reply Last reply
            0
            • S Smith2014

              795]] Warning: Truncation may occur due to inserting data from data flow column "AS" with a length of 16 to database column "AS" with a length of 15. I resolved this issue yesterday but today it failed again. The package is successful if I run from Microsoft Visual studio. However, if I run initiate the job through SQL job agent it will fail. Does anyone have a better idea to resolve this?

              M Offline
              M Offline
              Mycroft Holmes
              wrote on last edited by
              #6

              One of the issues I have run across over time is in the data itself. If your source is a legacy system then there may be a crlf issue, it can be either 1 or 2 characters. They sometimes use weird row terminators as well. I would check if AS is the last field in a row and then pull the data into a string and check the length of the field. VS may well treat line feeds differently than SSIS.

              Never underestimate the power of human stupidity RAH

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups