BookmarkSubscribeRSS Feed
chemicalab
Fluorite | Level 6

Hi all,

 

I encounter this type of error (see attached) when i am trying to import (via menu and import wizard) a txt file into EG.

 

I havent had this problem before so i am kinda stuck.

 

Thank you in advance.

 

 


error.png
6 REPLIES 6
Kurt_Bremser
Super User

It means that your text file contains UTF-16 characters that cannot be transcoded (converted) to the wlatin1 encoding that your SAS session (workspace server) is configured in.

You either need to set up the workspace server so that it uses UTF encoding, or convert those special characters in the text file before you submit it to the import task.

chemicalab
Fluorite | Level 6

OK, how can i do the first option? because when colleagues import the same exact file with the same licensed software they dont encounter this error.

 

Kind regards

Kurt_Bremser
Super User

Look closely at your error message, it hints at what needs to be set.

See the documentation for the NLS system options.

While LOCALE= can be changed dynamically, ENCODING= needs to be set at session start, either via commandline (can be set in the metadata or USERMODS_OPTIONS in WorkspaceServer_usermods.sh) or in the config file (sasv9_usermods.cfg).

chemicalab
Fluorite | Level 6

Any good example on doing that?

ChrisHemedinger
Community Manager

As a quick workaround, try applying the option on the Advanced tab, "Remove characters that can cause transmission errors..."

 

trans.jpg

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.
chemicalab
Fluorite | Level 6

I have tried that but the result is the same, thank you both for your input, i think i will have to do it via commandline

 

Kind regards

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 6 replies
  • 1436 views
  • 0 likes
  • 3 in conversation