none
Retrieval of Type Metadata has failed while building WSDL at 'SAPTABLE/ZR000TT_RL002' RRS feed

  • Question

  • Microsoft.ServiceModel.Channels.Common.MetadataException: Retrieval of Type Metadata has failed while building WSDL at 'SAPTABLE/ZR000TT_RL002' ---> Microsoft.ServiceModel.Channels.Common.MetadataException: The SAP system returned error: Details: ErrorCode=RFC_EXCEPTION. ErrorGroup=RFC_ERROR_APPLICATION_EXCEPTION. SapErrorMessage=EXCEPTION UNSUPPORTED_TYPE RAISED.  AdapterErrorMessage=The RfcGetStructureInfoAsTable API returned the error code 2 when obtaining metadata for the type ZR000TT_RL002. Check the RFC SDK trace files for details.. when trying to retrieve metadata for table: ZR000TT_RL002. ---> Microsoft.Adapters.SAP.RFCException: Details: ErrorCode=RFC_EXCEPTION. ErrorGroup=RFC_ERROR_APPLICATION_EXCEPTION. SapErrorMessage=EXCEPTION UNSUPPORTED_TYPE RAISED.  AdapterErrorMessage=The RfcGetStructureInfoAsTable API returned the error code 2 when obtaining metadata for the type ZR000TT_RL002. Check the RFC SDK trace files for details..

       at Microsoft.Adapters.SAP.RFCException.HelperThrow(Int32 retCode, String additionalErrorMessage)
       at Microsoft.Adapters.SAP.RfcClientConnection.GetTableDefinition(String tableName, Int32& singleByteEncodingLength, Int32& doubleByteEncodingLength)
       at Microsoft.Adapters.SAP.InternalTableMetadata..ctor(String originalTypeName, SAPConnection sapConnection)
       at Microsoft.Adapters.SAP.SAPMetadataContract.ResolveTypeMetadata(String typeId, TimeSpan timeout, TypeMetadataCollection& extraTypeMetadataResolved)
       at Microsoft.ServiceModel.Channels.Common.Design.MetadataCache.GetTypeMetadata(String uniqueId, Guid clientId, TimeSpan timeout)
       at Microsoft.ServiceModel.Channels.Common.MetadataLookup.GetTypeDefinition(String typeId, TimeSpan timeout)
       at Microsoft.Adapters.SAP.SapTableMetadata.ResolveSapTableMetadata(String tableName, SAPConnection sapConnection, MetadataLookup metadataLookup, TimeoutHelper timeoutHelper)
       --- End of inner exception stack trace ---
       at Microsoft.Adapters.SAP.SapTableMetadata.ResolveSapTableMetadata(String tableName, SAPConnection sapConnection, MetadataLookup metadataLookup, TimeoutHelper timeoutHelper)
       at Microsoft.Adapters.SAP.SAPMetadataContract.ResolveTypeMetadata(String typeId, TimeSpan timeout, TypeMetadataCollection& extraTypeMetadataResolved)
       at Microsoft.ServiceModel.Channels.Common.Design.MetadataCache.GetTypeMetadata(String uniqueId, Guid clientId, TimeSpan timeout)
       at Microsoft.ServiceModel.Channels.Common.MetadataLookup.GetTypeDefinition(String typeId, TimeSpan timeout)
       at Microsoft.ServiceModel.Channels.Common.Design.XmlSchemaGenHelper.SetElementSchema(XmlSchemaExportContext schemaExportContext, MetadataLookup metadataLookup, XmlSchema schema, XmlSchemaElement elem, QualifiedTypeContainer qualifiedTypeContainer, TimeSpan timeout)
       --- End of inner exception stack trace ---

    Server stack trace: 
       at Microsoft.ServiceModel.Channels.Common.Design.AdapterExceptions.ThrowMetadataException(String errorMessage, Object arg, Object source, Exception innerException)
       at Microsoft.ServiceModel.Channels.Common.Design.XmlSchemaGenHelper.SetElementSchema(XmlSchemaExportContext schemaExportContext, MetadataLookup metadataLookup, XmlSchema schema, XmlSchemaElement elem, QualifiedTypeContainer qualifiedTypeContainer, TimeSpan timeout)
       at Microsoft.ServiceModel.Channels.Common.ParameterizedOperationMetadata.AddSequenceElements(XmlSchemaExportContext schemaExportContext, MetadataLookup metadataLookup, XmlSchema schema, XmlSchemaSequence sequence, Boolean isRequest, TimeSpan timeout)
       at Microsoft.ServiceModel.Channels.Common.ParameterizedOperationMetadata.ExportInputXmlSchema(XmlSchemaExportContext schemaExportContext, MetadataLookup metadataLookup, TimeSpan timeout)
       at Microsoft.ServiceModel.Channels.Common.Design.WsdlBuilderHelper.AddOperationSchema(OperationMetadata operationMetadata, TimeSpan timeout)
       at Microsoft.ServiceModel.Channels.Common.Design.WsdlBuilder.SearchBrowseNodes(MetadataRetrievalNode[] nodes, WsdlBuilderHelper helper, TimeoutHelper timeoutHelper)
       at Microsoft.ServiceModel.Channels.Common.Design.WsdlBuilder.GenerateOperationSchemas(WsdlBuilderHelper helper, MetadataRetrievalNode[] nodes, TimeSpan timeout)
       at Microsoft.ServiceModel.Channels.Common.Design.WsdlBuilder.GetWsdl(MetadataRetrievalNode[] nodes, Uri uri, TimeSpan timeout)
       at Microsoft.Adapters.SAP.SapCustomWsdlRetrieval.GetWsdl(MetadataRetrievalNode[] nodes, Uri uri, TimeSpan timeout)
       at Microsoft.ServiceModel.Channels.Common.Design.MetadataExchanger.ProcessMetadataGet(Message message, Uri target, TimeSpan timeout, MetadataLookup metadataLookup)
       at Microsoft.ServiceModel.Channels.Common.Design.MetadataExchanger.ProcessMetadataMessage(Message message, Uri target, TimeSpan timeout, MetadataLookup metadataLookup, Message& replyMessage)
       at Microsoft.ServiceModel.Channels.Common.Channels.AdapterRequestChannel.Request(Message message, TimeSpan timeout)
       at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
       at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
       at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
       at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

    Exception rethrown at [0]: 
       at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
       at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
       at Microsoft.ServiceModel.Channels.IMetadataRetrievalContract.GetMetadata(MetadataRetrievalNode[] nodes)
       at Microsoft.ServiceModel.Channels.Tools.MetadataSearchBrowse.MetadataPanel.GetWsdl(MetadataRetrievalNode[] nodes)
       at Microsoft.ServiceModel.Channels.Tools.MetadataSearchBrowse.MetadataUserControl.GetWsdl()

    Wednesday, December 17, 2014 8:19 AM

