Troubleshooting WonderWare Archestra Script Function Library Integration Issues

Question:

Hello, I am attempting to utilize a Script Function Library in Archestra. I utilized Visual Studio to create a C# DLL that I will be importing into Archestra. After importing my DLL files (as shown in capture1 and 2), I proceeded to create an object using the name of my DLL class. Archestra suggested the function "Server" (as seen in capture3). However, upon deploying my UserDefinedObject with this script, an error log message appeared in the SCM stating "Method not found" (capture4). Can anyone provide insights on this issue?

Top Replies

Do you have any suggestions or thoughts on this matter? Let me know what ideas you have in mind.

Hello Atiennedada, have you had any success in this area? I am currently in the process of gathering extensive information for utilizing a JSON deserialization tool. Best regards.

Hey there, it seems like you've done everything right when it comes to importing your DLL files and creating the object. The "Method not found" error typically results from an issue in the referencing of the method in your script. Double-check the method name and its case - C# is case-sensitive. Also, ensure that the function that's being called by the script is public, has the right arguments, and is in the appropriate namespace/class in your C# DLL. If the problem persists, you may want to revisit your DLL code or consider whether a different version of Visual Studio or Archestra might be responsible for the discrepancy.

From what you've shared, it seems like there might be a mismatch between the method name you're calling in Archestra and the one defined in your C# DLL. I'd recommend you check the method's accessibility, it needs to be public to be accessed from Archestra. Also, ensure that the case and spelling are identical in both the DLL and your script. If this doesn't help, you may need to show us your DLL's C# code to ascertain the root of the problem.

It sounds like you might be running into an issue with the method signature or accessibility in your C# DLL. Double-check that the method you're trying to call is public and that the names match exactly, including case sensitivity. Also, make sure that your DLL is correctly referenced in Archestra and that there are no version conflicts. If you recently updated the DLL, ensure the Archestra environment recognizes the latest version. Sometimes, rebuilding the project and re-importing the DLL can help clear up any lingering issues.

It sounds like you're on the right track, but the "Method not found" issue usually indicates that Archestra isn't able to locate the specific function you’re trying to call from your DLL. Double-check that your method names and signatures in the C# code match exactly with what you’re trying to invoke in Archestra—C# is case-sensitive! Also, make sure that you’ve properly defined the method as public and that it doesn’t require any parameters unless you’re handling them in your Archestra script. Lastly, ensure that the DLL is compatible with the version of Archestra you're using, as version mismatches can sometimes lead to these kinds of errors. Good luck!

More Replies →

Streamline Your Asset Management
See How Oxmaint Works!!

✅   Work Order Management

✅   Asset Tracking

✅   Preventive Maintenance

✅   Inspection Report

We have received your information. We will share Schedule Demo details on your Mail Id.

To add a comment, please sign in or register if you haven't already..   

Frequently Asked Questions (FAQ)

FAQ: FAQs:

Answer: 1. How can I utilize a Script Function Library in WonderWare Archestra? - To utilize a Script Function Library in Archestra, you can create a C DLL using Visual Studio and import it into Archestra. Make sure to follow the correct steps for importing the DLL files and creating objects.

FAQ: 2. Why am I getting a "Method not found" error message in WonderWare Archestra?

Answer: - If you are encountering a "Method not found" error message in Archestra when deploying your UserDefinedObject with a script, it could indicate an issue with the function being called or the method not being properly defined in your DLL. Double-check the function names and their definitions to resolve this issue.

FAQ: 3. How can I troubleshoot integration issues with Script Function Libraries in Archestra?

Answer: - To troubleshoot integration issues with Script Function Libraries in Archestra, ensure that your DLL files are correctly imported, the functions are properly defined, and there are no syntax errors in your script. Reviewing error logs and seeking insights from the Archestra community can also help identify and resolve any issues.

Ready to Simplify Maintenance?

Join hundreds of satisfied customers who have transformed their maintenance processes.
Sign up today and start optimizing your workflow.

Request Demo  â†’