ERP Next Doctype Dropdown missing

i got it working with custom api. But by document we can´t see the list in dropdown list

any news on this?
were you able to solve the n8n <-> erpnext interfacing problem?

Hey @wokawokaz,

It is still something I have not been able to reproduce, Are you seeing the same issue and what version of ERPNext are you using? Is it also self hosted or cloud?

Thank you for the reply @Jon,
I just did ask since I was planning to install erpnext with the sole purpose of interfacing it to n8n and, while collecting information about that setup, I stepped into this thread.

If I get a chance to proceed with the installation in the next few days or weeks I will report back.
In all cases I will follow how this thread will evolve.
Thank you!

1 Like

Guys I am also stuck with this exact same issue if someone could help it will be great help.

I am not sure but I think it may be issue related to ERPNext

Hey @Naveen,

What version of n8n are you running and are you using the cloud version of ERP Next?

I am using the self hosted version. version v14

What happens if you use the HTTP request node to get the content of https://erpnext.yourdomain.com/api/resource/DocType using the api token from ERP Next?

@tec4 @Jon Hi Guys I have finally figured out the issue, issue is with n8n ie when we create credentials of ERPNext in n8n they use ‘https://{your domain.com}/api/resource/Doctype’ url to confirm connection with credentials. But actually the correct url is ‘https://{your domain.com}/api/resource/DocType’ (see capital T for DocType). And then they check whether they get 200 response code. But in this case since the url is wrong we get a 503 response code.
Now lets say we give domain name as ‘https://{your domain.com}/app’ in this when the credentials in this case while testing the credentials a web page is given as response from ERPNext app, even though this not the required response the response code will be 200 and n8n will show the credentials tested correctly.
So the solution is the you have to give your domain name as https://{your domain.com} in credential part even though it show ‘Couldn’t connect with these settings’ you will be able to load doctypes in work flow window.
Hope this helps!

Hey @Naveen,

I have a PR I have been working on which corrects the credential test issue, Adds in support for the other cloud domain and I need to take a quick look at an issue with custom domains. I am planning to create the PR with the changes this week or next so this should be wrapped up soon.

1 Like