如何处理resource not found for the segment XXXXX error message

Created by Jerry Wang, last modified on Dec 10, 2015

使用Postman 测试Odata request时遇到如下error message:
clipboard1

原因是因为请求的entityset在变量ms_model_class-associations里不存在对应的entry:
clipboard2
因此抛exception:
clipboard3
在line 66系统并不会进入line 71的model cache invalidation,因为mv_cache_handshake为abap_false:
clipboard4
如果在debugger里强行进入cache evaluation,则会trigger到backend system的model metadata retrieve:
clipboard5
clipboard6

结束时候会hard code成outdated = abap_true:
clipboard7
这个cache evaluation的flag只有在metadata request时才起作用:
clipboard8

猜你喜欢

转载自blog.csdn.net/i042416/article/details/92983971