Skip to main content
1-Visitor
Nov 27, 2021 3:03 AM UTC
Question

using Automation interface to 'Reconcile model'

Hello, 

 

I have a issue in using Automation interface to 'Reconcile model' using  vbscript error. 

I am using below coomand but getting error( cannot use parenthesis when calling a sub):

---------------------

Set objManager = CreateObject("Studio.ModelManager")
objManager.ReconcileModel("\\SQL\MyServer@MODELER\MyDatabase\MyModel\0.0.1","C:\MyLogFiles\MyLogFile.txt")

-----------------

When i remove parenthesis,  get a error ( wrong number of arguments or invalid property assignment). 

 

your feedback is appreciated. 

 

Thanks, 

 

4 replies

PatrickOllerton
16-Pearl
Nov 29, 2021 7:33 AM UTC

Hello,

I've moved this to a new thread, it should not have been posted in the previous thread as it's not related.

If you have a Support contract, you can raise with them for assistance with this. 

 

regards, Patrick

Translate
24-Ruby IV
Nov 29, 2021 8:59 AM UTC
24-Ruby IV
Nov 29, 2021 8:58 AM UTC

Here are some helpful articles:

Translate
1-Visitor
Nov 29, 2021 11:34 AM UTC

The problem is not when i reconcile through 'Model explorer' but when i do it using Automation interface custom script . using the below VBS script. I am unable to pass two parameters. it says not to use parenthesis if i remove ,it says wrong number of parameters. 

 

Set objManager = CreateObject("Studio.ModelManager")
objManager.ReconcileModel("\\SQL\MyServer@MODELER\MyDatabase\MyModel\0.0.1","C:\MyLogFiles\MyLogFile.txt")

 

urgent!!

 

Thanks,

 

Translate