Getting Bad request error while trying to get a specific document details from c#.

Hi,
While trying to retrieve a specific document details using RESTful WS API from C#, it is throwing "The remote server returned an error: (400) Bad Request" exception.
the request URL i am using for this is like;  "http://<Server>:6405/biprws/raylight/v1/documents/1111"
But it is working fine, if i change my request URL to get the dataproviders of the same document like; "http://<Server>:6405/biprws/raylight/v1/documents/1111/dataproviders"
Please let me know if i am missing any thing in first case, getting the details of a specific document, while sending a request to RESTful SDK.
Thanks,
Kalyan

I think you are using “Content-Type” header or an “Accept” header.
You should be using “Accept: application/xml” for that request
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center
Canada
Follow us on Twitter

Similar Messages

  • Bad request message while trying to access some websites in Firefox 3.6.13?

    Getting Bad request message while trying to access some websites in Firefox 3.6.13?

    Clear the cache and the cookies from sites that cause problems.
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"

  • Excel service and OWA - getting ERROR while trying to open/edit Excel documents

    Hi All,
    We have configured SharePoint 2013 with Excel Service and OWA (Office Web Apps).
    After configuring, we are able to view/edit Word or PowerPoint documents from the browser (as OWA is configured). But we are getting errors while trying to open/edit Excel documents.
    We are not able to view/edit the excel workbook from the browser (through OWA).
    To open the excel in the browser, decision has to be taken at the farm level on what to be used – Excel Service or OWA Server? Is it possible to do setting at site collection level?
    Error details are given below:
    Event code: 3005
    Event message: An unhandled exception has occurred.
    Event time: 3/25/2013 1:29:08 PM
    Event time (UTC): 3/25/2013 7:59:08 AM
    Event ID: fc2e0530f493493896e6c8b6297a0423
    Event sequence: 10
    Event occurrence: 3
    Event detail code: 0
    Application information:
        Application domain: /LM/W3SVC/2/ROOT/x-1-130086717598089315
        Trust level: Full
        Application Virtual Path: /x
        Application Path: C:\Program Files\Microsoft Office Web Apps\ExcelServicesWfe\
        Machine name: VHYDMANTHSTP-02
    Process information:
        Process ID: 1252
        Process name: w3wp.exe
        Account name: NT AUTHORITY\NETWORK SERVICE
    Exception information:
        Exception type: ArgumentException
        Exception message: An entry with the same key already exists.
       at System.Collections.Generic.TreeSet`1.AddIfNotPresent(T item)
       at System.Collections.Generic.SortedDictionary`2..ctor(IDictionary`2 dictionary, IComparer`1 comparer)
       at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.GetInstalledUICultures()
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.IsUICultureSupported(String cultureTag, CultureInfo& cultureInfo)
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentUICulture(String cultureTag, Boolean useOleo, Boolean allowCustomFallback)
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentUICultureFromFrontEnd(String uiCultureTag, Boolean allowFallback)
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentCulturesFromFrontEnd(String uiCultureTag, String dataCultureTag)
       at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.Microsoft.Office.Excel.Server.Host.IEwaHost.SetCurrentCulturesFromContext(HttpContext context)
       at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.Microsoft.Office.Excel.Server.Host.IEwaHost.PreProcessRequest(HttpContext context)
       at Microsoft.Office.Excel.WebUI.XlPreview.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    Request information:
        Request URL:
    http://mysrevr/x/_layouts/xlpreview.aspx?ui=en-US&rs=en-US&WOPISrc=http://myservernames1/_vti_bin/wopi.ashx/files/f36d669ceb814d67bdad0e1e1f98e466&wdSmallView=1
        Request path: /x/_layouts/xlpreview.aspx
        User host address: 10.81.138.92
        User: 
        Is authenticated: False
        Authentication Type: 
        Thread account name: NT AUTHORITY\NETWORK SERVICE
    Thread information:
        Thread ID: 13
        Thread account name: NT AUTHORITY\NETWORK SERVICE
        Is impersonating: False
        Stack trace:    at System.Collections.Generic.TreeSet`1.AddIfNotPresent(T item)
       at System.Collections.Generic.SortedDictionary`2..ctor(IDictionary`2 dictionary, IComparer`1 comparer)
       at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.GetInstalledUICultures()
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.IsUICultureSupported(String cultureTag, CultureInfo& cultureInfo)
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentUICulture(String cultureTag, Boolean useOleo, Boolean allowCustomFallback)
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentUICultureFromFrontEnd(String uiCultureTag, Boolean allowFallback)
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentCulturesFromFrontEnd(String uiCultureTag, String dataCultureTag)
       at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.Microsoft.Office.Excel.Server.Host.IEwaHost.SetCurrentCulturesFromContext(HttpContext context)
       at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.Microsoft.Office.Excel.Server.Host.IEwaHost.PreProcessRequest(HttpContext context)
       at Microsoft.Office.Excel.WebUI.XlPreview.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    I have the same issue while opening the file , i have checked every thing twice. but unable to fix this thing . can any one help.
    One more thing which is i am wondering none of the MS representative replied on this post which is originally posted on March 27-2013.
    is microsoft alive??
    Imran Bashir Network Administrator MCP, JNCIA-EX,ER,JNIOUS +92-333-4330176

  • Getting error while trying to edit locally  the document in KM of portal.

    Hi all
    we have configured  file server in km portal as fsdb mode in portal (ep 7  sp 14). We were able to edit locally the documents . But all of a sudden from some of the PCs  we are getting the following error while  trying to edit the documents.
    The download of the document failed .
    Is there any PC specific configuration required? For the same user  we are able to edit the documents from some PCs  but from another it is not working.
    Thannking you.
    Rajendra.

    Hi,
    You have to set your activex control properly. then only edit locally in KM will work.
    Also check the below wiki
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/KMC/HowtotroubleshootproblemswithLocalEditing
    Hope that helps
    Raghu

  • Getting socket error while trying to get oracle connection using JDBC

    hi,
    I am getting following socket read error while trying to get database connection using JDBC. This happening with jdk1.5.0_12 version with Oracle 9i
    following is the stacktrace...
    Thread t@92: (state = IN_NATIVE)
    - java.net.SocketInputStream.socketRead0(java.io.FileDescriptor, byte[], int, int, int) @bci=0 (Compiled frame; information may be imprecise)
    - java.net.SocketInputStream.read(byte[], int, int) @bci=84, line=129 (Compiled frame)
    - oracle.net.ns.Packet.receive() @bci=31 (Compiled frame)
    - oracle.net.ns.DataPacket.receive() @bci=1 (Interpreted frame)
    - oracle.net.ns.NetInputStream.getNextPacket() @bci=48 (Compiled frame)
    - oracle.jdbc.driver.T4CMAREngine.unmarshalSB1() @bci=1, line=1070 (Compiled frame)
    - oracle.jdbc.driver.T4CStatement.doOall8(boolean, boolean, boolean, boolean) @bci=617, line=207 (Compiled frame)
    - oracle.jdbc.driver.T4CStatement.executeForDescribe() @bci=39, line=790 (Compiled frame)
    - oracle.jdbc.driver.OracleStatement.executeMaybeDescribe() @bci=106, line=1039 (Interpreted frame)
    - oracle.jdbc.driver.T4CStatement.executeMaybeDescribe() @bci=11, line=830 (Interpreted frame)
    - oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout() @bci=128, line=1132 (Interpreted frame)
    - oracle.jdbc.driver.OracleStatement.executeQuery(java.lang.String) @bci=76, line=1272 (Interpreted frame)
    any help would appreciated. thanks in advance

    I do not have exact exception message.
    additionally, i have got following the tomcat log file:
    INFO - Resource pool cleanup thread just woke up.
    Nov 1, 2008 3:41:52 AM org.apache.tomcat.util.threads.ThreadPool logFull
    SEVERE: All threads (100) are currently busy, waiting. Increase maxThreads (100) or check the servlet status
    INFO - Resource pool cleanup thread just woke up.
    thanks in advance

  • Error while trying to get F4 help for a field mapped to an info object

    Hi,
    I am getting the following exception while trying to attach a search help to a drop down list box.The field belongs to a table on the BW server which has an explicit search help attached to it.I am getting the following exception:
    An exception occurred. This exception is dealt with in more detail below    
    . The exception, which is assigned to the class 'CX_BSP_SERVICES_SHLP', was neither            
    caught nor passed along using a RAISING clause, in the procedure "_ONCREATE"  "(METHOD)" . Since the caller of the procedure could not have expected this exception to occur, the running program was terminated. The reason for the exception is: The input help is not suitable.                                                  
    As I am new to BW server I am unable to find the solution.Please help me out.
    Regards
    Tejaswini

    Hi Craig,
    I was actually not using the f4 help of the
    IF_BSP_SERVICES class. Now I want to implement this as I have got many fields on my page. But I am getting the above mentioned error while doing this. The Code in OnInitialization() is:
    data: dataref1 type ref to data.
    data:wa_r8t_prog type ZR8T_S_API_PROG_H.
    get reference of wa_r8t_prog-ZR8CPRGTY into dataref1.
    try.
    call method runtime->ddic_utils->get_simple_helpvalues
    exporting
    data_object_ref = dataref1
    changing
    helpvalue_tab = t_vallist.
    catch cx_bsp_services.
    endtry.
    But I have a search help attached to 'ZR8T_S_API_PROG_H-ZR8CPRGTY' field
    My 'ZR8T_S_API_PROG_H' structure definition is as follows:
    .INCLUDE     ZR8T_REBATE_PROG          0     0     Rebate Program
    ZR8CPRGID     /BIC/OIZR8CPRGID     CHAR     32     0     Rebate Program ID
    COMP_CODE     /BI0/OICOMP_CODE     CHAR     4     0     Company Code
    ZR8CPRGTY     /BIC/OIZR8CPRGTY     CHAR     5     0     Program type
    Can I get f4 help from search help exits or do I have to use only value tables?
    Regards
    Tejaswini
    Message was edited by: Tejaswini Das

  • Http 404 Error while trying to get the plug-in

    Hi,
    We have installed the Developer server 6i, and everything was working fine with jinitiator 1.1.7.30.
    Recently we have installed Patchset 3A on the machine on which Developer Server was installed and downloaded jinitiator 1.1.8.3. When we try to run the test form from the client machines, we are prompted to get the plug-in 1.1.8.3, and when we click on the "Get the Plug-in", it gives us an HTTP Error 404: "404 Not Found. The Web server cannot find the file or script you asked for. Please check the URL to ensure that the path is correct.Please contact the server's administrator if this problem persists."
    The URL is http://<server_name>:port/jinitiator/us/jinit_download.htm?application/x-jinit-applet;version=1.1.8.3
    I've checked the virtual mapping of jinitiator, it points to <ORACLE_HOME>/jinit.
    Is there anything else that we need to do to get the latest plug-in?
    Thanks in advance
    LV

    Hi
    I am also facing the same error while trying to bring REFOBJ (IBase) context node fields in Interaction Record.
    Did you get a reply from SAP about this issue? If yes, can you please state the OSS # ?
    Thanks in advance
    Vishal

  • Error while trying to get the IBase in Interaction Record

    We are trying to bring the Ibase component in the Interaction Record and Activity, for that in UI configuration we have enabled the
    Ibase and Component field. Once the enter the Ibase id and press enter we are getting the following Short dump.
    "An error occured during event processing in view BTSHeader.htm1 of &2 &3"
    An exception has occurred
    CX_CRM_CIC_PARAMETER_ERROR- Entry parameter ES_KEY of method CL_CRM_GENIL_CONTAINER_OBJECT->GET_KEY contains value , which is not allowed
    Method:  CL_CRM_GENIL_CONT_SIMPLE_OBJ=>IF_GENIL_CONT_SIMPLE_OBJECT~GET_KEY
    Source Text
    Row:37

    Hi
    I am also facing the same error while trying to bring REFOBJ (IBase) context node fields in Interaction Record.
    Did you get a reply from SAP about this issue? If yes, can you please state the OSS # ?
    Thanks in advance
    Vishal

  • Getting th following error while trying to do BUILD INDEX for search in BCC

    Hi I am getting the following error while I am trying to build index through search administration from BCC.
    I am using windows7, Weblogic 10.3.2 and ATG9.2
    On BCC screen I am getting the message as : An unexpected error has occurred. Please try again later or contact system administrator.
    In the console logs, the following error is occurring:
    2011-10-06 18:26:58,319;;;org.apache.commons.digester.Digester.sax;;;DEBUG;endDocument()
    **** Error Thu Oct 06 18:27:35 CEST 2011 1317918455348 /atg/searchadmin/repository/service/SyncService No partition_step step found in task '
    700001' of type 'check' atg.search.exception.ObjectNotFoundException: SyncStepDefinition not found.. id=null, item-desciptor=null
    **** Error Thu Oct 06 18:27:35 CEST 2011 1317918455348 /atg/searchadmin/repository/service/SyncService at atg.searchadmin.repository.
    beans.methods.BaseSyncTaskMethods.setSyncStepDefinitionOption(BaseSyncTaskMethods.java:307)
    **** Error Thu Oct 06 18:27:35 CEST 2011 1317918455348 /atg/searchadmin/repository/service/SyncService at atg.searchadmin.repository.
    beans.methods.BaseSyncTaskMethods.setPartitionReuseType(BaseSyncTaskMethods.java:101)
    **** Error Thu Oct 06 18:27:35 CEST 2011 1317918455348 /atg/searchadmin/repository/service/SyncService at atg.searchadmin.repository.
    beans.methods.BaseSyncTaskMethods.setPartitionReuseType(BaseSyncTaskMethods.java:91)
    **** Error Thu Oct 06 18:27:35 CEST 2011 1317918455348 /atg/searchadmin/repository/service/SyncService at atg.searchadmin.repository.
    beans._SyncTaskDefinition_Impl.setPartitionReuseType(_SyncTaskDefinition_Impl.java:107)
    **** Error Thu Oct 06 18:27:35 CEST 2011 1317918455348 /atg/searchadmin/repository/service/SyncService at atg.searchadmin.adminui.for
    mhandlers.EstimateIndexSummaryFormHandler.createTask(EstimateIndexSummaryFormHandler.java:144)
    **** Error Thu Oct 06 18:27:35 CEST 2011 1317918455348 /atg/searchadmin/repository/service/SyncService at atg.searchadmin.adminui.for
    mhandlers.EstimateIndexSummaryFormHandler.handlePerformSyncTask(EstimateIndexSummaryFormHandler.java:236)
    **** Error Thu Oct 06 18:27:35 CEST 2011 1317918455348 /atg/searchadmin/repository/service/SyncService at sun.reflect.NativeMethodAcc
    essorImpl.invoke0(Native Method)
    **** Error Thu Oct 06 18:27:35 CEST 2011 1317918455348 /atg/searchadmin/repository/service/SyncService at sun.reflect.NativeMethodAcc

    Please check:
    1) Values of in engineDir and deployShare in LaunchingService component
    2) Search environment name
    3) To create a full index, the indexing engine requires a clean partition, a file from which all indexes are created: /atg/search/routing/RoutingSystemService
    You need to identify the location of the clean partition by creating a /localconfig/atg/search/routing/RoutingSystemService.properties file. Use the cleanPhysicalPartitionPath property
    to identify the full path to the clean partition. There is a copy of the clean partition located at <Searchdir>/SearchEngine/operatingsystem/data/initial.index. To resolve the path
    correctly, use a relative path to identify the clean partition location as a local copy. For example: cleanPhysicalPartitionPath =../data/initial.index
    Thanks and regards,
    Anuj

  • Getting bad host error when trying to deploy simple web sample application

    hi,
    Can someone tell me why I'm getting this error when trying to deploy the simple web application from samples
    This is what it said:
    deploy_common:
    [echo] Deploying ../assemble/war/webapps-simple.war.
    [exec] java.net.MalformedURLException: Bad host: station_1
    thanks

    Hi,
    Another update on this issue.
    To remove the error that we were getting (java.lang.LinkageError: Class javax/xml/transform/Source violates loader constraints), we tried some searching around and found out that the way to fix it is to provide correct versions of xalan.jar, xml-apis.jar and xercesImpl.jar. We downloaded the required version from the apache site and added it to our WEB-INF/lib folder in the WAR file.
    Now, we are getting this error:
    XPathFactory#newInstance() failed to create an XPathFactory for the default object model: http://java.sun.com/jaxp/xpath/dom with the XPathFactoryConfigurationException: javax.xml.xpath.XPathFactoryConfigurationException: No XPathFctory implementation found for the object model: http://java.sun.com/jaxp/xpath/dom
    What else we might be missing in our libs or do we need to check some other configurations?
    Any help on this would be much appreciated.
    Thanks,
    Gaurav

  • I get "bad request error 400" when I try to log on to my gmail account. Safari allows me to access the account. What's the problem?

    I cannot open my gmail account on Firefox as of yesterday. I get, instead, Bad request Error 400. This is a recent devlopment and rather annoying. Safari works fine.

    You're welcome

  • Why can't I access my Blogger account and publish a blog? I get 'Bad Request Error 400" when I try.

    When I tried this morning to publish my latest blog post the message 'Bad Request Error 400' came up on the screen. It seems other bloggers have been having the same problem today. I have subsequently tried to access my google blogger account through firefox but each time I do so the same message appears 'Bad Request Error 400'. What if anything do I need to do about it? Is the problem your end or is it a google problem?

    I was re-decorating my blogger .. then I got the 'Bad Request Error 400' ..  I re-formatted my computer, reloaded all .. I can now access my Blogger sites .. Don't know what the problem is/was, but I solved it by reloading my computer to Out-of-Box condition, and all is perfect now  .. I have an alert set up for this Error 400 .. Masses of people are having problems daily ..
    http://littlemisscinderellasquotes.blogspot.com/

  • Since Firefox updated yesterday I cannot post on my blog - getting 'bad request error 400' message.

    When I opened my blog today (more than once) the page came up but after I signed in I got a page up which says 'Bad request error 400' and I am unable to create a message or anything else. When I go back to the blog page there are no options on the top right for new post etc. This was all after Firefox automatically updated.

    You're welcome

  • On Windows Platform, encounters error when trying to open an Indesign document created from MAC

    Hi all,
    On Windows Platform, encounters error when trying to open an Indesign document in INDD format created from Mac. Error received "Either the file does not exist, you do not have permission, or the file may be in use by other application". I am currently using Adobe Indesign CC 9.2 Trial version.
    Kindly advise how can i open this document on windows platform and allows me to edit the document.
    Thanks!
    With Rgds,
    Fiona Choy

    Normally there is no problem to open any INDD opening on Windows, when created on the Mac.
    But Mac user are often not aware on the naming limitations. A file name must not contain /, \, |, :
    It should not contain any extended character, it is not a primary problem but will be, if something links to that file, so avoid also: ÄÖÜäöüß+&
    You can use all other non A-Z a-z, 0-9 and - and  _
    I personally would also recommend to avoid spaces.
    This is valid for the INDD file itself but also for all linked content.

  • I am getting a 1305 error while trying to install Elements 12.

    It is in regard to a file CoatedFOGRA27.icc. It gets hung up on that file when trying to do the install. I have rebooted, done a system restore, tried to copy the DVD to the hard drive and run from there. I have tried to run the trial version, all to no avail. I am getting frustrated. This is the first time I have not been able to solve an issue like this while installing software, considering I worked in the computer field for 33 years. I would like to get this thing working before I die. Can you shed some light please?

    Paul
    Sorry the news is not better.
    The Photoshop Elements users should be coming to your assistance in your thread. I do not see their involvement yet.
    You wrote
    Every time I try to contact customer support I getrerouted back to the same web pages.
    What is directing you to web pages...Adobe Chat or something else? The link that I suggested for a contact with Adobe via Adobe Chat should be working. I just tried it. It works.
    http://helpx.adobe.com/contact.html?product=premiere-elements&topic=downloading-installing -and-setting-up
    Did you click on the above link to open it, and, when the link opened, did you click on the statement "I still need help" to bring up the Adobe Chat. If so, you should be seeing the following to click on to start the Adobe Chat.
    I went through the process, I got that option just minutes ago. But, I did not open an Adobe Chat session.
    "Online" seems to be the wave of things. I understand your situation. I have been hung up for months trying to get the Photoshop Elements 12 Editor to open on a particular Windows computer. Its Elements Organizer opens fine.
    If you have the time, please see if the Adobe Chat is of any help in resolving your issue.
    If you are within 30 days of purchase of the product from Adobe, explore the within 30 days of purchase money back.
    ATR

Maybe you are looking for