An OS400 (AS400) agent fails to start and immediately terminates with a 'Company Key' mismatch error. This issue typically occurs due to an authentication handshake failure or data corruption in the agent's persistent identity.
## Symptoms
The agent terminates immediately after initiation. The agent log contains the following error:
`20260608/155039.685 - U20945664 <agent name>
` 7ÑõÜ_ØØ`
`20260608/155039.690 - U02000041 Shutdown Agent <agent name>
The Communication Process (CP) log shows:
`U00003359 Agent 'AS400' uses an incorrect Company Key.`
Product: Automic Automation Engine
Agent: OS400 / AS400
Versions: 24.x
If the logs show corruption (garbage characters) after the agent name, the persistent identity may be unrecoverable. Use the following steps to bypass the corruption:
1. Stop the agent service.
2. Open the `agent.ini` file.
3. Locate the `NAME=` parameter in the `[GLOBAL]` section.
4. Change the agent name to a new, unique value
5. Save the file and start the agent.
6. The agent will register as a new object and establish a clean connection.
There is another solution specified in the Knowledge article below.
Cannot start AS400 Agent, receive "an incorrect Company Key" message