Error using wm.mft.admin:importData

I have exported configuration from one environment and wish to import into another. However when I import, I receive the below error. How do I fix? I’m currently using the IS Package/Management/[wmMFT/Browse services/Test method to export/import - unless there’s another way?

names
output errorMessages The data could not be read from the file E:[PATH][FILE].xml. Invalid byte 1 of 1-byte UTF-8 sequence.
asset assetType
id
name
status
message
stacktrace The data could not be read from the file E:[PATH][FILE].xml. Invalid byte 1 of 1-byte UTF-8 sequence. com.softwareag.mft.util.ErrorHandler.handleException(ErrorHandler.java:124) com.softwareag.mft.util.ErrorHandler.handleException(ErrorHandler.java:58) com.softwareag.mft.util.ErrorHandler.handleException(ErrorHandler.java:38) com.softwareag.mft.server.services.impl.AssetManager.importAssets(AssetManager.java:86) com.softwareag.mft.proxy.AssetManagerProxy.importAssets(AssetManagerProxy.java:42) wm.mft.adminimpl.importData(adminimpl.java:455) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:497) com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:406) com.wm.app.b2b.server.invoke.InvokeManager.process(InvokeManager.java:649) com.wm.app.b2b.server.util.tspace.ReservationProcessor.process(ReservationProcessor.java:39) com.wm.app.b2b.server.invoke.StatisticsProcessor.process(StatisticsProcessor.java:49) com.wm.app.b2b.server.invoke.ServiceCompletionImpl.process(ServiceCompletionImpl.java:243) com.wm.app.b2b.server.invoke.ValidateProcessor.process(ValidateProcessor.java:49) com.wm.app.b2b.server.invoke.PipelineProcessor.process(PipelineProcessor.java:171) com.wm.app.b2b.server.ACLManager.process(ACLManager.java:303) com.wm.app.b2b.server.invoke.DispatchProcessor.process(DispatchProcessor.java:34) com.wm.app.b2b.server.AuditLogManager.process(AuditLogManager.java:377) com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:548) com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:385) com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:238) com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:107) com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:79) com.wm.app.b2b.server.Service.doInvoke(Service.java:682) com.wm.app.b2b.server.Service.doInvoke(Service.java:595) wm.server.xidl.testServiceWrapper(xidl.java:562) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:497) com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:416) com.wm.app.b2b.server.invoke.InvokeManager.process(InvokeManager.java:649) com.wm.app.b2b.server.util.tspace.ReservationProcessor.process(ReservationProcessor.java:39) com.wm.app.b2b.server.invoke.StatisticsProcessor.process(StatisticsProcessor.java:49) com.wm.app.b2b.server.invoke.ServiceCompletionImpl.process(ServiceCompletionImpl.java:243) com.wm.app.b2b.server.invoke.ValidateProcessor.process(ValidateProcessor.java:49) com.wm.app.b2b.server.invoke.PipelineProcessor.process(PipelineProcessor.java:171) com.wm.app.b2b.server.ACLManager.process(ACLManager.java:303) com.wm.app.b2b.server.invoke.DispatchProcessor.process(DispatchProcessor.java:34) com.wm.app.b2b.server.AuditLogManager.process(AuditLogManager.java:377) com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:548) com.wm.app.b2b.server.invoke.InvokeManager.invoke(InvokeManager.java:385) com.wm.app.b2b.server.HTTPInvokeHandler._process(HTTPInvokeHandler.java:254) com.wm.app.b2b.server.InvokeHandler.process(InvokeHandler.java:100) com.wm.app.b2b.server.HTTPDispatch.handleRequest(HTTPDispatch.java:179) com.wm.app.b2b.server.Dispatch.run(Dispatch.java:387) com.wm.util.pool.PooledThread.run(PooledThread.java:127) java.lang.Thread.run(Thread.java:745)

I’ve run this again and had the following issues:

  • Most items imported ok, however some Virtual Folders (VFS) reported report “Insertion of asset failed” - any further logs here?
  • When you import active Scheduled Events they also import as Active - preference here is that they are not or option is provided - should i add to Brainstorm?
  • The Import reports a “A scheduled action with this name already exist” however I’ve stated “true” for “Force” in the Import - seems like a bug
  • Using the Export with “all” as “false” and specifying one or more “names” doesn’t work - it says: “Specify values for input parameter exportData or set input parameter all to true.”. The doco says each field is Optional - so what needs to be set here?

Hi Peter,

Is your issue resolved with the import of assets?
If you are still looking for solution then plz provide the screenshot of the inputs which you are passing to the import service.

Regards,
Mayank