Hello,
I am using VPF 9.0 SP2 trying to extract data from an MS SQL Express 2008. I am getting an error of "is not a table" when I try to append from an offline view. I tried deleting and re-creating everything, but I am still having the problem. I can do an "use vbom" to open the offline view and I can browse, but when I try to append from it I get the error.
The only thing different for me in this table is that the quantity and quantity per fields are decimal(38,20) When I try to browse the offline view I get an error of DataType property for field 'Quantity' is invalid. I can get around this by using the following prior to browsing:
DBSETPROP('vbom.quantity_per','Field','DataType','N(1)')
DBSETPROP('vbom.quantity','Field','DataType','N(1)')
If I eliminate extracting those 2 decimal fields the problem does not show up.
I will greatly appreciate any feedback you can provide.
Mike.
OPEN DATABASE MondoluzInvFeed
SET DATABASE TO MondoluzInvFeed
*
DELETE VIEW vbom
CREATE SQL VIEW vbom;
REMOTE CONNECTION MondoluzData;
AS select;
[Mondoluz$Production BOM Line].[Production BOM No_],;
[Mondoluz$Production BOM Line].[No_],;
[Mondoluz$Production BOM Line].[Quantity],;
[Mondoluz$Production BOM Line].[Quantity per];
FROM [Mondoluz$Production BOM Line];
ORDER BY [Mondoluz$Production BOM Line].[Production BOM No_],[Mondoluz$Production BOM Line].No_
*
CREATEOFFLINE ("vbom")
*
USE bom
*
DELETE ALL
PACK
REINDEX
*
APPEND FROM vbom
REINDEX
*
CLEAR
CLEAR EVENTS
CLOSE ALL
CLOSE DATABASES ALL
I am using VPF 9.0 SP2 trying to extract data from an MS SQL Express 2008. I am getting an error of "is not a table" when I try to append from an offline view. I tried deleting and re-creating everything, but I am still having the problem. I can do an "use vbom" to open the offline view and I can browse, but when I try to append from it I get the error.
The only thing different for me in this table is that the quantity and quantity per fields are decimal(38,20) When I try to browse the offline view I get an error of DataType property for field 'Quantity' is invalid. I can get around this by using the following prior to browsing:
DBSETPROP('vbom.quantity_per','Field','DataType','N(1)')
DBSETPROP('vbom.quantity','Field','DataType','N(1)')
If I eliminate extracting those 2 decimal fields the problem does not show up.
I will greatly appreciate any feedback you can provide.
Mike.
OPEN DATABASE MondoluzInvFeed
SET DATABASE TO MondoluzInvFeed
*
DELETE VIEW vbom
CREATE SQL VIEW vbom;
REMOTE CONNECTION MondoluzData;
AS select;
[Mondoluz$Production BOM Line].[Production BOM No_],;
[Mondoluz$Production BOM Line].[No_],;
[Mondoluz$Production BOM Line].[Quantity],;
[Mondoluz$Production BOM Line].[Quantity per];
FROM [Mondoluz$Production BOM Line];
ORDER BY [Mondoluz$Production BOM Line].[Production BOM No_],[Mondoluz$Production BOM Line].No_
*
CREATEOFFLINE ("vbom")
*
USE bom
*
DELETE ALL
PACK
REINDEX
*
APPEND FROM vbom
REINDEX
*
CLEAR
CLEAR EVENTS
CLOSE ALL
CLOSE DATABASES ALL