Anaplan error 404 when importing to Anaplan

Options
jirkajiri
jirkajiri Member, ALL USERS Posts: 5 Occasional Contributor

Hello,

I have error when importing data to Anaplan using new CA certificate and version 1.4.1.

 

This command working in Anaplan connect 1.3.3.3

java -d64 -Xmx48m -Dhttps.proxyHost=XXX -Dhttps.proxyPort=8080 -jar "XXX\anaplan-connect-1-3-3-3.jar" -c "XXX\xxx.cer" -workspace "XXX" -model "XXX" -file "XXX.txt" -put "XXX.txt"

 

This command not working in Anaplan connect 1.4.1.
java -d64 -Xmx48m -Dhttps.proxyHost=XXX -Dhttps.proxyPort=8080 -classpath "XXX\anaplan-connect-1.4.1-jar-with-dependencies.jar;XXX\Anaplan Connect v1.4.1\lib\README.md" com.anaplan.client.Program -keystore "XXX\xxx.jks" -keystorepass "XXX" -keystorealias "XXX" -service "https://api.anaplan.com" -auth "https://auth.anaplan.com" -workspace "XXX" -model "XXX" -chunksize 1 -file "XXX.txt" -put "XXX.txt"

 

Error message:

-- Initializing Service...
INFObstractAuthenticator
-- Authenticating via Certificate...
ERROR c.a.client.Program
-- Server files not found: Server-Files not found for Model-ID=XXX (Feign: status 404 reading AnaplanAPI#getServerFiles
(String,String,int); content:
{
"status": {
"code": 404,
"message": "Resource not found"
}
})

 

Do you have any idea what is incorrect?

 

Thanks.

Comments

  • jirkajiri
    jirkajiri Member, ALL USERS Posts: 5 Occasional Contributor

    Using basic authentication:

    version 1.3.3.3 is working:

    java -d64 -Xmx48m -Dhttps.proxyHost=XXX -Dhttps.proxyPort=8080 -jar "XXX\anaplan-connect-1-3-3-3.jar" -user "XXX:xxx" -workspace "XXX" -model "XXX" -file "XXX" -put "XXX"

     

    version 1.4.1 the same error:

    java -d64 -Xmx48m -Dhttps.proxyHost=XXX -Dhttps.proxyPort=8080 -classpath "XXX\anaplan-connect-1.4.1-jar-with-dependencies.jar;XXX\lib\README.md" com.anaplan.client.Program -service "https://api.anaplan.com" -auth "https://auth.anaplan.com" -user "XXX:xxx" -workspace "XXX" -model "XXX" -file "XXX" -put "XXX"

     

    --   Initializing Service...
    mINFO
    --   Authenticating viaBasic...
    mERROR
    --   Server files not found: Server-Files not found for Model-ID=XXX (Feign: status 404 reading AnaplanAPI#getServerFiles(String,String,int); content:
    {
      "status": {
        "code": 404,
        "message": "Resource not found"
      }
    })

     

    Did you upload the Public Key to Anaplan?

    Yes to Anaplan administration app.

     

     

     

  • jirkajiri
    jirkajiri Member, ALL USERS Posts: 5 Occasional Contributor

    Problem solved. Model and workspace have to be IDs, not string as it was in previous version.

  • arniewolff
    arniewolff Member, ALL USERS, Community Member Posts: 1 New Contributor

    I ran into a similar issue with Anaplan Connect when I tried to export from a new model using script from another model's working export. I got the error shown below because the Anaplan service user that was used to execute the script didn't have rights to the model. When I gave that user Full Access in the Model Role under Users, it fixed the problem.

    Arnie

     

    Error:

    |--   Exports not found: Exports not found for Model-ID=XXXXXXXXXXXXXXXXXX (Feign: status 404 reading AnaplanAPI#getExports(String,String,int); content:

    {

      "status" : {

        "code" : 404,

        "message" : "Not Found"

      }

    })