# SegmentRefNotFoundException
## Format
SegmentRefNotFoundException
expected:
SegmentRef:
- entryServiceName: ENTRY_SERVICE_NAME
- networkAddress: NETWORK_ADDRESS
- parentServiceName: PARENT_SERVICE_NAME
- parentSpanId: PARENT_SPAN_ID
- parentTraceSegmentId: PARENT_TRACE_SEGMENT_ID
- refType: REF_TYPE
actual:
SegmentRef: [SEGMENT_REF_FIELD] expected=>{EXPECTED_SIZE}, actual=>{ACTUAL_SIZE}
- entryServiceName: ENTRY_SERVICE_NAME
- networkAddress: NETWORK_ADDRESS
- parentServiceName: PARENT_SERVICE_NAME
- parentSpanId: PARENT_SPAN_ID
- parentTraceSegmentId: PARENT_TRACE_SEGMENT_ID
- refType: REF_TYPE
......
**NOTE**: The validate tool check all the segment ref of the span.
## Cause
The `SegmentRefNotFoundException` caused by the segment ref cannot found in the actual data file
## Check Points
1. Check if the field value of segment ref what you expect is correct