Quantcast
Channel: AX Developer Forum
Viewing all articles
Browse latest Browse all 9880

My mistake deleted customer mater while uploading

$
0
0

Dear all,

By mistake while uploading few customer record i have deleted all the records, so tried my best to get back the lost record how ever i found  that  i have a copy of same custtable in test company   , so my whole idea was to copy the whole custtable from test company to live enviroment  but it is not working tried other steps....

ran this job also :

CustTable Custtable1,custtable2;


changecompany("TEST")
{
    while select Custtable1
    {
        changecompany("live_company ")
        {
            custtable2 = null;
            buf2buf(custtable2, Custtable1);

            if (!custtable2.validateWrite())
            {
                throw Exception::Error;
            }
           
            custtable2.insert();
            ttscommit;
        }
    }
}

 

it says

:Field 'Customer account' must be filled in.

Field 'Customer group' must be filled in.

Field 'Currency' must be filled in.

Field 'Language' must be filled in.

Field 'Address book type' must be filled in. all these are warining and nothing is getting uploaded

 


Viewing all articles
Browse latest Browse all 9880

Trending Articles