<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Query Builder - Issue Clipping Large Text Strings in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Query-Builder-Issue-Clipping-Large-Text-Strings/m-p/941302#M109440</link>
    <description>&lt;P&gt;There could be solution with the ODBC but it might require a bit more looking around as I would assume these would affect the data you get&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;MAXLONGVARCHARSIZE=8092;
MAXVARCHARSIZE=255;
TEXTASLONGVARCHAR=0;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and they clearly do not match with your 524287 so it is most likely being overwritten somewhere else (while still being too small for your use case).&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/3022"&gt;@briancorcoran&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 12 Apr 2026 13:28:19 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2026-04-12T13:28:19Z</dc:date>
    <item>
      <title>Query Builder - Issue Clipping Large Text Strings</title>
      <link>https://community.jmp.com/t5/Discussions/Query-Builder-Issue-Clipping-Large-Text-Strings/m-p/941226#M109433</link>
      <description>&lt;P&gt;I've been using &lt;STRONG&gt;Query Builder&lt;/STRONG&gt; and &lt;STRONG&gt;File-&amp;gt;Connect To-&amp;gt;ODBC-&amp;gt;Open Database Table&lt;/STRONG&gt;&amp;nbsp;to get data from a PostgreSQL data base.&lt;/P&gt;
&lt;P&gt;The table I am getting from the database contains a column with large text strings.&lt;/P&gt;
&lt;P&gt;My text strings are getting clipped when they exceed a length of 524,587. (2^19 -1)&lt;/P&gt;
&lt;P&gt;Is there a setting in JMP and/or JSL that I can change to enable querying larger string values?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;Motivating Situation and Debug Findings&lt;/H3&gt;
&lt;P&gt;I have been exploring the capabilities of the &lt;A href="https://marketplace.jmp.com/appdetails/Torch+Deep+Learning+for+JMP%C2%AE+Pro" target="_self"&gt;Torch Deep Learning add-in&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;I have downloaded a kaggle data set of &lt;A href="https://www.kaggle.com/datasets/harishvutukuri/dogs-vs-wolves" target="_self"&gt;Dogs vs Wolves&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;I used the Import Multiple Files JMP feature to create a data table that contains all of these files (2000 files).&lt;/P&gt;
&lt;P&gt;I used JMP to clean up the data, create a response column, and validation columns, etc...&lt;/P&gt;
&lt;P&gt;I created a PostgreSQL database, schema, and table.&lt;/P&gt;
&lt;P&gt;I used JMP to connect to the database table, concatenated my Dogs vs Wolves data, and saved the information back to the database. The picture column is saved as text in the database using &lt;STRONG&gt;new image( char to blob("...the image info...") )&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I have reviewed the data in the database, and everything appears as expected.&lt;/P&gt;
&lt;P&gt;I used Query Builder to connect to my database and query the entire Dogs vs Wolves table.&lt;/P&gt;
&lt;P&gt;I converted the Picture column from data type Character to Expression to get the images to show in the data table. Of the 2,000 entries, 1986 of them work as expected. 14 of the pictures don't display correctly. These entries include the following pictures:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;wolves/wolf-names-e1528831052890.jpg&lt;/LI&gt;
&lt;LI&gt;wolves/wolf-cubs.jpg&lt;/LI&gt;
&lt;LI&gt;wolves/wolf-4191896__480.png&lt;/LI&gt;
&lt;LI&gt;wolves/pexels-photo-682375.jpeg&lt;/LI&gt;
&lt;LI&gt;wolves/pexels-photo-682361.jpeg&lt;/LI&gt;
&lt;LI&gt;wolves/nature-animal-wolf-wilderness.jpg&lt;/LI&gt;
&lt;LI&gt;wolves/michael-mazzone-xvLRLLfP22o-unsplash.jpg&lt;/LI&gt;
&lt;LI&gt;wolves/hero_gray_wolf_animals.jpg&lt;/LI&gt;
&lt;LI&gt;wolves/gray-wolf_thumbJPG.jpg&lt;/LI&gt;
&lt;LI&gt;wolves/gray-wolf.jpg&lt;/LI&gt;
&lt;LI&gt;wolves/Winter-wolf-snow_-_West_Virginia_-_ForestWander.jpg&lt;/LI&gt;
&lt;LI&gt;wolves/SRX_WOLF_TRAPPING1.JPG.jpg&lt;/LI&gt;
&lt;LI&gt;wolves/Eurasian_wolfJPG.jpg&lt;/LI&gt;
&lt;LI&gt;dogs/n02106382_3756.jpg&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-04-11 180859.png" style="width: 317px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/99208i71826D46B5EEB6A0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2026-04-11 180859.png" alt="Screenshot 2026-04-11 180859.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I have reviewed the Picture information and found that the rows with issues don't have all of their information. The entries end in the middle of the image information.&lt;/P&gt;
&lt;P&gt;I have reviewed the length of the Picture information and found that the corrupted Pictures all have a character length count of exactly 524,287. (2^19 - 1).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-04-11 181648.png" style="width: 413px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/99209iB46C611B618C4EB2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2026-04-11 181648.png" alt="Screenshot 2026-04-11 181648.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I have attempted to change the JSL parameters created by Query Builder, but I have not been successful in resolving the text length clipping. I'm not an SQL expert so I'm hoping that changing some of these settings can resolve my issue.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;New SQL Query(
	Connection(
		"
		ODBC:AB=0;
		BATCHSIZE=100;
		BI=0;
		BOOLSASCHAR=0;
		BYTEAASLONGVARBINARY=1;
		COMMLOG=2;
		CONNSETTINGS=;
		D6=-101;
		DEBUG=2;
		DRIVER={PostgreSQL Unicode(x64)};
		EXTRASYSTABLEPREFIXES=;
		FAKEOIDINDEX=0;
		FETCH=100;
		FETCHREFCURSORS=0;
		IGNORETIMEOUT=0;
		KEEPALIVEINTERVAL=-1;
		KEEPALIVETIME=-1;
		LFCONVERSION=1;
		LOWERCASEIDENTIFIER=0;
		MAXLONGVARCHARSIZE=8092;
		MAXVARCHARSIZE=255;
		OPTIONALERRORS=0;
		PARSE=0;
		PQOPT=;
		PROTOCOL=7.4;
		READONLY=0;
		ROWVERSIONING=0;
		SHOWOIDCOLUMN=0;
		SHOWSYSTEMTABLES=0;
		SSLMODE=disable;
		TEXTASLONGVARCHAR=0;
		TRUEISMINUS1=0;
		UNIQUEINDEX=1;
		UNKNOWNSASLONGVARCHAR=0;
		UNKNOWNSIZES=0;
		UPDATABLECURSORS=1;
		USEDECLAREFETCH=1;
		USESERVERSIDEPREPARE=1;
		XAOPT=1;
		"
	),
	QueryName( "dogs_v_wolves" ),
	Select(
		Distinct,
		Column( "Picture", "t1" ),
		Column( "Label", "t1" ),
		Column( "File Path", "t1" ),
		Column( "Short File Name", "t1" ),
		Column( "FoldA", "t1" ),
		Column( "FoldB", "t1" ),
		Column( "FoldC", "t1" ),
		Column( "Validation", "t1" )
	),
	From( Table( "dogs_v_wolves", Schema( "dogs_v_wolves" ), Alias( "t1" ) ) )
) &amp;lt;&amp;lt; Run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I have attempted to change the JSL parameters created by Open Database Table, but I have not been successful in resolving the text length clipping. Again, I'm not an SQL expert so I'm hoping that changing some of these settings can resolve my issue.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Open Database(
	"
	AB=0;
	BATCHSIZE=100;
	BI=0;
	BOOLSASCHAR=0;
	BYTEAASLONGVARBINARY=1;
	COMMLOG=2;
	CONNSETTINGS=;
	D6=-101;
	DEBUG=2;
	DRIVER={PostgreSQL Unicode(x64)};
	EXTRASYSTABLEPREFIXES=;
	FAKEOIDINDEX=0;
	FETCH=100;
	FETCHREFCURSORS=0;
	IGNORETIMEOUT=0;
	KEEPALIVEINTERVAL=-1;
	KEEPALIVETIME=-1;
	LFCONVERSION=1;
	LOWERCASEIDENTIFIER=0;
	MAXLONGVARCHARSIZE=8092;
	MAXVARCHARSIZE=255;
	OPTIONALERRORS=0;
	PARSE=0;
	PQOPT=;
	PROTOCOL=7.4;
	READONLY=0;
	ROWVERSIONING=0;
	SHOWOIDCOLUMN=0;
	SHOWSYSTEMTABLES=0;
	SSLMODE=disable;
	TEXTASLONGVARCHAR=0;
	TRUEISMINUS1=0;
	UNIQUEINDEX=1;
	UNKNOWNSASLONGVARCHAR=0;
	UNKNOWNSIZES=0;
	UPDATABLECURSORS=1;
	USEDECLAREFETCH=1;
	USESERVERSIDEPREPARE=1;
	XAOPT=1;
	",
	"SELECT * FROM dogs_v_wolves.dogs_v_wolves"
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;To further investigate the situation, I created a python script that performs an SQL query and saves the results into a pandas dataframe. Then I created a JSL file that runs the python script file and converts the pandas dataframe into a JMP data table.&lt;/P&gt;
&lt;P&gt;The python file is named "sqlQuery.py" and contains:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;import pandas as pd
import sqlalchemy as db

engine = db.create_engine("postgresql+psycopg2://##connection information##")

query = """
SELECT DISTINCT *
FROM dogs_v_wolves.dogs_v_wolves;
"""

df = pd.read_sql_query(query, engine)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The JSL file contains:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

pythonFilePath = "sqlQuery.py";

Python Submit File( pythonFilePath );

dt = python get(df);

dt:Picture &amp;lt;&amp;lt; set data type(expression);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;When I run this code the data table contains the full text strings.&amp;nbsp;When I convert the Picture column to an Expression data type, the images are displayed correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Conclusions&lt;/P&gt;
&lt;P&gt;JMP is successfully writing large text strings to the database.&lt;/P&gt;
&lt;P&gt;JMP is clipping large text strings when querying from the database using Query Builder and/or Open Database Table.&lt;/P&gt;
&lt;P&gt;Running an SQL query outside of JMP returns the full-length text strings that are stored in the database.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Desire&lt;/P&gt;
&lt;P&gt;I would like to be able to utilize the convenience of Query Builder while working on my image processing projects.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Question&lt;/P&gt;
&lt;P&gt;Is there a setting in JMP and/or JSL that I can change to enable querying larger string values?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Apr 2026 05:36:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Query-Builder-Issue-Clipping-Large-Text-Strings/m-p/941226#M109433</guid>
      <dc:creator>ngambles</dc:creator>
      <dc:date>2026-04-12T05:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Query Builder - Issue Clipping Large Text Strings</title>
      <link>https://community.jmp.com/t5/Discussions/Query-Builder-Issue-Clipping-Large-Text-Strings/m-p/941239#M109434</link>
      <description>&lt;P&gt;Have you tried with postgresql connector (this will use Python and require few python packages,&amp;nbsp;psycopg2+pandas)&amp;nbsp;&lt;A href="https://marketplace.jmp.com/appdetails/PostgreSQL+Data+Connector" target="_self"&gt;PostgreSQL Data Connector (JMP Marketplace)&lt;/A&gt;&amp;nbsp;?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Apr 2026 06:19:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Query-Builder-Issue-Clipping-Large-Text-Strings/m-p/941239#M109434</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2026-04-12T06:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Query Builder - Issue Clipping Large Text Strings</title>
      <link>https://community.jmp.com/t5/Discussions/Query-Builder-Issue-Clipping-Large-Text-Strings/m-p/941247#M109435</link>
      <description>&lt;P&gt;I had not tried the &lt;A href="https://marketplace.jmp.com/appdetails/PostgreSQL+Data+Connector" target="_self"&gt;PostgreSQL Data Connector.&lt;/A&gt;&amp;nbsp; I was only using the Built-in ODBC connection.&lt;/P&gt;
&lt;P&gt;Based on your recommendation, I have tried the PostgreSQL Data Connector, and I can confirm that this method resolves the long text clipping issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I knew there should be an easy solution, but I couldn't find it on my own.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the guidance.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Apr 2026 07:10:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Query-Builder-Issue-Clipping-Large-Text-Strings/m-p/941247#M109435</guid>
      <dc:creator>ngambles</dc:creator>
      <dc:date>2026-04-12T07:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Query Builder - Issue Clipping Large Text Strings</title>
      <link>https://community.jmp.com/t5/Discussions/Query-Builder-Issue-Clipping-Large-Text-Strings/m-p/941302#M109440</link>
      <description>&lt;P&gt;There could be solution with the ODBC but it might require a bit more looking around as I would assume these would affect the data you get&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;MAXLONGVARCHARSIZE=8092;
MAXVARCHARSIZE=255;
TEXTASLONGVARCHAR=0;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and they clearly do not match with your 524287 so it is most likely being overwritten somewhere else (while still being too small for your use case).&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/3022"&gt;@briancorcoran&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Apr 2026 13:28:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Query-Builder-Issue-Clipping-Large-Text-Strings/m-p/941302#M109440</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2026-04-12T13:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Query Builder - Issue Clipping Large Text Strings</title>
      <link>https://community.jmp.com/t5/Discussions/Query-Builder-Issue-Clipping-Large-Text-Strings/m-p/941319#M109442</link>
      <description>&lt;P&gt;That's exactly where I got stuck. I became a bit too focused on parameters like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;BOOLSASCHAR=0;
BYTEAASLONGVARBINARY=1;
MAXLONGVARCHARSIZE=8092;
MAXVARCHARSIZE=255;
TEXTASLONGVARCHAR=0;
UNKNOWNSASLONGVARCHAR=0;
UNKNOWNSIZES=0;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But even with ChatGPT and Claude trying to help, I couldn't find a parameter that affected the text string length limit that I was getting. I tried many combination of settings recommended by the AIs.&lt;/P&gt;
&lt;P&gt;ChatGPT did help me create the python code I used for my basic SQL query provided in my initial post, but it never recommended using the&amp;nbsp;&lt;A href="https://marketplace.jmp.com/appdetails/PostgreSQL+Data+Connector" rel="noopener noreferrer" target="_blank"&gt;PostgreSQL Data Connector.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Even though I could get it done with my own python SQL query, it felt like reinventing the wheel and it would never be as easy as it should be.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Apr 2026 16:57:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Query-Builder-Issue-Clipping-Large-Text-Strings/m-p/941319#M109442</guid>
      <dc:creator>ngambles</dc:creator>
      <dc:date>2026-04-12T16:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Query Builder - Issue Clipping Large Text Strings</title>
      <link>https://community.jmp.com/t5/Discussions/Query-Builder-Issue-Clipping-Large-Text-Strings/m-p/941775#M109473</link>
      <description>&lt;P&gt;You want to turn off Block Fetching&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Preferences(ODBC Disable Block Fetch(1))&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;using JSL before connecting to the ODBC data source.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;JMP uses block fetching to improve performance when importing data from ODBC sources.&lt;BR /&gt;A block fetch is an N x N contiguous block of memory that will get populated on each read from the data source, rather than line by line. With large amounts of character data this will get clipped due to the size of the block. Toggling this preference will have JMP read line by line and get the entire string.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2026 14:13:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Query-Builder-Issue-Clipping-Large-Text-Strings/m-p/941775#M109473</guid>
      <dc:creator>bryan_boone</dc:creator>
      <dc:date>2026-04-14T14:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Query Builder - Issue Clipping Large Text Strings</title>
      <link>https://community.jmp.com/t5/Discussions/Query-Builder-Issue-Clipping-Large-Text-Strings/m-p/941863#M109478</link>
      <description>&lt;P&gt;I have tried this recommendation and unfortunately it does not appear to work.&lt;/P&gt;
&lt;P&gt;I ran the jsl code and then queried my table using File -&amp;gt; Connect To -&amp;gt; ODBC -&amp;gt; Open Database Table.&lt;/P&gt;
&lt;P&gt;Despite the preference change, I continue to get long text strings clipped to a character length of&amp;nbsp;&lt;SPAN&gt;524,287.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-04-14 092701.png" style="width: 759px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/99531iDB07A687DDE41083/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2026-04-14 092701.png" alt="Screenshot 2026-04-14 092701.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2026 15:53:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Query-Builder-Issue-Clipping-Large-Text-Strings/m-p/941863#M109478</guid>
      <dc:creator>ngambles</dc:creator>
      <dc:date>2026-04-14T15:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Query Builder - Issue Clipping Large Text Strings</title>
      <link>https://community.jmp.com/t5/Discussions/Query-Builder-Issue-Clipping-Large-Text-Strings/m-p/942235#M109494</link>
      <description>&lt;P&gt;OK thanks for the update. Also remember that each character is a unicode character (UTF8).&lt;BR /&gt;In the case where the ODBC driver doesn't know the size, JMP will use 4MB.&lt;BR /&gt;&lt;BR /&gt;Can you update the wishlist?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2026 19:40:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Query-Builder-Issue-Clipping-Large-Text-Strings/m-p/942235#M109494</guid>
      <dc:creator>bryan_boone</dc:creator>
      <dc:date>2026-04-15T19:40:35Z</dc:date>
    </item>
  </channel>
</rss>

