How to resolve the error 'The attribute "/server/webservices/odata/enableOData4Service" may not be modified' encountered during an import of a Full Server Backup in TIBCO Data Virtualization?

How to resolve the error 'The attribute "/server/webservices/odata/enableOData4Service" may not be modified' encountered during an import of a Full Server Backup in TIBCO Data Virtualization?

book

Article ID: KB0071450

calendar_today

Updated On:

Products Versions
TIBCO Data Virtualization All supported versions

Description

Sometimes importing a Full Server Backup (FSB) from one TDV server to another fails with the below error. This article explains the reason and the steps to follow to help with the error. 

----------------------
Example of the import command and the error:
[TDV_Server_Install_Dir]\bin>backup_import.bat -server localhost -port 9400 -user admin -password password  -encryptionPassword 1234567890 -pkgfile "C:\temp\FSB_9800.car"

com.compositesw.cdms.webapi.WebapiException: The attribute "/server/webservices/odata/enableOData4Service" may not be modified. [Log ID: e57cd810-636a-4661-ad6a-7b4eb2d305f4]
at com.compositesw.cdms.webapi.WebapiException_SOAPSerializer.doDeserialize(WebapiException_SOAPSerializer.java:58)
at com.sun.xml.rpc.encoding.ObjectSerializerBase.deserialize(ObjectSerializerBase.java:209)
at com.sun.xml.rpc.encoding.ReferenceableSerializerImpl.deserialize(ReferenceableSerializerImpl.java:172)
at com.compositesw.cdms.webapi.service.WMetaDataSvc_archive_performImport_Fault_SOAPSerializer.deserializeDetail(WMetaDataSvc_archive_performImport_Fault_SOAPSerializer.java:54)
at com.sun.xml.rpc.encoding.SOAPFaultInfoSerializer.doDeserialize(SOAPFaultInfoSerializer.java:151)
at com.sun.xml.rpc.encoding.ObjectSerializerBase.deserialize(ObjectSerializerBase.java:209)
at com.sun.xml.rpc.encoding.ReferenceableSerializerImpl.deserialize(ReferenceableSerializerImpl.java:172)
at com.compositesw.cdms.webapi.service.WMetaDataSvc_Stub._readBodyFaultElement(WMetaDataSvc_Stub.java:25271)
at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:238)
at com.compositesw.cdms.webapi.service.WMetaDataSvc_Stub.archive_performImport(WMetaDataSvc_Stub.java:5373)
at com.compositesw.cdms.webapi.WArchive.performImport(WArchive.java:163)
at com.compositesw.cmdline.archive.RestoreCommand.uploadArchive(RestoreCommand.java:478)
at com.compositesw.cmdline.archive.RestoreCommand.startCommand(RestoreCommand.java:130)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.compositesw.base.boot.ArchiveBoot.main(ArchiveBoot.java:63)


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

This error is seen when the value for the below configuration is set differently between the source TDV server (from where the FSB is exported) and the target TDV server (to where the FSB is imported).

Path: TDV Studio > Administration > Configuration > Server > Web Services Interface > ODATA > Enable ODATA 4.0 Services (On Server Restart)
The default value of this configuration is TRUE.

Issue/Introduction

How to resolve the error 'The attribute "/server/webservices/odata/enableOData4Service" may not be modified' encountered during an import of a Full Server Backup in TIBCO Data Virtualization?

Resolution

To resolve this error, follow the below steps in order:

(1) Find the value for the below configuration in the source TDV Server
Path: TDV Studio > Administration > Configuration > Server > Web Services Interface > ODATA > Enable ODATA 4.0 Services (On Server Restart)
(2) Navigate to the target TDV Server and check for the same configuration value. This value would be different between the two servers. 
(3) Make a change in the target TDV Server to reflect the value in the source TDV Server i.e., both the TDV servers should have the same value.
(4) Restart the target TDV Server
(5) Test the FSB import in the target TDV Server.