Overview
When using Smart Migration to migrate Managed objects, you may get an error message like the one below.
While it points to offline objects and incorrect parameters, the most likely cause is that the "Default Class" setting is not set (because it is not necessary when migrating Managed objects only - they already have a class), but the code tries to read it, and that causes confusion.
Workaround
Try setting the value, even if you will not need it.
- Set "Type of Items to Be Migrated" to "Unmanaged".
- You now see the "Default Class" setting.
- Set a suitable value to it.
- Save.
- Set "Type of Items to Be Migrated" back to "Managed".
- Save.
Solution
This behavior is logged for improvement with ID 168116 in our system and you can monitor the release notes for it.
Sample Error Message
Error: The parameter is incorrect. (The parameter is incorrect.)
Object marked to be available offline (The parameter is incorrect.)
at MFilesErrorHelper.GetAsyncRejectionError (/lib/mfiles/MFilesErrorHelper.js:24:17)
at Anonymous function (/lib/mfiles/helpers/ExtendedVaultExtensionMethodCaller.js:95:25)
AsyncCaller.cpp, 362, The parameter is incorrect. (The parameter is incorrect.) (0x80070057)
CoVaultExtensionMethodOperations.cpp, 269, The parameter is incorrect. (The parameter is incorrect.) (0x80070057)
LatestRPC.generated.cpp, 47591, The parameter is incorrect. (The parameter is incorrect.) (0x80070057)
RPCVaultExtensionMethods.cpp, 547, The parameter is incorrect. (The parameter is incorrect.) (0x80070057)
RPCVaultExtensionMethods.cpp, 419, The parameter is incorrect. (The parameter is incorrect.) (0x80070057)
MCallInLoop.h, 521, The parameter is incorrect. (The parameter is incorrect.) (0x80070057)
RPCVaultExtensionMethods.cpp, 737, The parameter is incorrect. (The parameter is incorrect.) (0x80070057)
CoApplicationHost.cpp, 276, The parameter is incorrect. (The parameter is incorrect.) (0x80070057)
ManagedError.cpp, 149, The parameter is incorrect. (The parameter is incorrect.) (0x80070057)
M-Files 23.6.12695.3: CoVaultClassOperations.cpp, 580, The parameter is incorrect. (The parameter is incorrect.) (0x80070057)
M-Files 23.6.12695.3: ServerOperationsHelper.cpp, 878, The parameter is incorrect. (The parameter is incorrect.) (0x80070057)
M-Files 23.6.12695.3: LatestRPC.generated.cpp, 44071, The parameter is incorrect. (The parameter is incorrect.) (0x80070057)
M-Files 23.6.12695.3: RPCVault.cpp, 2817, The parameter is incorrect. (The parameter is incorrect.) (0x80070057)
M-Files 23.6.12695.3: RPCVault.cpp, 1133, The parameter is incorrect. (The parameter is incorrect.) (0x80070057)
M-Files 23.6.12695.3: MCallInLoop.h, 521, The parameter is incorrect. (The parameter is incorrect.) (0x80070057)
M-Files 23.6.12695.3: RPCVaultAdminHelper.cpp, 7615, The parameter is incorrect. (The parameter is incorrect.) (0x80070057)
M-Files 23.6.12695.3: [CManagedError* CApplicationHost.ExecuteExtensionMethod(CApplicationHost*, CManagedError*, MFilesAPIExternalConnectors.IVault*, _GUID, Char*, Char*, Char*, Char*, CMF_String*)], IL:21, Object marked to be available offline (The parameter is incorrect.) (0x80040001)
M-Files 23.6.12695.3: [System.String ExecuteExtensionMethod(MFilesAPI.Vault, System.Guid, System.String, System.String, System.String, System.String)], IL:460, Object marked to be available offline (The parameter is incorrect.) (0x80040001)
M-Files 23.6.12695.3: [System.String ExecuteExtensionMethod(MFiles.Extensibility.Applications.IOperationContext, System.String, System.String, System.String)], IL:-1, Object marked to be available offline (The parameter is incorrect.) (0x80040001)
M-Files 23.6.12695.3: [Void PrivateInvoke(System.Runtime.Remoting.Proxies.MessageData ByRef, Int32)], IL:442, Object marked to be available offline (The parameter is incorrect.) (0x80040001)
M-Files 23.6.12695.3: [Void HandleReturnMessage(System.Runtime.Remoting.Messaging.IMessage, System.Runtime.Remoting.Messaging.IMessage)], IL:39, Object marked to be available offline (The parameter is incorrect.) (0x80040001)
M-Files 23.6.12695.3: [System.Runtime.Remoting.Channels.CrossAppDomainSink.DoTransitionDispatchCallback(System.Object[] args)], IL:22, Object marked to be available offline (The parameter is incorrect.) (0x80040001)
M-Files 23.6.12695.3: [System.Runtime.Remoting.Channels.CrossAppDomainSink.DoDispatch(Byte[] reqStmBuff, System.Runtime.Remoting.Messaging.SmuggledMethodCallMessage smuggledMcm, System.Runtime.Remoting.Messaging.SmuggledMethodReturnMessage& smuggledMrm)], IL:71, Object marked to be available offline (The parameter is incorrect.) (0x80040001)
M-Files 23.6.12695.3: [System.Runtime.Remoting.Channels.ChannelServices.SyncDispatchMessage(System.Runtime.Remoting.Messaging.IMessage msg)], IL:66, Object marked to be available offline (The parameter is incorrect.) (0x80040001)
M-Files 23.6.12695.3: [System.Runtime.Remoting.Channels.CrossContextChannel.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage reqMsg)], IL:31, Object marked to be available offline (The parameter is incorrect.) (0x80040001)
M-Files 23.6.12695.3: [System.Threading.Thread.InternalCrossContextCallback(System.Runtime.Remoting.Contexts.Context ctx, IntPtr ctxID, Int32 appDomainID, System.Threading.InternalCrossContextDelegate ftnToCall, System.Object[] args)], IL:-1, Object marked to be available offline (The parameter is incorrect.) (0x80040001)
M-Files 23.6.12695.3: [System.Runtime.Remoting.Channels.CrossContextChannel.SyncProcessMessageCallback(System.Object[] args)], IL:89, Object marked to be available offline (The parameter is incorrect.) (0x80040001)
M-Files 23.6.12695.3: [System.Runtime.Remoting.Messaging.ServerContextTerminatorSink.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage reqMsg)], IL:79, Object marked to be available offline (The parameter is incorrect.) (0x80040001)
M-Files 23.6.12695.3: [System.Runtime.Remoting.Messaging.ServerObjectTerminatorSink.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage reqMsg)], IL:72, Object marked to be available offline (The parameter is incorrect.) (0x80040001)
M-Files 23.6.12695.3: [System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(System.Runtime.Remoting.Messaging.IMessage msg)], IL:0, Object marked to be available offline (The parameter is incorrect.) (0x80040001)
M-Files 23.6.12695.3: [System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, System.Object[] args, System.Object server, System.Object[]& outArgs)], IL:-1, Object marked to be available offline (The parameter is incorrect.) (0x80040001)
M-Files 23.6.12695.3: SmartMigrationMultiService.cs, 980 (IL:718), Object marked to be available offline (The parameter is incorrect.) (0x80040001)
M-Files 23.6.12695.3: SmartMigrationMultiService.cs, 1389 (IL:214), Object marked to be available offline (The parameter is incorrect.) (0x80040001)
M-Files 23.6.12695.3: MigrationUtilities.cs, 80 (IL:115), Object marked to be available offline (The parameter is incorrect.) (0x80040001)
(M-Files 23.4.12528.8 2023-08-04T13:24:03.796Z)
