EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB308986: "405 Method Not Allowed" error message appears when attempting to capture response from REST JSON data source with POST method in MicroStrategy XQuery Editor and Generator (XEG) 10.x


Community Admin

• Strategy


This document shows one known issue that "405 Method Not Allowed" error message appears when attempting to capture response from REST JSON data source with POST method in MicroStrategy XQuery Editor and Generator (XEG) 10.x.

SUMMARY:
This document shows one known issue that "405 Method Not Allowed" error message appears when attempting to capture response from REST JSON data source with POST method in Strategy XQuery Editor and Generator (XEG) 10.x. The workaround would be to generate XQuery with GET method in XEG and manually change the request method to POST in Strategy XQuery report. 
 
SYMPTOM:
"405 Method Not Allowed" error message appears when attempting to capture response from REST JSON data source with POST method in Strategy XEG 10.x as shown below:

ka04W000000OhhMQAS_0EM4400000029Am.jpeg


mstr-rest:post() failed. 405 Method Not Allowed. A request was made of a resource using a request method not supported by that resource; for example, using GET on a form which requires data to be presented via POST. 
Error type: XQuery Engine error. HTTP Error. Connection String: .

 
CAUSE:
This is a known issue in Strategy XEG 10.x. Even though POST method is selected, Strategy XEG actually uses GET method in the HTTP request. This could be verified by Fiddler capture as below:

ka04W000000OhhMQAS_0EM4400000029Ao.jpeg

 
If the GET method is not supported by the REST JSON data source, the error would show up. 
 
ACTION:
Strategy will continue to investigate and post updates as soon as they are available.
 
WORKAROUND:
Use GET method in XEG to generate XQuery and manually modify the result XQuery to POST method in Strategy XQuery report. 


Comment

0 comments

Details

Knowledge Article

Published:

April 22, 2017

Last Updated:

April 22, 2017