Error on import credentials by CLI(version 1.1.1 to 1.7.1)

I’m exported credentials from N8N 1.1.1 by CLI and imported in n8n 1.7.1 by CLI…the process was successfully completed but when i try access the imported credentials i get an error " Credential with ID “MY_ID” could not be found." and when i access database to check, the credentials are saved correctly.

Screenshot from 2023-09-25 11-40-51
Screenshot from 2023-09-25 11-40-32

Hi @Matheus_Peluchi :wave: Welcome to the community :tada:

You didn’t mention what database you were using - are you by chance using Postgres? If so, can you try REINDEX SCHEMA schema_name; to see if that fixes this up? Likely, it will be REINDEX SCHEMA public; :+1:


Hi, thanks for getting back to me, but I ended up discovering that the error was in the generated JSON file. There was an array inside another, which for some reason made n8n get lost.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.