{ Community }
  • Academy
  • Docs
  • Developers
  • Resources
    • Community Articles
    • Apigee on GitHub
    • Code Samples
    • Videos & eBooks
    • Accelerator Methodology
  • Support
  • Ask a Question
  • Spaces
    • Product Announcements
    • General
    • Edge/API Management
    • Developer Portal (Drupal-based)
    • Developer Portal (Integrated)
    • API Design
    • APIM on Istio
    • Extensions
    • Business of APIs
    • Academy/Certification
    • Adapter for Envoy
    • Analytics
    • Events
    • Hybrid
    • Integration (AWS, PCF, Etc.)
    • Microgateway
    • Monetization
    • Private Cloud Deployment
    • 日本語コミュニティ
    • Insights
    • IoT Apigee Link
    • BaaS/Usergrid
    • BaaS Transition/Migration
    • Apigee-127
    • New Customers
    • Topics
    • Questions
    • Articles
    • Ideas
    • Leaderboard
    • Badges
  • Log in
  • Sign up

Get answers, ideas, and support from the Apigee Community

  • Home /
  • Edge/API Management /
avatar image
0
Question by Siddharth Barahalikar · Apr 06, 2015 at 10:03 AM · 1.7k Views json payloadextractvariable

extractvariables.ExecutionFailed

Hi guys, I'm trying to POST some JSON Data and then use extract and assign policies to save them in BaaS usergrid.

I have also included a Raise Fault policy to get an error if we didn't submit required fields.

In console when I add header and post a json in body and send as an POST request I get the following error.

HTTP/1.1 500 Internal Server ErrorContent-Length:153Connection:keep-aliveContent-Type:application/json{
  "fault": {
    "faultstring": "Failed to execute the ExtractVariables: Extract-Comments-Post",
    "detail": {
      "errorcode": "steps.extractvariables.ExecutionFailed"
    }
  }
}

I know that this error comes when there is no JSON payload and hence ExtractVariable policy fails to extract the data. But I'm posting json data in body. So how can I proceed with this?

I've attached the policy here,please have a look and suggest me what to do.

jokecomments-rev1-2015-04-06.zip

jokecomments-rev1-2015-04-06.zip (2.9 kB)
Comment
Add comment
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Close

1 Answer

  • Sort: 
avatar image
0
Best Answer

Answer by sriki77 · Apr 06, 2015 at 10:25 AM

Change this line to

<Source clearPayload="false">request.content</Source>

in your extract policy file and check.

Note: request.content instead of request

Comment
Add comment Show 3 · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Siddharth Barahalikar   · Apr 06, 2015 at 10:34 AM 0
Link

Hi @sriki77 ,I'm getting a new error...please check the screen-shot am I entering them correctly?

HTTP/1.1 500 Internal Server ErrorContent-Length:202Connection:keep-aliveContent-Type:application/json{
  "fault": {
    "faultstring": "ExtractVariables Extract-Comments-Post: Json path parsing failed for for flow variables request.content",
    "detail": {
      "errorcode": "steps.extractvariables.JsonPathParsingFailure"
    }
  }
}

avatar image sriki77 ♦ Siddharth Barahalikar · Apr 06, 2015 at 11:17 AM 0
Link

@Barahalikar Siddharth I do not see the image. can you please update. Also paste the JSON body you are posting.

avatar image Siddharth Barahalikar sriki77 ♦   · Apr 06, 2015 at 12:02 PM 0
Link

@sriki77 It is solved I was entering invalid JSON data. Now post is working. Anyway thanks for replying.

Follow this Question

Answers Answers and Comments

14 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

In case of proxy.pathsuffix, I need to check if the URL ends with certain text. Is there a possibility to achieve this 1 Answer

Surprising behavior in Javascript code; changing one variable causes a change in another 2 Answers

Not able to get body content in javascript policy 1 Answer

Best way to extract value from Json array Object and assign if we know the max value of array incoming. 1 Answer

Access JSON payload properties in Assign Message policy 1 Answer

  • Products
    • Edge - APIs
    • Insights - Big Data
    • Plans
  • Developers
    • Overview
    • Documentation
  • Resources
    • Overview
    • Blog
    • Apigee Institute
    • Academy
    • Documentation
  • Company
    • Overview
    • Press
    • Customers
    • Partners
    • Team
    • Events
    • Careers
    • Contact Us
  • Support
    • Support Overview
    • Documentation
    • Status
    • Edge Support Portal
    • Privacy Policy
    • Terms & Conditions
© 2021 Apigee Corp. All rights reserved. - Apigee Community Terms of Use - Powered by AnswerHub
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • Product Announcements
  • General
  • Edge/API Management
  • Developer Portal (Drupal-based)
  • Developer Portal (Integrated)
  • API Design
  • APIM on Istio
  • Extensions
  • Business of APIs
  • Academy/Certification
  • Adapter for Envoy
  • Analytics
  • Events
  • Hybrid
  • Integration (AWS, PCF, Etc.)
  • Microgateway
  • Monetization
  • Private Cloud Deployment
  • 日本語コミュニティ
  • Insights
  • IoT Apigee Link
  • BaaS/Usergrid
  • BaaS Transition/Migration
  • Apigee-127
  • New Customers
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Badges