Hi,
I have exposed an Odata web service in NAV to read and write General Journals, I am using the default page 39 - General Journal. Everything seems to work fine if I set the Journal."Journal Template Name" := 'GENERAL' and the Journal."Journal Batch Name" := 'CASH', the issue comes when I try to use a different "Journal Template Name" or Journal."Journal Batch Name".
I get the following exception error: "The Gen. Journal Line already exists. Identification fields and values: Journal Template Name='GENERAL',Journal Batch Name='CASH',Line No.='10000'". If I inspect the collection of entities in the DataServiceContext just before calling SaveChanges it looks like it contains the values I have set up. However, when calling SaveChanges it seems to ignore my the changes in the Journal Bach Name field.
I am wondering if it is supported, or if there is any way of fix this issue using any other standard NAV page.
I would appreciate if anyone could help me with this issue.
Many thanks!
I have exposed an Odata web service in NAV to read and write General Journals, I am using the default page 39 - General Journal. Everything seems to work fine if I set the Journal."Journal Template Name" := 'GENERAL' and the Journal."Journal Batch Name" := 'CASH', the issue comes when I try to use a different "Journal Template Name" or Journal."Journal Batch Name".
I get the following exception error: "The Gen. Journal Line already exists. Identification fields and values: Journal Template Name='GENERAL',Journal Batch Name='CASH',Line No.='10000'". If I inspect the collection of entities in the DataServiceContext just before calling SaveChanges it looks like it contains the values I have set up. However, when calling SaveChanges it seems to ignore my the changes in the Journal Bach Name field.
I am wondering if it is supported, or if there is any way of fix this issue using any other standard NAV page.
I would appreciate if anyone could help me with this issue.
Many thanks!