Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
8 replies
Subscribers
5 subscribers
Views
3804 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
The Smart Service Module was invalid: Smart service input and output count does not match the count for the existing smart service registered
jonbond
over 7 years ago
Hi Team,
I have deployed earlier a smart service with input parameter only. when I have added output parameter in the same service, it is throwing below error:
"The Smart Service Module was invalid: Smart service input and output count does not match the count for the existing smart service registered".
Also I have tried to deploy by changing the plugin-key & version both, still I am getting the same error.
Could you please tell me the procedure to clean the old instance?
Regards,
Jonbon
OriginalPostID-236007
Discussion posts and replies are publicly visible
0
phanibabuk
over 7 years ago
Could you please give more inputs around the error?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 7 years ago
If you are changing the plug-in key then that issue should be gone. Make sure you're newly generated JAR indeed has the new appian-plugin.xml. It looks to me that your project is not clean and is still exporting old code/xml.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
jonbond
over 7 years ago
Eduardo, I have check jar file, it has contained the changed plug-in key, but still it not able to deploy, I am getting below error:
"The Smart Service Module was invalid: Smart service input and output count does not match the count for the existing smart service registered as com.ryder.plugins.zebra.printer.ZebraPrinter
10:39:51,847 INFO [stdout] (ServerService Thread Pool -- 173) Existing size: 1
10:39:51,850 INFO [stdout] (ServerService Thread Pool -- 173) Incoming size: 3
10:39:51,860 INFO [stdout] (ServerService Thread Pool -- 173) Existing parameter names: [ActivityClassParameterSchema[name=printerDetailDTO,it=1602,v=<null>]]
10:39:51,876 INFO [stdout] (ServerService Thread Pool -- 173) Incoming parameter names: [ActivityClassParameterSchema[name=message,it=3,v=<null>], ActivityClassParameterSchema[name=printerDetailDTO,it=1602,v=<null>], ActivityClassParameterSchema[name=status,it=3,v=<null>]]
10:39:51,895 INFO [stdout] (ServerService Thread Pool -- 173) (APNX-1-4104-005)'"
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Sidhant Behura
over 7 years ago
I have faced the exact same issue while creating a smart service where I removed an input variable and renamed one.
I tried changing the plugin version but that didnt work too.
Below is the error thrown:
INFO [stdout] (Appian Plugin Hot Deploy) 2016-08-26 08:22:05,448 [Appian Plugin Hot Deploy] ERROR com.appiancorp.plugins.LoggingPluginEventListener - Failed to enable Plug-in 'XYZ' (com.xyz) version 1.0.0: 'The Smart Service Module was invalid: The input or output with name 'variableName' was removed. Smart service inputs and outputs cannot be changed once deployed (APNX-1-4104-005)'
INFO [stdout] (Appian Plugin Hot Deploy) 2016-08-26 08:43:05,974 [Appian Plugin Hot Deploy] ERROR com.appiancorp.plugins.LoggingPluginEventListener - Failed to enable Plug-in 'XYZ' (com.xyz) version 2.0.0: 'The Smart Service Module was invalid: The input or output with name 'variableName' was removed. Smart service inputs and outputs cannot be changed once deployed (APNX-1-4104-005)'
I am guessing this is because of running process instances or may be due to the smart service meta data being stored in the cache.
It would be great to know the reason behind this and the solution to avoid this.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Sidhant Behura
over 7 years ago
Went through the knowledge base. Seems like there is no favorable solution for this. Either you revert the changes or if the changes were intentional then you need to deprecate the smart service and create a new one.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Sidhant Behura
over 7 years ago
Forgot mentioning the link. Please go through the below link for more information.
forum.appian.com/.../kb-1097.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
jonbond
over 7 years ago
Hi Eduardo,
Thanks a lot, I resolved the issue. After I modified the key, I forgot to rename the Locale_en_us properties file, that why I am not able to deployed.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
jonbond
over 7 years ago
Thanks sidhantb my issues was different. Thanks a lot for the response.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel