locked
WebAPI error on tablet app RRS feed

  • Question

  • Hi, 

    We have developed small application in CRM 2016 that retrieve data from CRM using WebAPI and do some process. We have retrieve the records using fetchxml. This is working just fine when we access using web browser but when we tried to access the same from tablet client then it throws below error 

    {"Message":"Organization name: devmaps--d found in request URL: http://devmapsv8--d.crm5.dynamics.com/api/data/v8.0/ is invalid. Expected organization name: devmapsv8","ExceptionMessage":"Organization name: devmapsv8--d found in request URL: http://devmapsv8--d.crm5.dynamics.com/api/data/v8.0/ is invalid. Expected organization name: devmaps"

    So we changed the url from http://devmapsv8--d.crm5.dynamics.com/api/data/v8.0/ to http://devmapsv8.crm5.dynamics.com/api/data/v8.0/ then still it does not work but does not throw any error.

    Can anyone has solution to this issue. This issue is vary critical for us.

    Waiting for reply.

    Thanks!

    Balasaheb

    Wednesday, February 17, 2016 11:17 AM

All replies

  • Hello,

    I faced the same issue when I played with WebApi and mobile client. I had to redevelop my code using old-style OrganizationData.svc endpoint and OData v2.0. You use FetchXml that means that you will have to use SOAP endpoint instead of WebApi.

    Additionally I would suggest to open case on Connect portal and drop a link here. I will vote up for it.


    Dynamics CRM MVP
    My blog

    Wednesday, February 17, 2016 12:17 PM
    Moderator
  • Hi

    Thanks for your reply.

    After some more debugging we found that when we used https://devmapsv8.crm5.dynamics.com/api/data/v8.0/ url in request then it throws 500 error.

    Thanks!

    Balasaheb


    Wednesday, February 17, 2016 1:07 PM
  • hi Andrii,

    A connect item has been created at

    https://connect.microsoft.com/site687/feedback/details/2372093

    Please do vote it up.

    Thanks!

    Sam


    Dynamics CRM MVP | Inogic | http://inogic.blogspot.com| news at inogic dot com

    If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"

    Thursday, February 18, 2016 7:34 AM