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

oData create() says Invalid redirect attempt for associations

Hi,

I have the following error:

When I call .create() of my oData Model for an associated entity "/MainEntitySet('1')/SubEntitySet" it successfully calls my method in NetWeaver.

I can create the entity in database and return the data.

But instead of the success event handler the error handler of the .create() method is called in UI5 with following content:

message: "HTTP request failed"

responseText: "Invalid redirect attempt."

statusCode: 403

statusText: "Forbidden"


headers:

Array[0]

  1. Content-Length: "25"
  2. Content-Type: "application/json;charset=utf-8"
  3. DataServiceVersion: "2.0"
  4. Date: "Fri, 06 Nov 2015 14:54:01 GMT"
  5. Server: "SAP"
  6. Strict-Transport-Security: "max-age=31536000; includeSubDomains; preload"
  7. length: 0
  8. location: "http://.../MY_ODATA_SERVICE/SubEntitySet(MainId='1',SubId='1')"

I don't get it whats wrong and how to solve this 😔


Thank you and kind regards,

Dominik

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Nov 09, 2015 at 06:48 PM

    Still need a solution.

    No one got an idea?

    Thanks,

    Dominik

    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.