Answers

  • Are you getting this just when you are trying to connect to rfc server or while actually listening to rfc server?

    This is a the problem with SAP itself, may be permission or internal to their rfc server. Provide error details to sap team "ErrorCode=RFC_EXCEPTION. ErrorGroup=RFC_ERROR_APPLICATION_EXCEPTION. SapErrorMessage=EXCEPTION UNSUPPORTED_TYPE " 

    Also ask them to do the connection test also because they will get the error while doing connection test by them too.

    If this answers your question please mark it as Answer and if this post is helpful, please vote as helpful. Thanks !

    • Proposed as answer by Angie Xu Thursday, December 25, 2014 1:40 AM
    • Marked as answer by Angie Xu Monday, December 29, 2014 5:16 AM
    Friday, December 19, 2014 4:31 AM

All replies

  • ZR000TT_RL002 contains nested table and ,I doubt your Operation is not supported by the SAP Adapter in BizTalk, see the limitations  of BizTalk SAPadapter list

    http://msdn.microsoft.com/library/dd787849(BTS.10).aspx

    Thanks

    Abhishk


    Thursday, December 18, 2014 5:08 PM
  • Are you getting this just when you are trying to connect to rfc server or while actually listening to rfc server?

    This is a the problem with SAP itself, may be permission or internal to their rfc server. Provide error details to sap team "ErrorCode=RFC_EXCEPTION. ErrorGroup=RFC_ERROR_APPLICATION_EXCEPTION. SapErrorMessage=EXCEPTION UNSUPPORTED_TYPE " 

    Also ask them to do the connection test also because they will get the error while doing connection test by them too.

    If this answers your question please mark it as Answer and if this post is helpful, please vote as helpful. Thanks !

    • Proposed as answer by Angie Xu Thursday, December 25, 2014 1:40 AM
    • Marked as answer by Angie Xu Monday, December 29, 2014 5:16 AM
    Friday, December 19, 2014 4:31 AM
  • Thanks!
    Line Type is RFC definition, leads to cannot generate WSDL.
    Wednesday, January 21, 2015 3:36 AM
  • Thanks!
    Wednesday, January 21, 2015 3:36 AM