Skip to Content
author's profile photo Former Member
Former Member

Posting file to navigation property - 405 Method not allowed

Dear experts,

I am trying to implement posting file through navigation property, so I can access key fields in CREATE_STREAM method. This approach is based on Matt's suggestion here

I created this simple structure oData service.Key field is Email for both entities. UserPhoto is media entity.

Now the issue:

I can access CREATE_STREAM directly - /ZSA_USERS_SRV/UserPhotoSet/

I can access GET_USERPHOTO_GET_ENTITY by navigation (and I also can see key field) - /sap/opu/odata/SAP/ZSA_USERS_SRV/UserSet('')/Photo

But when I try to post file to /sap/opu/odata/SAP/ZSA_USERS_SRV/UserSet('')/Photo

I get 405 Method not allowed - The specified HTTP method is not allowed for the resource identified by the Data Service Request URI.

Can you please help me which kind of setting did I forget to switch on?

Thank you,


1.JPG (28.7 kB)
2.JPG (22.1 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jul 23, 2014 at 03:58 PM


    Check Ron's reply here.

    May be you can try by marking the target cardinality as N instead of 1. I don't have a logical reasoning though.


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.