Quantcast
Channel: Microsoft Dynamics GP Forum - Recent Threads
Viewing all articles
Browse latest Browse all 14686

Key Segment Not Found error

$
0
0

Hello,

I hope someone can help me.

We have a third party standalone application written in Dexterity. 

I have created some views in SQL to use to access the Dynamics database.  For example, I have a Supplier Enquiry screen within my application that uses a view to display the PM00200 table data.  This all works fine and I have the same concept set up for a Debtors Enquiry screen.

My problem is with displaying the transactions.  While I can happily display the RM transactions with my view of the RM20101 table, when I try to view the supplier transactions with a view to the PM20000 table, I am getting the following error:

Key Segment Not Found.

After clicking on OK, I then get the following error:

Error registering table PM_Trans_OPEN_VW, which is the new view I created.

I know the view is OK as I can select the data with no problems via SQL.  It is also executing the pass through SQL statement.

Using debug, the error is occurring at the following statement:

'Vendor ID' of table PM_Trans_Open_VW = sVendorID;

As this is a view which I created manually in SQL and then set up the table within Dexterity, is there something I have done wrong or missed.  As mentioned, I have done exactly the same for Receivables reading the RM20101 table without any errors.

Mark


Viewing all articles
Browse latest Browse all 14686

Trending Articles



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