Quantcast
Channel: Microsoft Dynamics NAV Forum - Recent Threads
Viewing all 29197 articles
Browse latest View live

RE: On Rename + The type NavInteger is unknown

$
0
0

Hi All

we have resolved this, on Rename of the customer, the program will update all the fields having the Table Relation as customer with the new customer no, and for one of the integer type field the table relation specified as Customer.

Regards

Rajasekhar.Y


On Rename + The type NavInteger is unknown

$
0
0

Hi All

on rename of the customer, we are receiving the below

Microsoft Dynamics NAV
---------------------------

The type NavInteger is unknown.

Page Edit - Customer Card - must close.
---------------------------
OK
---------------------------

Thanks

Rajasekhar.Y

RE: How can we insert relational data (e.g. complex data structures) into NAV from a web service in a single closed transaction?

$
0
0

Hi Sebastian,

the short answer is: You can't. By design. What you can do, however, is to do a lock on a proxy record (reading and modifying it) before you access the real target records. We do this to avoid conflicts with our background and longer-running worker process. But this is only an option if you use new tables for your functionality, not standard NAV ones. This actually is our decoupling from NAV business logic: WS->lock the proxy record -> write to (and also lock) buffer tables, Other WS -> lock the proxy record -> lock the buffer records that need procesing -> do the processing and insert warehouse receipts.

The proxy record ensures exclusive access as long as you have successfully modified the proxy record in the first place. The catch is, you need all code accessing the desired tables to adhere to this protocol. But it successfully prevents critical external transfers from failing in the wrong way. It should always fail on gaining access to the proxy record, and since this isn't an exception, we can return a "false" or omething like this back to BizTalk and it doesnt count it as transferred for whatever strange reason.

The function to do the proxy lock is not trivial:

    PROCEDURE LockProcessingBuffer@1140009(VAR ProcessingBuffer@1140000 : Record <CENSORED>) : Boolean;
    VAR
      L_Session@1140002 : Record 2000000009;
      L_RetryCount@1140001 : Integer;
    BEGIN
      // write your own Session-ID - this locks the record for other sessions as long as we haven't committed the transaction.
      L_Session.SETRANGE("My Session",TRUE);
      L_Session.FINDFIRST;
      L_RetryCount := 0;
      REPEAT
        ProcessingBuffer.InUseBySessionID := L_Session."Connection ID";
        //Insert und auch Modify sind bereits ein implizites Locktable.
        IF NOT ProcessingBuffer.INSERT THEN BEGIN
          SELECTLATESTVERSION;
          IF NOT ProcessingBuffer.MODIFY THEN BEGIN
            SELECTLATESTVERSION;
            ProcessingBuffer.LOCKTABLE;
            ProcessingBuffer.GET(ProcessingBuffer.TableID);
            ProcessingBuffer.InUseBySessionID := L_Session."Connection ID";
            IF ProcessingBuffer.MODIFY THEN;
          END;
        END;
        IF NOT ProcessingBuffer.GET(ProcessingBuffer.TableID) THEN
          ProcessingBuffer.InUseBySessionID := 0;
        L_RetryCount += 1;
      UNTIL (ProcessingBuffer.InUseBySessionID = L_Session."Connection ID") OR (L_RetryCount > 10);
      EXIT(L_RetryCount <=10)
    END;

This function looks really strange, but it simply operates on the assumption that any of the C/AL instructions are not atomic and can be interrupted and some other process running C/AL gets what we wanted to achieve. The one true unique identifier is Connection ID - that doesn't change for the session. I'm not entirely sure if it works that way on NAV2013 and above. If not, use a GUID created in the function which is "sufficiently" unique.

The only true and verifiable lock you can get in C/SIDE is when you can successfully insert or modify a record (bulk inserts might be a problem, though).

with best regards


Jens

How can we insert relational data (e.g. complex data structures) into NAV from a web service in a single closed transaction?

$
0
0

Hi there,

I hope you can help :-)

We are working in a project were we want to export several web services in order to query and insert data into/from the Dynamics NAV data structures. In particular we have complex data structures which expose dependencies between multiple objects (tables). In the web services however we can only query these objects as "flat" structures. That is if we have a Page 'Application' and another 'ApplicationDetails' then we need to make a create requests followed by a create multiple request in order to insert an application together with the respective details of this application. Our problem is that we do not know how to handle this in a transaction save way since each request to a web service endpoint is handled in its own transaction.

Thus our question is as following:

How can we insert relational data (e.g. complex data structures) into NAV from a web service in a single closed transaction? Is this generally possible using SOAP based web services ob Dynamics NAV. We are using Dynamics NAV 2013 R2.

Other options we have discussed so far are:

* Writing directly to the MS SQL database that is used by Dynamics NAV.

The problem that we see here is that we cannot detect handle the 'lost'

update problem.

* Writing a code unit web service which revieves and returns an XMLPort. We am currently not sure if this is even a viable solution, our NAV developers have several concerns with this solution. As I understand it XMLPorts are intended for Bulk imports and the data is not checked for correctness and could possible overwrite data in Dynamics NAV if wrong values are sent.

Thanks in advance

RE: How to get data filled in a pop up page in Nav 2013 R2

$
0
0

From the master page(List type) some field's (Like cheque no, cheque date etc  )value should be transferred to the pop up page(List type- Bank Receipt Voucher(16569)) in a new line while Posting (Action ) from the master page, this should be filled automatically on pop up.

And also, can we do this directly without entering the data into the source table of the popup page?

How to get data filled in a pop up page in Nav 2013 R2

$
0
0

Guys,

How to get a pop up page filled with data from the Master page?. Have created an Action in the master page, On clicking this Action I need to obtain another page on which some fields should be filled by the data from the master page.

fetched the last data entry in the pop up page, but i'm not able to enter data in the new line of the page. Can anyone pls help me.

Thanks and Regards

RE: Add Business Posting Group in VAT Rate Change Setup

$
0
0

Hi Vanessa,

Sure, you can use this link: mbs.microsoft.com/.../support just scroll to New Technical Support Request, and fill in the details after accessing the URL ;)

If you have any difficulties, please let me know.

RE: Navision 4.03 hot fix 24080 Norwegian (bokmål) language version


Navision 4.03 hot fix 24080 Norwegian (bokmål) language version

$
0
0

Can anyone help me find the install files for Navision 4.03 hot fix 24080 Norwegian (bokmål) language version please?

thanks

Peter

RE: Transfer Order

$
0
0

Hi Mr.Saurabh,

                   I have checked the Bin mandatory options. I think, the error is  related to the item journal posting. Because the bin code value is missing in item journal line. So please suggest me to solve this error.

Thanks

Dinesh.

RE: Error on Reporting

$
0
0

Hi

Could you let us know / show us the error you are receiving

Regards

Rajasekhar.Y

RE: Transfer Order

$
0
0

Hi Dinesh,

Please make sure that you have mentioned Transfer From Bin code and Transfer To bin code in your transfer order.

Regards,

Saurabh Shah

Transfer Order

$
0
0

While Creating a transfer order , i am getting the below error

" New Bin code must have a value in item Journal line: Journal template name=, Journal Batch name=, Line.=0. It cannot be empty or zero ".


What is the Reason ?

RE: Error on Reporting

$
0
0

Hi, I pasted the screen shot but seems to have disappeared, below is the error:

An error occurred during local report processing.

An unexpected error occurred in report processing.

Exception of type "System out of memory exception" was thrown.

Error on Reporting

$
0
0

Hi, I get this error when trying to run Customer Detail Aging. Is it because there is too much data in the system and needs to be filtered? Or something else?


RE: Standard cost rollup global on Assemblies and manufacture

$
0
0

Saurabh ,

Thank you for the answer.

Standard cost rollup global on Assemblies and manufacture

$
0
0

Is there any functionality to roll up assembly BOM to adjust standard costs? That is to allow for all standard cost parts to be recosted in one batch job?

Zetadocs Express 'Failed to search for documents in Sharepoint. Sharepoint could not complete the operation.'

$
0
0

We have installed Zetadocs and are receiving the error message above when we open a page with Zetadocs installed.

Sharepoint is installed on a separate server.  However, we are able to open the Sharepoint library from the Zetadocs General Settings page by clicking on the test button next to the Sharepoint URL.  Further, we can upload a document to the Sharepoint library directly within Sharepoint.

Finally, we have confirmed that the Zetadocs solution has been uploaded and is active on Sharepoint.

Any thoughts, suggestions?

Thanks.

RE: Trace flag 4616 Error

RE: Zetadocs Express Archive to Network Folders

$
0
0

Hi friends,

i am searching the forum, and i find this thread quite similar with my problem.

I have zetadocs express installed on Windows Azure VM, and i can use the zetadocs well on NAV Client inside VM.I am using the NavUserPassword credential.

But when i connect using NAV Client on my laptop, it gives me error :

Could not connect to SharePoint site: http://idnav1302/ZetadocsArchive.

The SharePoint site is invalid or unavailable.
Please ensure your SharePoint site is available and that your SharePoint site settings are correct.

Failed to initialize SharePoint site to: http://<servername>/ZetadocsArchive.
Please ensure your SharePoint site is available and that your SharePoint site settings are correct.

I am aware that this because i can't access to the Zetadocs archive service from outside VM. How do i enable this ? Is there any port i need to open on azure VM (endpoint) for Zetadocs Archive Service ? or is there any settings?

Thanks in advance

Best Regards,

Hery Halim

Viewing all 29197 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>