Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8283751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T10:51:08+00:00 2026-06-08T10:51:08+00:00

I have a text field in a table with other spatial types. As part

  • 0

I have a text field in a table with other spatial types. As part of a SSIS package, I am using this text field to run an update (as a SQL task) on the same table and update the geometry and geography columns. I was able to successfully run the following query yesterday

UPDATE Location 
SET [Geometry] = geometry::STGeomFromText(ShapeText, 4326).MakeValid()
FROM Location 
WHERE ShapeText IS NOT NULL

But, today it has been throwing the following exception:

Msg 6522, Level 16, State 1, Line 10 A .NET Framework error occurred
during execution of user-defined routine or aggregate “geometry”:
System.FormatException: 24141: A number is expected at position 65536
of the input.

When I looked at the shape, its definitely a valid shape. So the problem is not in the shape but that SQL is only reading upto 65536 characters from the column. And it works when the shapetext is less than 65536 characters.

It would be great if someone coud help me with this and let me know how to read more than 65536 characters from a text field.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T10:51:11+00:00Added an answer on June 8, 2026 at 10:51 am

    So, finally I found the problem and the solution for it.Even though the problem seems a bit too discrete, I hope it helps someone else.

    PROBLEM: I started searching for this 65536 character error message and it led me to blogs that mentioned the SQL memory issues. I then checked my SQL logs and it did have error messages reporting:

    Failed to reserve contiguous memory of Size= 65536

    The confusion was that it was working one day and then the next day, it started throwing me the error messages, so I definitely had a memory eating operation somewhere. On careful examination, I found that there was a derived column on my SSIS package that was the root of all memory issues. The derived column was checking the length of a text field and setting it to null if the length was zero.

    SOLUTION: I removed the derived column operation and replaced it with a SQL task instead and its working beautifully once again.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For example: In my table I have text field with following text: The quick
In one of the ms-access table I work with we have a text field
I have a feed that is populating a single text field in a table
I have an HTML table in my jsp page. This conains text fields and
I have a table view with two rows, each with a text field. One
I have a text field cell in a table view, from which I need
I have a MySQL table with a 'tags' field, which is using a FULLTEXT
Say I have a 'user_log' table with the following field: id user_id status_text timestamp
I have a table with a collection of orders. The fields are: customerName (text)
I have a text field. If it has wrong values then it may show

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.