This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

M-Files Configuration Frequency Interval

I am working on setting up something in my configuration that includes a RecurringOperationConfiguration

I have it working for schedule without any issue but when I try and lookup Interval it seems a bit vague and I don't really understand what the Time Value in the configuration is for.

It says it is configurable but I don't quite understand how to control the interval from the admin if it's giving me a Time Value. I've ready the following and haven't clued in on what I should be doing to allow the admin to decide what the interval should be/

https://developer.m-files.com/Frameworks/Vault-Application-Framework/Task-Queues/Recurring-Tasks/

What do I need to do for the admin to be able to set something like run every 2 hours?

Parents
  • Hi,

    The editor seems to render differently depending on...  Something.  Possibly your local PC settings.  In a lot of systems it renders as a 24-hour clock (which then makes more sense as an interval), but when it renders as an AM/PM time it's awkward.

    In your instance "every two hours" would be "2am".  Every 14 hours would be "2pm".  As I said: awkward.

    This hasn't come up as a significant issue thus far, but I will raise it with the VAF/configuration-editor team at some point to see whether there's a way we can force it to always be in 24-hour mode.

    Regards,

    Craig.

  • That is what we figured but additionally you cannot enter a 0 for the first hour so you cannot set an interval less than 1 hour with this issue.

  • I spent a good day on it trying to get the packages I needed, a lot of the issue was related to Logging specifically. Incompatible versions etc.

    I just ran it again and it looks like it stopped after one run:

    Looks like if I make any changes to the configuration it then schedules another instance but only runs once then stops.

  • Have you tried using System.Diagnostics.Debugger.Launch to attach a debugger when the task is processed, and step through it?

  • You could also add a job.Update call after the loop to see whether it thinks it finished properly.

  • I added an update after it all to see if it completes properly. I should add that it completes the job successfully(changes the workflow/state) and always has, just never runs again. 

    Also I see your comment in my code referring to "newObject", it's a class I wrote years ago to facilitate creating propertyValues and Objects, nothing special. 

    Looks like it completes without any issues:

    I've got that line right at the bottom of the function:

  • My suspicion is that this is a bug in an older release.

  • I'll spend a bit of time fighting with updating the code base, want anything I run into posted here?

  • So after running an update in NuGet I run into this exception when installing the application after building. This is what we ran into previously too, after building successfully it won't install.

    DlgClientApplications.cpp, 539, Starting the application "ConformityVaultApplication (1.6.7)" failed. (0x80040120)
    Item_DocumentVault.cpp, 1780, Starting the application "ConformityVaultApplication (1.6.7)" failed. (0x80040120)
    RPCMethodCallWithRetry.h, 151, Starting the application "ConformityVaultApplication (1.6.7)" failed. (0x80040120)
    RPCMethodCallWithRetry.h, 151, Starting the application "ConformityVaultApplication (1.6.7)" failed. (0x80040120)
    RPCClientScript.cpp, 1021, Starting the application "ConformityVaultApplication (1.6.7)" failed. (0x80040120)
    RPCClientScript.cpp, 406, Starting the application "ConformityVaultApplication (1.6.7)" failed. (0x80040120)
    RPCClientScriptHelper.cpp, 625, Starting the application "ConformityVaultApplication (1.6.7)" failed. (0x80040120)
    RPCClientScriptHelper.cpp, 1159, Starting the application "ConformityVaultApplication (1.6.7)" failed. (0x80040120)
    RPCClientScriptHelper.cpp, 1722, Starting the application "ConformityVaultApplication (1.6.7)" failed. (0x80040120)
    ExtensionManager.cpp, 648, Starting the application "ConformityVaultApplication (1.6.7)" failed. (0x80040120)
    ExtensionManager.cpp, 648, Exception has been thrown by the target of an invocation. (0x80131604)
    ExtensionManager.cpp, 782, Exception has been thrown by the target of an invocation. (0x80131604)
    ExtObjectPlatform.cpp, 177, Exception has been thrown by the target of an invocation. (0x80131604)
    ExtObjectPlatform.cpp, 439, Exception has been thrown by the target of an invocation. (0x80131604)
    CoMFAppPlatform.cpp, 322, Exception has been thrown by the target of an invocation. (0x80131604)
    CoDynamicCLRObjectWrapper.cpp, 127, Exception has been thrown by the target of an invocation. (0x80131604)
    ManagedError.cpp, 150, Exception has been thrown by the target of an invocation. (0x80131604)
    mscorlib: [CManagedError* CRuntimeObjectWrapper.InitAndCreateObject(CRuntimeObjectWrapper*, CManagedError*, Char**, Char**)], IL:45, Exception has been thrown by the target of an invocation. (0x80131604)
    mscorlib: [System.Object CreateInstance(System.Type)], IL:0, Exception has been thrown by the target of an invocation. (0x80131604)
    mscorlib: [System.Object CreateInstance(System.Type, Boolean)], IL:58, Exception has been thrown by the target of an invocation. (0x80131604)
    mscorlib: [System.Object CreateInstanceSlow(Boolean, Boolean, Boolean, System.Threading.StackCrawlMark ByRef)], IL:106, Exception has been thrown by the target of an invocation. (0x80131604)
    mscorlib: [System.Object CreateInstance(System.RuntimeType, Boolean, Boolean, Boolean ByRef, System.RuntimeMethodHandleInternal ByRef, Boolean ByRef)], IL:-1, Exception has been thrown by the target of an invocation. (0x80131604)
    VaultApplication.cs, 31 (IL:17), The type initializer for 'MFiles.VaultApplications.Logging.LogManager' threw an exception. (0x80131534)
    MFiles.VaultApplications.Logging: [Void .ctor()], IL:49, The type initializer for 'MFiles.VaultApplications.Logging.LogManager' threw an exception. (0x80131534)
    ConfigurableVaultApplicationBase.cs, 46 (IL:17), The type initializer for 'MFiles.VaultApplications.Logging.LogManager' threw an exception. (0x80131534)
    MFiles.VaultApplications.Logging: [MFiles.VAF.Configuration.SecureConfigurationManager`1[TSecureConfiguration] GetConfigurationManager()], IL:28, The type initializer for 'MFiles.VaultApplications.Logging.LogManager' threw an exception. (0x80131534)
    MFiles.VaultApplications.Logging: [Void .ctor(Boolean, System.Resources.ResourceManager[])], IL:7, The type initializer for 'MFiles.VaultApplications.Logging.LogManager' threw an exception. (0x80131534)
    MFiles.VaultApplications.Logging: [Void .ctor(Boolean)], IL:0, The type initializer for 'MFiles.VaultApplications.Logging.LogManager' threw an exception. (0x80131534)
    MFiles.VaultApplications.Logging: [MFiles.VaultApplications.Logging.ILogger GetLogger(System.Type, MFiles.VaultApplications.Logging.ILoggingContext)], IL:0, The type initializer for 'MFiles.VaultApplications.Logging.LogManager' threw an exception. (0x80131534)
    MFiles.VaultApplications.Logging: [Void .cctor()], IL:5, Method not found: 'Void NLog.Config.LoggingConfiguration.AddRule(NLog.LogLevel, NLog.LogLevel, NLog.Targets.Target, System.String, Boolean)'. (0x80131513)
    MFiles.VaultApplications.Logging: [Void UpdateConfiguration(MFiles.VaultApplications.Logging.NLog.NLogLoggingConfiguration)], IL:-1, Method not found: 'Void NLog.Config.LoggingConfiguration.AddRule(NLog.LogLevel, NLog.LogLevel, NLog.Targets.Target, System.String, Boolean)'. (0x80131513)
    (M-Files 22.9.11816.9 2022-09-27T14:46:39.729Z)

  • Yes.  I'm happy to help.  Want to give it a go and if you have problems then either post here or, if it's complex, drop me an email and we'll arrange a suitable time for a call?

  • I ran into the following error after building and then attempting to install(so this happened when installing the application):

    DlgClientApplications.cpp, 539, Starting the application "ConformityVaultApplication (1.6.7)" failed. (0x80040120)
    Item_DocumentVault.cpp, 1780, Starting the application "ConformityVaultApplication (1.6.7)" failed. (0x80040120)
    RPCMethodCallWithRetry.h, 151, Starting the application "ConformityVaultApplication (1.6.7)" failed. (0x80040120)
    RPCMethodCallWithRetry.h, 151, Starting the application "ConformityVaultApplication (1.6.7)" failed. (0x80040120)
    RPCClientScript.cpp, 1021, Starting the application "ConformityVaultApplication (1.6.7)" failed. (0x80040120)
    RPCClientScript.cpp, 406, Starting the application "ConformityVaultApplication (1.6.7)" failed. (0x80040120)
    RPCClientScriptHelper.cpp, 625, Starting the application "ConformityVaultApplication (1.6.7)" failed. (0x80040120)
    RPCClientScriptHelper.cpp, 1159, Starting the application "ConformityVaultApplication (1.6.7)" failed. (0x80040120)
    RPCClientScriptHelper.cpp, 1722, Starting the application "ConformityVaultApplication (1.6.7)" failed. (0x80040120)
    ExtensionManager.cpp, 648, Starting the application "ConformityVaultApplication (1.6.7)" failed. (0x80040120)
    ExtensionManager.cpp, 648, Exception has been thrown by the target of an invocation. (0x80131604)
    ExtensionManager.cpp, 782, Exception has been thrown by the target of an invocation. (0x80131604)
    ExtObjectPlatform.cpp, 177, Exception has been thrown by the target of an invocation. (0x80131604)
    ExtObjectPlatform.cpp, 439, Exception has been thrown by the target of an invocation. (0x80131604)
    CoMFAppPlatform.cpp, 322, Exception has been thrown by the target of an invocation. (0x80131604)
    CoDynamicCLRObjectWrapper.cpp, 127, Exception has been thrown by the target of an invocation. (0x80131604)
    ManagedError.cpp, 150, Exception has been thrown by the target of an invocation. (0x80131604)
    mscorlib: [CManagedError* CRuntimeObjectWrapper.InitAndCreateObject(CRuntimeObjectWrapper*, CManagedError*, Char**, Char**)], IL:45, Exception has been thrown by the target of an invocation. (0x80131604)
    mscorlib: [System.Object CreateInstance(System.Type)], IL:0, Exception has been thrown by the target of an invocation. (0x80131604)
    mscorlib: [System.Object CreateInstance(System.Type, Boolean)], IL:58, Exception has been thrown by the target of an invocation. (0x80131604)
    mscorlib: [System.Object CreateInstanceSlow(Boolean, Boolean, Boolean, System.Threading.StackCrawlMark ByRef)], IL:106, Exception has been thrown by the target of an invocation. (0x80131604)
    mscorlib: [System.Object CreateInstance(System.RuntimeType, Boolean, Boolean, Boolean ByRef, System.RuntimeMethodHandleInternal ByRef, Boolean ByRef)], IL:-1, Exception has been thrown by the target of an invocation. (0x80131604)
    VaultApplication.cs, 31 (IL:17), The type initializer for 'MFiles.VaultApplications.Logging.LogManager' threw an exception. (0x80131534)
    MFiles.VaultApplications.Logging: [Void .ctor()], IL:49, The type initializer for 'MFiles.VaultApplications.Logging.LogManager' threw an exception. (0x80131534)
    ConfigurableVaultApplicationBase.cs, 46 (IL:17), The type initializer for 'MFiles.VaultApplications.Logging.LogManager' threw an exception. (0x80131534)
    MFiles.VaultApplications.Logging: [MFiles.VAF.Configuration.SecureConfigurationManager`1[TSecureConfiguration] GetConfigurationManager()], IL:28, The type initializer for 'MFiles.VaultApplications.Logging.LogManager' threw an exception. (0x80131534)
    MFiles.VaultApplications.Logging: [Void .ctor(Boolean, System.Resources.ResourceManager[])], IL:7, The type initializer for 'MFiles.VaultApplications.Logging.LogManager' threw an exception. (0x80131534)
    MFiles.VaultApplications.Logging: [Void .ctor(Boolean)], IL:0, The type initializer for 'MFiles.VaultApplications.Logging.LogManager' threw an exception. (0x80131534)
    MFiles.VaultApplications.Logging: [MFiles.VaultApplications.Logging.ILogger GetLogger(System.Type, MFiles.VaultApplications.Logging.ILoggingContext)], IL:0, The type initializer for 'MFiles.VaultApplications.Logging.LogManager' threw an exception. (0x80131534)
    MFiles.VaultApplications.Logging: [Void .cctor()], IL:5, Method not found: 'Void NLog.Config.LoggingConfiguration.AddRule(NLog.LogLevel, NLog.LogLevel, NLog.Targets.Target, System.String, Boolean)'. (0x80131513)
    MFiles.VaultApplications.Logging: [Void UpdateConfiguration(MFiles.VaultApplications.Logging.NLog.NLogLoggingConfiguration)], IL:-1, Method not found: 'Void NLog.Config.LoggingConfiguration.AddRule(NLog.LogLevel, NLog.LogLevel, NLog.Targets.Target, System.String, Boolean)'. (0x80131513)
    (M-Files 22.9.11816.9 2022-09-27T14:46:39.729Z)

  • We will have to communicate via email or another way(teams maybe?) since the forum is flagging my posts with an error message I am running into as spam. I will send an email your way.

Reply Children
No Data