Upload file Adobe Analytics Classification Error | Community
Skip to main content
Level 2
November 15, 2024
Question

Upload file Adobe Analytics Classification Error

  • November 15, 2024
  • 1 reply
  • 1526 views

https://developer.adobe.com/analytics-apis/docs/2.0/guides/endpoints/classifications/import-file/#post-upload-file

I'm working through this API request

POST https://analytics.adobe.io.api/{GLOBAL_COMPANY_ID}/classifications/job/import/uploadFile/{API_JOB_ID}
Error:

{
    "errorCode": "500",
    "errorDescription": "Cannot invoke \"javax.servlet.http.Part.getInputStream()\" because \"filePart\" is null",
    "errorId": "PDtw6wJJicN9BeSDmUgZpWUAPgmcCyrd"
}
 
I'm trying to Test in Postman but eventually want this to work in a HTTP request in Workfront Fusion. I'm struggling how to pass a file through or even a JSON body that it mentioned. Could someone please provide a step-by-step example they have done before?
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Jennifer_Dungan
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
November 15, 2024

If you are using Postman, are you trying to upload a file that is local to your computer? Or have you upload a file to an accessible location on the web and referenced the full URL to its location?

 

My suspicion is that you are doing the first... but files located on your hard drive would be inaccessible from the server that is taking the files and processing them... I believe this might be your issue... that the file is "null" because it cannot find the file at all.

DaltonDoAuthor
Level 2
November 15, 2024

Ahh that would make sense! Can you tell me where I would need to store these files?

Or better yet is there another request I could use where I could just pass JSON through to update the data in the Classification Set?

Jennifer_Dungan
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
November 15, 2024

I would guess that it would have to be a location that could be accessed via the web...

 

Now, I assume that since the example is using a relative path, that IF this was being run from a webserver, and the file was hosted on the same server this would work.... or you would need to provide the entire https://.... url to where the file is located (and in the case of running the API locally, I would think you would have to have such a location)

 

I don't know if the file has to be fully accessible (i.e. not password protected) since I don't see any samples of providing a file authentication to access it... 

 

This isn't a function I have used... 

 

 

Do you need to use the API?

 

I know there is an FTP Import built into the AA interface:

 

 

But technically speaking, the files uploaded via FTP would likely just be pointing to that FTP location.

 

 

I would imagine if you are trying to use the classification importer, that you have a significant number of rows to classify...  So I can't imagine a direct update the rules would be a good method in this case (if I could even find such a thing).

 

If your list isn't significantly large, have you considered just managing it as a rule inside the AA interface?