<?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 How to acquire Non-English European characters in WFA using script based acquistion: Solution in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-acquire-Non-English-European-characters-in-WFA-using-script-based/m-p/120121#M21491</link>
    <description>&lt;P&gt;The Script based Data Source Acquisition is an extremely powerful Data Acquisition method provided by WFA which allows users to acquire Data from just about any source and get them in WFA MySQL Database. However the provided mechanism can only acquire&amp;nbsp; English characters and can be a serious limitation as not everyone uses English for communication and work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Keeping internationalization in mind, I'm providing method of how to acquire West European, Scandinavian, German, French and Other non-English letters in WFA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The Background story:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its important to understand why is this limitation for only English Characters exists in WFA. The limitation of not being able to use non-english letters is due to the method of &lt;EM&gt;indirect&lt;/EM&gt; insertion of data into WFA DB for a Script based Data Source acquisition. I need to first write all data rows in a .&lt;EM&gt;CSV&lt;/EM&gt; file in &lt;EM&gt;Byte&lt;/EM&gt; Encoding and then WFA dumps these rows into the Data base tables. This is a basic requirement that data be written in Byte encoding only. But these non-English characters need &lt;EM&gt;UTF8&lt;/EM&gt; encoding to be visible as they are. But WFA can't acquire from&amp;nbsp; a UTF8 encoded .CSV file and throws all sorts of errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But do I really need WFA to do data insertion in DB tables for me?&amp;nbsp;&lt;EM&gt;WFA restricts write access to all schemes&lt;/EM&gt; (canned and even custom) to itself, and hence you can't make SQL INSERT/UPDATE/DELETE SQL statement directly into any scheme except for the only provided 'playground'. So the limitation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WFA4.0 allows you to create writable custom schemes where the default WFA DB user has full privileges on custom schemes of a given type. I can execute INSERT/UPDATE/DELETE queries into them. But now I have another problem. WFA4.0 prevents me from creating DataSource type on those writable schemes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So what do I do now.&amp;nbsp;I want to be able to INSERT Data myself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The Solution Logic:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I create a proxy scheme and make WFA believe that the Data Source Acquisition script is filling Data into this proxy scheme, but in my Acquistion script, I'm using INSERT query to fill data directly into my writabe scheme.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;One-time prerequisite steps:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;You need at least WFA 4.0. It’s not mandatory but the older version do not create new DB-user writable schemes. So if you want to use WFA older than 4.0RC1, you can only create your dictionary on ‘playground’ scheme. This is how it’s going to work for the old WFA.&lt;/LI&gt;&lt;LI&gt;Set a &lt;EM&gt;login-path&lt;/EM&gt; for your WFA Mysql DB so that you don’t need to send clear-text password on the CLI when executing my SQL queries. Below are the steps to get this done&lt;OL&gt;&lt;LI&gt;Create a new mysql login-path for wfa&lt;OL&gt;&lt;LI&gt;Open a cmd prompt as “Administrator” on WFA and do the following.&lt;/LI&gt;&lt;LI&gt;C:\Program Files\NetApp\WFA\mysql\bin&amp;gt;&lt;FONT color="#0000FF"&gt;mysql_config_editor set --login-path=wfa --host=localhost --user=wfa --password&amp;nbsp;&lt;/FONT&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;FONT color="#0000FF"&gt;Enter password:&lt;/FONT&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Enter ‘Wfa123’ as password.&lt;/LI&gt;&lt;LI&gt;Test that this worked fine by executing a query on the CLI as below.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;C:\Program Files\NetApp\WFA\mysql\bin&amp;gt;&lt;FONT color="#0000FF"&gt;mysql --login-path=wfa --user=wfa -e "show&amp;nbsp;databases"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="WFA_mysql_path.png" style="width: 678px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/5455i73E9851D0FD707A3/image-size/large?v=v2&amp;amp;px=999" role="button" title="WFA_mysql_path.png" alt="WFA_mysql_path.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Change properties of &lt;EM&gt;NetApp WFA Server service&lt;/EM&gt; to start it as any &lt;FONT color="#FF0000"&gt;&lt;EM&gt;Administrator&lt;/EM&gt;&lt;/FONT&gt; account and not LocalSystem (Default). Restart service to take effect.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="WFA_server_service.png" style="width: 419px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/5441iCEAA08C0C97F3B1D/image-size/large?v=v2&amp;amp;px=999" role="button" title="WFA_server_service.png" alt="WFA_server_service.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Add a new command in WFA with the below code and Test. If it passes, your WFA is fine to proceed with next step. Else you need to correct them.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;##BEGIN CODE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;$pwd = Get-Location&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;$cmd1="show databases"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;$pwd = Get-Location&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;$mysqlcmd = $pwd.Path+"\..\..\..\..\mysql\bin\mysql.exe"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;$wfaService=(Get-WmiObject -Class Win32_service -filter "name='NA_WFA_SRV'").StartName&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Get-WfaLogger -Info -Message $("WFA service account: " + $wfaService)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;if ( $wfaService -eq "LocalSystem" )&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;throw("NetApp WFA Server service is running as LocalSystem. Restart it using an Administrator account and try again.")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;# Default credentials &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;$MySQLAdminUserName = 'wfa'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;$MySQLAdminPassword = 'Wfa123'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;$MySQLDatabase = 'cm_storage'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;$MySQLHost = "localhost"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;$MySQLLoginPath='wfa'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;$output = &amp;amp; "$mysqlcmd" "--login-path=$MySQLLoginPath" "--user=$MySQLAdminUserName" "--host=$MySQLHost" "-B" "-f" "-e$cmd1" "$MySQLDatabase" &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;$output | % { Get-WfaLogger -Info -Message $_ }&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;##END Code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Go to &lt;EM&gt;WFA-&amp;gt;Designer-&amp;gt; Data Source Designer -&amp;gt; Schemes&lt;/EM&gt;, Create a scheme named&amp;nbsp;&lt;FONT color="#008000"&gt;&lt;EM&gt;proxy&lt;/EM&gt;&lt;/FONT&gt;&amp;nbsp;of Type &lt;FONT color="#008000"&gt;&lt;EM&gt;Data Source Acquisition&lt;/EM&gt;&lt;/FONT&gt;. You can choose any other name too if you don't like proxy. This is just a proxy scheme, no data ever gets filled here. No need to create any dictionary on it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="New_Scheme_PROXY.png" style="width: 451px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/5458i41CF031151CC3EA4/image-size/large?v=v2&amp;amp;px=999" role="button" title="New_Scheme_PROXY.png" alt="New_Scheme_PROXY.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That’s all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Next Steps, the real thing&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my example lets assume, I need to acquire some data about football players from Scandinavian countries. This is my real scheme where I want to acquire data. Names of people from Scandinavian countries often have some special characters. I need them as they are in WFA DB as I get those names from a powershell script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Go to WFA-&amp;gt;Designer-&amp;gt; Data Source Designer -&amp;gt; Schemes , Create a new scheme of type &lt;FONT color="#FF0000"&gt;&lt;EM&gt;Other&lt;/EM&gt;&lt;/FONT&gt;. In my example I chose name&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;‘scandinavia’&lt;/EM&gt;&lt;/FONT&gt;&amp;nbsp;of type:&lt;FONT color="#FF0000"&gt; &lt;EM&gt;Other &lt;/EM&gt;&lt;/FONT&gt;. This is NOT the default type, so ensure you select it correctly from the drop-down. This is going to be my scheme or database to keep my data&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="New_Scheme_Scandinavia.png" style="width: 449px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/5459iF5B2AFBF9F42E7F6/image-size/large?v=v2&amp;amp;px=999" role="button" title="New_Scheme_Scandinavia.png" alt="New_Scheme_Scandinavia.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I create some dictionary on this scheme Scandinavia.&lt;/LI&gt;&lt;LI&gt;Add a new Data Source Type&lt;OL&gt;&lt;LI&gt;Provide to identify your real scheme: I gave &amp;nbsp;"DST for Scandinavian Footballers"&lt;/LI&gt;&lt;LI&gt;Method: script, language PowerShell&lt;/LI&gt;&lt;LI&gt;Select scheme &lt;EM&gt;‘proxy’&lt;/EM&gt; from the drop-down list. My real scheme &lt;EM&gt;‘scandinavia’&lt;/EM&gt; will &lt;FONT color="#FF0000"&gt;NOT&lt;/FONT&gt; appear in the available list. Why? WFA wants to restrict Script Based acquisition for schemes of type ‘Other’ and this is what our schemes type is. I had to do this as I don’t want WFA to fill data into my scheme. I’ll do it myself from my PowerShell script.&lt;/LI&gt;&lt;LI&gt;Now just write Powershell code as you did to get data.&lt;/LI&gt;&lt;LI&gt;DON’T create any .CSV files. No need to write anything on them. Since my proxy has no dictionary, WFA won't look for it.&lt;/LI&gt;&lt;LI&gt;So when your row is ready prepare your SQL INSERT statement and execute them using mysql.exe&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;That’s all folks.&lt;/LI&gt;&lt;LI&gt;Add a new Data Source for this Data Source Type. When acquistion suceeds , your Data in the purest form will get acquired into you real scheme.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use the attached complete example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can Import the sample Data Source Type attached here.&lt;/P&gt;&lt;P&gt;I also have given a simple workflow which is easy execute and will help you understand the flow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;The Example&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To try the example provided. I assume all the one-time prerequisites have been covered.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. On a WFA4.0 , Import the file :&amp;nbsp;WFA4_0_DataSourceType_Scandinavian_Football_Players.dar&lt;/P&gt;&lt;P&gt;2. Import the file:&amp;nbsp;WFA4.0_Workflow_to_Print_a_Footballer_Name_sinhaa.dar&lt;/P&gt;&lt;P&gt;3. Add a new Data Source for : Scandinavian Football Players -1.0.0 ( POWERSHELL)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. Acquire it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After acquisition, WFA scheme scandinavia , table football_players has all the correct names.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Scandinavian_football_players.png" style="width: 488px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/5457i28E00491CD3FCDDE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Scandinavian_football_players.png" alt="Scandinavian_football_players.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5. Goto workflow and execute the workflow: &lt;FONT color="#0000FF"&gt;Print a footballer Name.&lt;/FONT&gt; The user-input is very simple dorp-down list.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;6. The proxy scheme can be used to fill any number of real schemes i.e. you &lt;EM&gt;don't&lt;/EM&gt; need separate proxy for every real scheme.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have fun!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sinhaa&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 20:29:38 GMT</pubDate>
    <dc:creator>sinhaa</dc:creator>
    <dc:date>2025-06-04T20:29:38Z</dc:date>
    <item>
      <title>How to acquire Non-English European characters in WFA using script based acquistion: Solution</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-acquire-Non-English-European-characters-in-WFA-using-script-based/m-p/120121#M21491</link>
      <description>&lt;P&gt;The Script based Data Source Acquisition is an extremely powerful Data Acquisition method provided by WFA which allows users to acquire Data from just about any source and get them in WFA MySQL Database. However the provided mechanism can only acquire&amp;nbsp; English characters and can be a serious limitation as not everyone uses English for communication and work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Keeping internationalization in mind, I'm providing method of how to acquire West European, Scandinavian, German, French and Other non-English letters in WFA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The Background story:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its important to understand why is this limitation for only English Characters exists in WFA. The limitation of not being able to use non-english letters is due to the method of &lt;EM&gt;indirect&lt;/EM&gt; insertion of data into WFA DB for a Script based Data Source acquisition. I need to first write all data rows in a .&lt;EM&gt;CSV&lt;/EM&gt; file in &lt;EM&gt;Byte&lt;/EM&gt; Encoding and then WFA dumps these rows into the Data base tables. This is a basic requirement that data be written in Byte encoding only. But these non-English characters need &lt;EM&gt;UTF8&lt;/EM&gt; encoding to be visible as they are. But WFA can't acquire from&amp;nbsp; a UTF8 encoded .CSV file and throws all sorts of errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But do I really need WFA to do data insertion in DB tables for me?&amp;nbsp;&lt;EM&gt;WFA restricts write access to all schemes&lt;/EM&gt; (canned and even custom) to itself, and hence you can't make SQL INSERT/UPDATE/DELETE SQL statement directly into any scheme except for the only provided 'playground'. So the limitation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WFA4.0 allows you to create writable custom schemes where the default WFA DB user has full privileges on custom schemes of a given type. I can execute INSERT/UPDATE/DELETE queries into them. But now I have another problem. WFA4.0 prevents me from creating DataSource type on those writable schemes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So what do I do now.&amp;nbsp;I want to be able to INSERT Data myself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The Solution Logic:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I create a proxy scheme and make WFA believe that the Data Source Acquisition script is filling Data into this proxy scheme, but in my Acquistion script, I'm using INSERT query to fill data directly into my writabe scheme.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;One-time prerequisite steps:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;You need at least WFA 4.0. It’s not mandatory but the older version do not create new DB-user writable schemes. So if you want to use WFA older than 4.0RC1, you can only create your dictionary on ‘playground’ scheme. This is how it’s going to work for the old WFA.&lt;/LI&gt;&lt;LI&gt;Set a &lt;EM&gt;login-path&lt;/EM&gt; for your WFA Mysql DB so that you don’t need to send clear-text password on the CLI when executing my SQL queries. Below are the steps to get this done&lt;OL&gt;&lt;LI&gt;Create a new mysql login-path for wfa&lt;OL&gt;&lt;LI&gt;Open a cmd prompt as “Administrator” on WFA and do the following.&lt;/LI&gt;&lt;LI&gt;C:\Program Files\NetApp\WFA\mysql\bin&amp;gt;&lt;FONT color="#0000FF"&gt;mysql_config_editor set --login-path=wfa --host=localhost --user=wfa --password&amp;nbsp;&lt;/FONT&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;FONT color="#0000FF"&gt;Enter password:&lt;/FONT&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Enter ‘Wfa123’ as password.&lt;/LI&gt;&lt;LI&gt;Test that this worked fine by executing a query on the CLI as below.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;C:\Program Files\NetApp\WFA\mysql\bin&amp;gt;&lt;FONT color="#0000FF"&gt;mysql --login-path=wfa --user=wfa -e "show&amp;nbsp;databases"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="WFA_mysql_path.png" style="width: 678px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/5455i73E9851D0FD707A3/image-size/large?v=v2&amp;amp;px=999" role="button" title="WFA_mysql_path.png" alt="WFA_mysql_path.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Change properties of &lt;EM&gt;NetApp WFA Server service&lt;/EM&gt; to start it as any &lt;FONT color="#FF0000"&gt;&lt;EM&gt;Administrator&lt;/EM&gt;&lt;/FONT&gt; account and not LocalSystem (Default). Restart service to take effect.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="WFA_server_service.png" style="width: 419px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/5441iCEAA08C0C97F3B1D/image-size/large?v=v2&amp;amp;px=999" role="button" title="WFA_server_service.png" alt="WFA_server_service.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Add a new command in WFA with the below code and Test. If it passes, your WFA is fine to proceed with next step. Else you need to correct them.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;##BEGIN CODE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;$pwd = Get-Location&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;$cmd1="show databases"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;$pwd = Get-Location&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;$mysqlcmd = $pwd.Path+"\..\..\..\..\mysql\bin\mysql.exe"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;$wfaService=(Get-WmiObject -Class Win32_service -filter "name='NA_WFA_SRV'").StartName&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;Get-WfaLogger -Info -Message $("WFA service account: " + $wfaService)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;if ( $wfaService -eq "LocalSystem" )&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;throw("NetApp WFA Server service is running as LocalSystem. Restart it using an Administrator account and try again.")&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;# Default credentials &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;$MySQLAdminUserName = 'wfa'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;$MySQLAdminPassword = 'Wfa123'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;$MySQLDatabase = 'cm_storage'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;$MySQLHost = "localhost"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;$MySQLLoginPath='wfa'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;$output = &amp;amp; "$mysqlcmd" "--login-path=$MySQLLoginPath" "--user=$MySQLAdminUserName" "--host=$MySQLHost" "-B" "-f" "-e$cmd1" "$MySQLDatabase" &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#0000FF"&gt;$output | % { Get-WfaLogger -Info -Message $_ }&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;##END Code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Go to &lt;EM&gt;WFA-&amp;gt;Designer-&amp;gt; Data Source Designer -&amp;gt; Schemes&lt;/EM&gt;, Create a scheme named&amp;nbsp;&lt;FONT color="#008000"&gt;&lt;EM&gt;proxy&lt;/EM&gt;&lt;/FONT&gt;&amp;nbsp;of Type &lt;FONT color="#008000"&gt;&lt;EM&gt;Data Source Acquisition&lt;/EM&gt;&lt;/FONT&gt;. You can choose any other name too if you don't like proxy. This is just a proxy scheme, no data ever gets filled here. No need to create any dictionary on it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="New_Scheme_PROXY.png" style="width: 451px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/5458i41CF031151CC3EA4/image-size/large?v=v2&amp;amp;px=999" role="button" title="New_Scheme_PROXY.png" alt="New_Scheme_PROXY.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That’s all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Next Steps, the real thing&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my example lets assume, I need to acquire some data about football players from Scandinavian countries. This is my real scheme where I want to acquire data. Names of people from Scandinavian countries often have some special characters. I need them as they are in WFA DB as I get those names from a powershell script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Go to WFA-&amp;gt;Designer-&amp;gt; Data Source Designer -&amp;gt; Schemes , Create a new scheme of type &lt;FONT color="#FF0000"&gt;&lt;EM&gt;Other&lt;/EM&gt;&lt;/FONT&gt;. In my example I chose name&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;‘scandinavia’&lt;/EM&gt;&lt;/FONT&gt;&amp;nbsp;of type:&lt;FONT color="#FF0000"&gt; &lt;EM&gt;Other &lt;/EM&gt;&lt;/FONT&gt;. This is NOT the default type, so ensure you select it correctly from the drop-down. This is going to be my scheme or database to keep my data&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="New_Scheme_Scandinavia.png" style="width: 449px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/5459iF5B2AFBF9F42E7F6/image-size/large?v=v2&amp;amp;px=999" role="button" title="New_Scheme_Scandinavia.png" alt="New_Scheme_Scandinavia.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I create some dictionary on this scheme Scandinavia.&lt;/LI&gt;&lt;LI&gt;Add a new Data Source Type&lt;OL&gt;&lt;LI&gt;Provide to identify your real scheme: I gave &amp;nbsp;"DST for Scandinavian Footballers"&lt;/LI&gt;&lt;LI&gt;Method: script, language PowerShell&lt;/LI&gt;&lt;LI&gt;Select scheme &lt;EM&gt;‘proxy’&lt;/EM&gt; from the drop-down list. My real scheme &lt;EM&gt;‘scandinavia’&lt;/EM&gt; will &lt;FONT color="#FF0000"&gt;NOT&lt;/FONT&gt; appear in the available list. Why? WFA wants to restrict Script Based acquisition for schemes of type ‘Other’ and this is what our schemes type is. I had to do this as I don’t want WFA to fill data into my scheme. I’ll do it myself from my PowerShell script.&lt;/LI&gt;&lt;LI&gt;Now just write Powershell code as you did to get data.&lt;/LI&gt;&lt;LI&gt;DON’T create any .CSV files. No need to write anything on them. Since my proxy has no dictionary, WFA won't look for it.&lt;/LI&gt;&lt;LI&gt;So when your row is ready prepare your SQL INSERT statement and execute them using mysql.exe&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;That’s all folks.&lt;/LI&gt;&lt;LI&gt;Add a new Data Source for this Data Source Type. When acquistion suceeds , your Data in the purest form will get acquired into you real scheme.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use the attached complete example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can Import the sample Data Source Type attached here.&lt;/P&gt;&lt;P&gt;I also have given a simple workflow which is easy execute and will help you understand the flow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#0000FF"&gt;The Example&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To try the example provided. I assume all the one-time prerequisites have been covered.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. On a WFA4.0 , Import the file :&amp;nbsp;WFA4_0_DataSourceType_Scandinavian_Football_Players.dar&lt;/P&gt;&lt;P&gt;2. Import the file:&amp;nbsp;WFA4.0_Workflow_to_Print_a_Footballer_Name_sinhaa.dar&lt;/P&gt;&lt;P&gt;3. Add a new Data Source for : Scandinavian Football Players -1.0.0 ( POWERSHELL)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;4. Acquire it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After acquisition, WFA scheme scandinavia , table football_players has all the correct names.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Scandinavian_football_players.png" style="width: 488px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/5457i28E00491CD3FCDDE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Scandinavian_football_players.png" alt="Scandinavian_football_players.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;5. Goto workflow and execute the workflow: &lt;FONT color="#0000FF"&gt;Print a footballer Name.&lt;/FONT&gt; The user-input is very simple dorp-down list.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;6. The proxy scheme can be used to fill any number of real schemes i.e. you &lt;EM&gt;don't&lt;/EM&gt; need separate proxy for every real scheme.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have fun!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sinhaa&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 20:29:38 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-acquire-Non-English-European-characters-in-WFA-using-script-based/m-p/120121#M21491</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2025-06-04T20:29:38Z</dc:date>
    </item>
  </channel>
</rss>

