Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8720

Re: Unstable service is failing sometimes with error 'Resource not found for the segment'

$
0
0

Hi,

 

I have just seen that error if I try to call a single order given by its order ID.

 

This is URL works fine:

http://<host>:8000/sap/opu/odata/sap/LLG_SAP_PM_INTEGRATION/mobile_orders('000000819740')

 

The following URLs fails:

http://<host>.com:8000/sap/opu/odata/sap/LLG_SAP_PM_INTEGRATION/mobile_orders%28%27000000819740%27%29

 

http://<host>:8000/sap/opu/odata/sap/LLG_SAP_PM_INTEGRATION/mobile_orders%28%27819740%27%29

 


The metadata definition for an order looks like:

 

     <EntityType Name="mobile_order" sap:content-version="1">
        <Key>
           <PropertyRef Name="orderid"/>
        </Key>
        <Property Name="person" Type="Edm.Int16" Nullable="false" sap:label="Int2"/>
        <Property Name="ref_equipment" Type="Edm.String" Nullable="false" MaxLength="18"/>
        <Property Name="ref_funcloc" Type="Edm.String" Nullable="false" MaxLength="30"/>
        <Property Name="description" Type="Edm.String" Nullable="false" MaxLength="40"/>
        <Property Name="orderid" Type="Edm.String" Nullable="false" MaxLength="12"/>
        <NavigationProperty Name="mobile_equipment" Relationship="LLG_SAP_PM_INTEGRATION.mobile_ordermobile_equipment" FromRole="FromRole_mobile_ordermobile_equipment" ToRole="ToRole_mobile_ordermobile_equipment"/>
        <NavigationProperty Name="mobile_operation" Relationship="LLG_SAP_PM_INTEGRATION.mobile_ordermobile_operation" FromRole="FromRole_mobile_ordermobile_operation" ToRole="ToRole_mobile_ordermobile_operation"/>
        <NavigationProperty Name="mobile_funcloc" Relationship="LLG_SAP_PM_INTEGRATION.order_funclo" FromRole="FromRole_order_funclo" ToRole="ToRole_order_funclo"/>
     </EntityType>

 

 

As you can see, the length of the order ID is limited to 12 characters. I have done that because the number range of the SAP order is defined by 12 characters. The client should not be able to provide a longer ID.

 

Is the metadata file used to validate the incoming message?

 

I set an external break point in my RFC which should be called. If the request fails as described above the RFC is never called.

 

Using this mobile_orders%28%27000000819740%27%29, is it possible that the actual length is based on '%28%27000000819740%27%29 so that the number of characters is bigger than the defined max length of the property?

 

Many thanks for your help.

 

Andreas


Viewing all articles
Browse latest Browse all 8720

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>