Skip to main content
Announcements
UPGRADE ADVISORY for Qlik Replicate 2024.5: Read More
cancel
Showing results for 
Search instead for 
Did you mean: 
csidda
Contributor II
Contributor II

Qlik replicate sample Functions not showing up in UI

Hi Team,

I have already posted my queries with respect to user defined functions in the(https://community.qlik.com/t5/Qlik-Replicate/User-defined-transformations-using-addons/m-p/2009185#M...), although I wanted to clarify few things before I start writing my own C shared libraries. 

my understanding is when you uncomment the addons_def.json.sample and save it as addons_def.json with the following code 

csidda_0-1669402712791.png

(I have also tried "lib_name": "MyTransformation.dll" ) 
After saving the file and refreshing the Replicate services like below 

csidda_1-1669402836459.png

 

 The functions should pop in the below 

csidda_2-1669402926331.png

Is there something I am missing in these steps. I have been trying to find something in the user defined functions for quite some time. I tried to compile the code which was already there and generate a dll file even that did not work. 
But I assume, it shouldn't be the case as the sample folder contains the files necessary and the addons_def.json file registering should do the thing. 

any suggestions/modifications is appreciated. 


Labels (3)
1 Solution

Accepted Solutions
john_wang
Support
Support

Hello @csidda ,

The embed sample, MyTransformation, works for me in my labs. The addons_def.json looks like

{
	"addons":	
	[
		{
			"name":	"MyPasswordProvider",
			"type": "STARTUP",
			//"lib_path": "samples\\MyPasswordProvider\\MyPasswordProvider.dll",
			//"lib_path": "samples/MyPasswordProvider/MyPasswordProvider.so",
			"init_function":	"ar_addon_init"	
		},
		{
			"name": "MyTransformation",
			"type": "STARTUP",
			"lib_path": "samples\\MyTransformation\\MyTransformation.dll",
			//"lib_path": "samples/MyTransformation/MyTransformation.so",
			"init_function": "ar_addon_init"
		}
	]
}

Please take note that:

1. the .DLL location is "C:\Program Files\Attunity\Replicate\addons\samples\MyTransformation" in my sample

2. the .DLL module should be built in Release (not Debug) mode

3. check "repcmd.log" to see if any helpful information in your env

If you still cannot manage it to work, PS team is highly recommended.

Hope this helps.

Regards,

John.

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!

View solution in original post

2 Replies
john_wang
Support
Support

Hello @csidda ,

The embed sample, MyTransformation, works for me in my labs. The addons_def.json looks like

{
	"addons":	
	[
		{
			"name":	"MyPasswordProvider",
			"type": "STARTUP",
			//"lib_path": "samples\\MyPasswordProvider\\MyPasswordProvider.dll",
			//"lib_path": "samples/MyPasswordProvider/MyPasswordProvider.so",
			"init_function":	"ar_addon_init"	
		},
		{
			"name": "MyTransformation",
			"type": "STARTUP",
			"lib_path": "samples\\MyTransformation\\MyTransformation.dll",
			//"lib_path": "samples/MyTransformation/MyTransformation.so",
			"init_function": "ar_addon_init"
		}
	]
}

Please take note that:

1. the .DLL location is "C:\Program Files\Attunity\Replicate\addons\samples\MyTransformation" in my sample

2. the .DLL module should be built in Release (not Debug) mode

3. check "repcmd.log" to see if any helpful information in your env

If you still cannot manage it to work, PS team is highly recommended.

Hope this helps.

Regards,

John.

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!
Dineshan
Support
Support

Hello @csidda ,

If you believe that above suggestion worked for you, please accept it as solution. If already marked, give it a thumbs up!

Thank you,

Dinesh