Upload a file (internal error)
Hello,
I try to upload a file in my model, with API via a windows script like below.
I try to upload like the api use requirements, but I ave an internal error on the second step
STEP 1 : upload a file as a single chunk
CURL --user user@xxxx.fr:password --header "Content-Type:application/octet-stream" -X PUT -d {"id":"113000000007","name":"Coefficient EPS.csv","chunkCount":-1,"firstDataRow":2,"headerRow":1} https://api.anaplan.com/1/3/workspaces/xx71/models/xx3D/files/113000000007 --upload-file C:\MPA_DEV\SCRIPT_WINDOWS\CoefficientEPS.csv
STEP 2 : Complete the upload
CURL --user user@xxxx.fr:password --header "Content-Type:application/json" -X POST -d {"id":"113000000007","name":"Coefficient EPS.csv","chunkCount":1,"firstDataRow":2,"headerRow":1} https://api.anaplan.com/1/3/workspaces/xx71/models/xx3D/files/113000000007
On the Step2, I have an error :
{
"status" : {
"code" : 500,
"message" : "Internal Server Error"
},
"path" : "/1/3/workspaces/xx71/models/xx3D/files/113000000007",
"timestamp" : "2020-10-03T17:01:41.773356Z"
}
Can you help me, please ?
Categories
- All Categories
- 2.3K Anaplan Community
- Academy
- Anaplan Talent Builder
- Model Design Course
- The Anaplan Way
- Archive
- 2 Idea exchange
- 62 Enterprise Scale
- 1.1K Extensibility
- 21 Intelligence
- 1.6K Planning & Modeling
- 331 Security
- Community Connections
- Connections
- Experiences
- Groups
- Personas
- Employees
- CS Toolkit
- Customer Care Center
- Forums
- Academy & Training
- Community Feedback & Updates
- Japan
- Anaplan Community Japan
- Anaplan Community Japan Knowledge Base
- HyperCare Japan
- JP-Central
- Support-Japanese
- Partners
- Partner Leadership Council
- Partner Product Council
- 724 Platform
- Anapedia
- App Hub
- Centers Of Excellence
- Extensions
- Planual
- Platform Updates
- 724 User Experience
- Profile Builder
- Resources
- Anaplan Advocates
- Anaplan Live!
- Community
- Community Advancement
- Community Connections
- Partner Program
- The Official Master Anaplanner Program
- Videos
- Welcome to the Anaplan Community!
- Success Central
- Support
- Case Portal Link
- Common Support Questions
- HyperCare Redirect
- Known Issues and Workarounds
- Support test page
- SupportFAQ
- Survey
- 2 Training Day Takeaways