Azure Pipeline - Unexpected API error

Kakehi Shunya (筧 隼弥) 201 Reputation points
2022-10-12T07:37:41.207+00:00

The Synapse pipeline needs to import data from Anaplan views.
I need to create a read request first, following Anaplan's reference, but I get an error when I perform POST.
Does anyone know a solution?
The body is as follows:
curl --location --request POST 'https://api.anaplan.com/2/0/workspaces/{workspaceID}/models/{modelID}/views/{viewID}/readRequests/' \ \--data-raw '{ "exportType" : "TABULAR_MULTI_COLUMN" }'

Any help would be appreciated.
Thank you.

249631-image.png
249470-image.png
249603-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.
4,696 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,199 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MartinJaffer-MSFT 26,061 Reputation points
    2022-10-12T21:19:37.633+00:00

    Hello @Kakehi Shunya (筧 隼弥) ,
    Thanks for the question and using MS Q&A platform.

    As I understand, you would like help debugging your web activity request to an API called "Annaplan".

    I see you put more in the body than you should have.
    Curl is a command-line tool for making these calls. Curl is like a text only version of Web activity. You do not need to put everything of "Request supporting this feature" into the body.
    The body only needs the

    `{ "exportType" : "TABULAR_MULTI_COLUMN"}`  
    

    see like below picture:

    249808-image.png

    Please do let me if you have any queries.

    Thanks
    Martin


    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
      • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators
    0 comments No comments