Anaplan API: Basic Authentication failed!
Hi,
I am trying the Anaplan API connector tutorial and I keep getting an Authentication failed error. I have seen a similar question asked but might is particularly strange. Below is my script.
When I include my password in the script I get the failure error.
Anaplan API: Basic Authentication failed! (Feign: status 401 reading AnaplanAuthenticationAPI#authenticateBasic(String); content:
{"status":"FAILURE_BAD_CREDENTIAL","statusMessage":"Authentication Failure.
Originally my password contained special characters %!.@$ so I changed my password to something simple: Xxxxx9999 where X=an uppercase letter, x=lowercase letter and 9=numeric values. I get the same error.
If i remove the password I am able to enter it when I execute the script and the password passes.
@Echo off
rem This example loads a source text file and runs an Anaplan import into a module.
rem For details of how to configure this script see doc\Anaplan Connect User Guide.doc
set AnaplanUser="myemail:mypassword"
rem AnaplanUser="myemail"
rem set AnaplanUser=""
set WorkspaceId="8a81b09e5db429f6015dc7d7d78f3354"
set ModelId="3AEDC72497A84687972BE09E67C93559"
set Operation=-service "https://api.anaplan.com" -auth "https://auth.anaplan.com" -file "Pays.csv" -put "C:\anaplan-connect_v1.4.3\data\Pays.csv" -import "Pays from Pays.csv" -execute -output "C:\anaplan-connect_v1.4.3\data\Errors.txt"
rem *** End of settings - Do not edit below this line ***
setlocal enableextensions enabledelayedexpansion || exit /b 1
cd %~dp0
if not %AnaplanUser% == "" set Credentials=-user %AnaplanUser%
set Command=.\AnaplanClient.bat %Credentials% -workspace %WorkspaceId% -model %ModelId% %Operation%
@Echo %Command%
cmd /c %Command%
pause
Thanks.
Comments
-
No, SSO is not turned on.0
-
I tried the script again with -debug and the password was accepted. I then removed -debug and again the password was accepted.
The issue seems to be resolved.
0
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