<?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 The creation of the XML Mapper file failed. in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/The-creation-of-the-XML-Mapper-file-failed/m-p/934710#M44944</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am downloading an xml file from an api website. Then I am creating a mapfile but I getting conversion errors due to the presence of emoji into the xml file.&lt;/P&gt;
&lt;P&gt;I have used a perl script to remove the emoji from the xml file, but now, I am getting these&amp;nbsp; errors:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: The creation of the XML Mapper file failed.&lt;BR /&gt;ERROR: Error in the LIBNAME statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/********** Creating the map file ***************/

%let file_path=/finsys/...;
%let xmlFile2=VirageSurvey.xml;
%let xmlMap2=VirageSurvey.map;

%put &amp;amp;=file_path.;
%put &amp;amp;=xmlFile2.;
%put &amp;amp;=&amp;amp;xmlMap2.;

filename datafile "&amp;amp;file_path./&amp;amp;xmlFile2." encoding='utf-8';
%put %sysfunc(pathname(datafile));
filename mapfile "&amp;amp;file_path./&amp;amp;xmlMap2.";
%put %sysfunc(pathname(mapfile));

libname datafile xmlv2 automap=replace xmlmap=mapfile compat=yes;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What's can be done to solve this issue.&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jul 2024 19:20:34 GMT</pubDate>
    <dc:creator>alepage</dc:creator>
    <dc:date>2024-07-04T19:20:34Z</dc:date>
    <item>
      <title>The creation of the XML Mapper file failed.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/The-creation-of-the-XML-Mapper-file-failed/m-p/934710#M44944</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am downloading an xml file from an api website. Then I am creating a mapfile but I getting conversion errors due to the presence of emoji into the xml file.&lt;/P&gt;
&lt;P&gt;I have used a perl script to remove the emoji from the xml file, but now, I am getting these&amp;nbsp; errors:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: The creation of the XML Mapper file failed.&lt;BR /&gt;ERROR: Error in the LIBNAME statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/********** Creating the map file ***************/

%let file_path=/finsys/...;
%let xmlFile2=VirageSurvey.xml;
%let xmlMap2=VirageSurvey.map;

%put &amp;amp;=file_path.;
%put &amp;amp;=xmlFile2.;
%put &amp;amp;=&amp;amp;xmlMap2.;

filename datafile "&amp;amp;file_path./&amp;amp;xmlFile2." encoding='utf-8';
%put %sysfunc(pathname(datafile));
filename mapfile "&amp;amp;file_path./&amp;amp;xmlMap2.";
%put %sysfunc(pathname(mapfile));

libname datafile xmlv2 automap=replace xmlmap=mapfile compat=yes;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What's can be done to solve this issue.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 19:20:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/The-creation-of-the-XML-Mapper-file-failed/m-p/934710#M44944</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2024-07-04T19:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: The creation of the XML Mapper file failed.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/The-creation-of-the-XML-Mapper-file-failed/m-p/934736#M44946</link>
      <description>&lt;P&gt;Should work, if the sas session uses utf-8 encoding.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 05:21:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/The-creation-of-the-XML-Mapper-file-failed/m-p/934736#M44946</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2024-07-05T05:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: The creation of the XML Mapper file failed.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/The-creation-of-the-XML-Mapper-file-failed/m-p/934820#M44956</link>
      <description>Is there a way to check if the UTF8 encoding is effective. Can we add more options to help in the troubleshooting</description>
      <pubDate>Fri, 05 Jul 2024 17:06:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/The-creation-of-the-XML-Mapper-file-failed/m-p/934820#M44956</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2024-07-05T17:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: The creation of the XML Mapper file failed.</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/The-creation-of-the-XML-Mapper-file-failed/m-p/934827#M44957</link>
      <description>&lt;P&gt;It is probably more important to make sure your SAS session is using UTF-8 than it is to tell SAS what encoding to use for individual files.&amp;nbsp; SAS can usually detect the encoding of a file it is reading. But if the session is not using UTF-8 encoding and you try to read in a character from an UTF-8 encoded file that is not one of the 256 characters that exist in the singly byte encoding you are using to run SAS then it can cause loss of data (or worse).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To check if SAS is running with UTF-8 encoding check the value of the ENCODING system option.&amp;nbsp; You could use PROC OPTIONS.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc options option=encoding;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 Jul 2024 18:16:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/The-creation-of-the-XML-Mapper-file-failed/m-p/934827#M44957</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-07-05T18:16:45Z</dc:date>
    </item>
  </channel>
</rss>

