如何处理resource not found for the segment XXXXX error message
最编程
2024-07-30 22:07:49
...
Created by Jerry Wang, last modified on Dec 10, 2015
使用Postman 测试Odata request时遇到如下error message:
原因是因为请求的entityset在变量ms_model_class-associations里不存在对应的entry:
因此抛exception:
在line 66系统并不会进入line 71的model cache invalidation,因为mv_cache_handshake为abap_false:
如果在debugger里强行进入cache evaluation,则会trigger到backend system的model metadata retrieve:
结束时候会hard code成outdated = abap_true:
这个cache evaluation的flag只有在metadata request时才起作用:
要获取更多Jerry的原创文章,请关注公众号"汪子熙":