Discussion:
error inventory journal in validation
(too old to reply)
Arifin
2010-04-20 06:46:03 UTC
Permalink
Dear all,

I have a weird problem. My inventory journal could not be validated due to
below error message:
"A key with the name 0.00 already exists."
When I debug it, the problem is in journaltranslist class method add.

cacheJournalTrans.ins(_journalTrans/*,true*/);

I don't know why above code return false value since no duplicate
journaltrans in above record sorted list.
This problem was happened if only my journal lines greater than 1 record.

Thanks and Regards,
-Afin-
Klaas Deforche
2010-04-20 08:09:01 UTC
Permalink
Hi,

I'm totally not sure about this, but scince no-one has replied yet:

It could have something to do with the number sequence on the journal names.
Go to Inventory Management - Setup - Journal names and check if the number
sequence is *not* set to manual. Disable manual if it is and try again.

I think I got this error too and solved it that way.
Hope it helps :)

Best regards,
Klaas.
----------------
http://www.artofcreation.be
Post by Arifin
Dear all,
I have a weird problem. My inventory journal could not be validated due to
"A key with the name 0.00 already exists."
When I debug it, the problem is in journaltranslist class method add.
cacheJournalTrans.ins(_journalTrans/*,true*/);
I don't know why above code return false value since no duplicate
journaltrans in above record sorted list.
This problem was happened if only my journal lines greater than 1 record.
Thanks and Regards,
-Afin-
Arifin
2010-04-20 08:48:44 UTC
Permalink
Hi Klaas,

Thanks for replying, I have checked the number sequence from journal names
and no problem with it.
In fact, I got no error yesterday, I don't know why it happens today :(
Post by Klaas Deforche
Hi,
It could have something to do with the number sequence on the journal names.
Go to Inventory Management - Setup - Journal names and check if the number
sequence is *not* set to manual. Disable manual if it is and try again.
I think I got this error too and solved it that way.
Hope it helps :)
Best regards,
Klaas.
----------------
http://www.artofcreation.be
Post by Arifin
Dear all,
I have a weird problem. My inventory journal could not be validated due to
"A key with the name 0.00 already exists."
When I debug it, the problem is in journaltranslist class method add.
cacheJournalTrans.ins(_journalTrans/*,true*/);
I don't know why above code return false value since no duplicate
journaltrans in above record sorted list.
This problem was happened if only my journal lines greater than 1 record.
Thanks and Regards,
-Afin-
Arifin
2010-04-20 08:58:33 UTC
Permalink
Dear all,

Finally after a half day I found it (fuuuh).
The problem is in EDT linenum. I have 2 fields which both EDT are linenum
(linenum and my customized field).
So that I created own EDT for my customized field.
Post by Arifin
Hi Klaas,
Thanks for replying, I have checked the number sequence from journal names
and no problem with it.
In fact, I got no error yesterday, I don't know why it happens today :(
Post by Klaas Deforche
Hi,
It could have something to do with the number sequence on the journal names.
Go to Inventory Management - Setup - Journal names and check if the number
sequence is *not* set to manual. Disable manual if it is and try again.
I think I got this error too and solved it that way.
Hope it helps :)
Best regards,
Klaas.
----------------
http://www.artofcreation.be
Post by Arifin
Dear all,
I have a weird problem. My inventory journal could not be validated due to
"A key with the name 0.00 already exists."
When I debug it, the problem is in journaltranslist class method add.
cacheJournalTrans.ins(_journalTrans/*,true*/);
I don't know why above code return false value since no duplicate
journaltrans in above record sorted list.
This problem was happened if only my journal lines greater than 1 record.
Thanks and Regards,
-Afin-
Giacomo
2010-08-25 07:54:03 UTC
Permalink
Hi Arfin,
I got your same problem...

I'm not complety understanding your way to solve it...could you give me some
more information?

The real thing that I don't understand is why I have this problem.
I have 2 different istance of AX, we should call IstanceA and IstanceB in 2
different server:

--> IstanceA: I can post and convalidate each journal whit nr of row more
than 1;
--> IstanceB: I have your same problem.

I've checked the Objects and they are the same in the two cases (all in the
sys level). That suggest me that probably exist a functional reason to solve
the problem...

Thank in advance,
Greetings

Giacomo
Post by Arifin
Dear all,
Finally after a half day I found it (fuuuh).
The problem is in EDT linenum. I have 2 fields which both EDT are linenum
(linenum and my customized field).
So that I created own EDT for my customized field.
Post by Arifin
Hi Klaas,
Thanks for replying, I have checked the number sequence from journal names
and no problem with it.
In fact, I got no error yesterday, I don't know why it happens today :(
Post by Klaas Deforche
Hi,
It could have something to do with the number sequence on the journal names.
Go to Inventory Management - Setup - Journal names and check if the number
sequence is *not* set to manual. Disable manual if it is and try again.
I think I got this error too and solved it that way.
Hope it helps :)
Best regards,
Klaas.
----------------
http://www.artofcreation.be
Post by Arifin
Dear all,
I have a weird problem. My inventory journal could not be validated due to
"A key with the name 0.00 already exists."
When I debug it, the problem is in journaltranslist class method add.
cacheJournalTrans.ins(_journalTrans/*,true*/);
I don't know why above code return false value since no duplicate
journaltrans in above record sorted list.
This problem was happened if only my journal lines greater than 1 record.
Thanks and Regards,
-Afin-
Giacomo
2010-08-25 09:28:03 UTC
Permalink
Hi Arfin,
finally i've understood your solution and I solve the problem in the same
way.

Thank you very much for your help,

best regards

Giacomo
Post by Giacomo
Hi Arfin,
I got your same problem...
I'm not complety understanding your way to solve it...could you give me some
more information?
The real thing that I don't understand is why I have this problem.
I have 2 different istance of AX, we should call IstanceA and IstanceB in 2
--> IstanceA: I can post and convalidate each journal whit nr of row more
than 1;
--> IstanceB: I have your same problem.
I've checked the Objects and they are the same in the two cases (all in the
sys level). That suggest me that probably exist a functional reason to solve
the problem...
Thank in advance,
Greetings
Giacomo
Post by Arifin
Dear all,
Finally after a half day I found it (fuuuh).
The problem is in EDT linenum. I have 2 fields which both EDT are linenum
(linenum and my customized field).
So that I created own EDT for my customized field.
Post by Arifin
Hi Klaas,
Thanks for replying, I have checked the number sequence from journal names
and no problem with it.
In fact, I got no error yesterday, I don't know why it happens today :(
Post by Klaas Deforche
Hi,
It could have something to do with the number sequence on the journal names.
Go to Inventory Management - Setup - Journal names and check if the number
sequence is *not* set to manual. Disable manual if it is and try again.
I think I got this error too and solved it that way.
Hope it helps :)
Best regards,
Klaas.
----------------
http://www.artofcreation.be
Post by Arifin
Dear all,
I have a weird problem. My inventory journal could not be validated due to
"A key with the name 0.00 already exists."
When I debug it, the problem is in journaltranslist class method add.
cacheJournalTrans.ins(_journalTrans/*,true*/);
I don't know why above code return false value since no duplicate
journaltrans in above record sorted list.
This problem was happened if only my journal lines greater than 1 record.
Thanks and Regards,
-Afin-
Loading...