Copying an object - function problems

Big_DBig_D Member Posts: 207
Apologies if this has been covered already but my searches aren’t coming back with anything :oops: …

When I copy a report object say from 3.70 to 5.00 (N.B., I opened a copy of the 3.70 database in 5.00 for copying purposes), every so often a report won’t compile in 5.00 as a different function name has been picked up when inserting into 5.00, i.e.,

In 3.70 database report object…

IF ShiptoAddress.GET("Customer No.","Site No.") THEN
FormatAddr.ShipTo(CustAddr,ShiptoAddress)

Copying the object into

In 5.00 database report object gives…

IF ShiptoAddress.GET("Customer No.","Site No.") THEN
FormatAddr.TransferHeaderTransferFrom(CustAddr,ShiptoAddress)

I have been reliably informed that this is due to the ID of a function between databases does not match.

Is there anyway to get around this other than comparing the two objects each time?

Cheers
David
Big D signing off!

Comments

  • kinekine Member Posts: 12,562
    It will be hard... but best will be to transfer the object not through FOB but through text file. If you use text file, the connection will be done through the function name, not through ID which is used when importing FOB.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Big_DBig_D Member Posts: 207
    Hi Kamil,

    Yes I had noticed that a text import is a lot more reliable in this instance.

    Thanks for the reply.

    Cheers

    David
    Big D signing off!
Sign In or Register to comment.