Data Migration - Sales Invoice

I want to migrate sales invoice from another accounting system into ERPNext. I need to maintain the sales invoice number same in ERPNext as well.

I am using the REST services for migration. Tried to provide the invoice number in the name field. But not working.

Hi @roshrnair,
Better use rename doc, after inserting the sales invoices.
Refer,
https://frappeframework.com/docs/user/en/api/document

Thank You
Hmm. ok. So have to insert a doc with default naming series along with the source doc name in a separate form field. Then run a script to rename the doc with the source doc name.
Round about method.

Yes, it’s a possible way to set the name

@roshrnair If u have created your custom naming series also from the Document Naming Settings and select your doctype and add your custom naming series

Then Update :

1 Like

Indeed.

So what’s the error message (or other reaction) you got from the API?

“But not working.” also is kind of round about because an API access could fail in many different ways, so how to give straight to the point advice without at least some specifics of what you did and how it failed?