Error "propertyType is required" when calling Idealista API with Azure Synapse Analytics

CARLOS LOPEZ JUAN 0 Reputation points
2023-12-26T20:52:40.51+00:00

When I configure a Source Dataset with a REST linked service in Azure Synapse Analytics to call the Idealista API, which is based on OAuth 2.0 authentication and some input parameters, I receive the following error:

Rest call failed with client error, status code 400 BadRequest, please check your activity settings.
Request URL: https://api.idealista.com/3.5/es/search.
Response: {"message":"propertyType is required","httpStatus":400}

I think it believes that a propertyType is missing, which is required in the input parameters according to the error message, but I think I have configured the headers and params of the call correctly... what could be happening? I have no problem with Postman.

Please see screenshots of the configurationsimage.png

image.png

With Postman there is no problem otherwise

image.png

image.png

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,378 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Amira Bedhiafi 33,631 Reputation points Volunteer Moderator
    2023-12-27T10:34:56.94+00:00

    Verify if the propertyType parameter is being included in the body or query string of the request exactly as the API expects it and then check that the OAuth 2.0 authentication is working correctly within Synapse. Since it's working on Postman, there might be an issue with how the token is being used or generated in Synapse.

    If you are sending the propertyType in the body of a POST request, make sure the Content-Type header is set correctly ( application/json or application/x-www-form-urlencoded)

    1 person found this answer helpful.

  2. ShaikMaheer-MSFT 38,546 Reputation points Microsoft Employee Moderator
    2023-12-28T06:33:14.3+00:00

    Hi CARLOS LOPEZ JUAN,

    Thank you for posting query in Microsoft Q&A Platform

    It seems request is not getting made correctly. I observe that instead of request body you created parameters in dataset and passing values to them. Please note, dataset parameters will not go as request body. Kindly consider writing request body json in the request body file under copy activity source tab.

    Hope this helps. Please let me know how it goes.


    Please consider hitting Accept Answer button. Accepted answers help community as well. Thank you.


  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  4. CARLOS LOPEZ JUAN 0 Reputation points
    2024-01-09T13:22:20.9333333+00:00

    Any help please?

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.