ANAPLAN API 1.3 WTH PYTHON || IMPORT FAILED

sai_anil_peddi
New Contributor

ANAPLAN API 1.3 WTH PYTHON || IMPORT FAILED

Hi All,

 

I am trying to import an file into Anaplan. I have run the import action using python. I am getting status code 200 and when i have checked import status it's showing successful but the data load is not happened in the module. Kindly help 

PFAimage.png

 

 

Thanks,

Sai

4 REPLIES 4
sai_anil_peddi
New Contributor

Re: ANAPLAN API 1.3 WTH PYTHON || IMPORT FAILED

image.png

 

This is the code i had used

kevin.cho
Certified Master Anaplanner

Re: ANAPLAN API 1.3 WTH PYTHON || IMPORT FAILED

Assuming this is a file import action that you are trying to run, given the inclusion of the importData metadata object. 

 

Are you running the appropriate method/call to actually upload the data, prior to running the actual import? Couldn't see that anywhere in your script. 

sai_anil_peddi
New Contributor

Re: ANAPLAN API 1.3 WTH PYTHON || IMPORT FAILED

I was trying to upload file in import script. from the reply i think i choosen wrong script to perform the task. so does i have to run chunk upload?

fileData = {
'id' : '',
'name' : '',
'chunkCount' : ,
'delimiter' : '',
'encoding' : '',
'firstDataRow' : ,
'format' : '',
'headerRow' : ,
'separator' : ''
}


if yes i was not aware of these paramenters. could you give brieif detail how the can be filled based on the uploading file

Thanks in Advance
aakash
Frequent Contributor

Re: ANAPLAN API 1.3 WTH PYTHON || IMPORT FAILED

Hi @sai_anil_peddi 

 

To get these parameters , use the script 'getFiles.py'. For further reference , please visit  https://community.anaplan.com/t5/How-To/Using-Python-3-with-the-Anaplan-API/ta-p/33150#toc-hId--5000...

 

Regards,

Aakash Sachdeva